quackage 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/debug/Harness.js CHANGED
@@ -5,7 +5,7 @@ let libQuackage = require('../source/Quackage-CLIProgram.js');
5
5
  //libQuackage.run(['node', 'Harness.js', 'bp', 'pictunittest']);
6
6
  //libQuackage.run(['node', 'Harness.js', 'lint']);
7
7
 
8
- //libQuackage.run(['node', 'Harness.js', 'gjv', 'html/', '-p', 'PictoView']);
8
+ libQuackage.run(['node', 'Harness.js', 'ajv', 'html/', '-p', 'PictoView']);
9
9
 
10
10
  //libQuackage.run(['node', 'Harness.js', 'db', 'dist/documentation', '--meadow', 'model/MeadowModel-Extended.json']);
11
11
  //libQuackage.run(['node', 'Harness.js', 'db', 'dist/documentation', '--meadow', 'model/MeadowModel-Extended.json', '-d', 'documentation-definition.json']);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "quackage",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "Building. Testing. Quacking.",
5
5
  "main": "source/Quackage.js",
6
6
  "scripts": {
@@ -54,14 +54,14 @@
54
54
  "@babel/preset-env": "^7.23.9",
55
55
  "browserify": "^17.0.0",
56
56
  "chai": "4.3.10",
57
- "copy-files-from-to": "^3.10.0",
57
+ "copy-files-from-to": "^3.11.0",
58
58
  "devextreme-showdown": "^1.0.1",
59
59
  "gulp": "^4.0.2",
60
60
  "gulp-babel": "^8.0.0",
61
61
  "gulp-env": "^0.4.0",
62
62
  "gulp-sourcemaps": "^3.0.0",
63
63
  "gulp-terser": "^2.1.0",
64
- "marked": "^13.0.0",
64
+ "marked": "^13.0.2",
65
65
  "marked-tex-renderer": "^1.1.1",
66
66
  "mocha": "10.4.0",
67
67
  "npm-check-updates": "^16.14.20",
@@ -3,10 +3,10 @@ const libCLIProgram = require('pict-service-commandlineutility');
3
3
  let _Pict = new libCLIProgram(
4
4
  {
5
5
  Product: 'Quackage',
6
- Version: '0.0.1',
6
+ Version: require('../package.json').version,
7
7
 
8
- Command: 'hl-record-downloader',
9
- Description: 'Download an array of records from Headlight.',
8
+ Command: 'quackage',
9
+ Description: 'Extensions for managing package.json and make build processes consistent.',
10
10
 
11
11
  DefaultProgramConfiguration: require('./Default-Quackage-Configuration.json'),
12
12
 
@@ -32,8 +32,10 @@ let _Pict = new libCLIProgram(
32
32
  require('./commands/Quackage-Command-BuildDocumentation.js'),
33
33
 
34
34
  // Template handling
35
+ require('./commands/Quackage-Command-AssembleJSONViews.js'),
36
+
37
+ // Boilerplate file management
35
38
  require('./commands/Quackage-Command-Boilerplate.js'),
36
- require('./commands/Quackage-Command-BuildJSONViews.js'),
37
39
  require('./commands/Quackage-Command-ListTemplates.js'),
38
40
  require('./commands/Quackage-Command-BuildTemplates.js')
39
41
  ]);
@@ -0,0 +1,25 @@
1
+ const libCommandLineCommand = require('pict-service-commandlineutility').ServiceCommandLineCommand;
2
+
3
+ class QuackageCommand extends libCommandLineCommand
4
+ {
5
+ constructor(pFable, pManifest, pServiceHash)
6
+ {
7
+ super(pFable, pManifest, pServiceHash);
8
+
9
+ this.options.Description = 'Assemble PICT Form Section JSON Metatemplates';
10
+
11
+ this.options.CommandKeyword = 'assemble_pict_form_section_json_metatemplates';
12
+ this.options.Aliases.push('apfsjm');
13
+
14
+ this.options.CommandArguments.push({ Name: '<folder>', Description: 'The folder structure of metatemplates to assemble.' });
15
+
16
+ this.addCommand();
17
+ }
18
+
19
+ onRunAsync(fCallback)
20
+ {
21
+ return fCallback();
22
+ }
23
+ }
24
+
25
+ module.exports = QuackageCommand;
@@ -0,0 +1,25 @@
1
+ const libCommandLineCommand = require('pict-service-commandlineutility').ServiceCommandLineCommand;
2
+
3
+ class QuackageCommand extends libCommandLineCommand
4
+ {
5
+ constructor(pFable, pManifest, pServiceHash)
6
+ {
7
+ super(pFable, pManifest, pServiceHash);
8
+
9
+ this.options.Description = 'Assemble PICT JSON Template HTML Files into a Packaged JS File.';
10
+
11
+ this.options.CommandKeyword = 'assemble_pict_json_templates';
12
+ this.options.Aliases.push('apjt');
13
+
14
+ this.options.CommandArguments.push({ Name: '<folder>', Description: 'The folder (...structure) of html files to assemble into a template package.' });
15
+
16
+ this.addCommand();
17
+ }
18
+
19
+ onRunAsync(fCallback)
20
+ {
21
+ return fCallback();
22
+ }
23
+ }
24
+
25
+ module.exports = QuackageCommand;
@@ -1,21 +1,22 @@
1
1
  const libCommandLineCommand = require('pict-service-commandlineutility').ServiceCommandLineCommand;
2
+
2
3
  const libFS = require('fs');
3
4
  const libPath = require('path');
4
5
 
5
- class QuackageCommandBuildTemplates extends libCommandLineCommand
6
+ class QuackageCommandAssembleJsonViews extends libCommandLineCommand
6
7
  {
7
8
  constructor(pFable, pManifest, pServiceHash)
8
9
  {
9
10
  super(pFable, pManifest, pServiceHash);
10
11
 
11
- this.options.CommandKeyword = 'generate_json_views';
12
- this.options.Description = 'Generate pict ';
12
+ this.options.CommandKeyword = 'assemble_json_views';
13
+ this.options.Description = 'Assemble PICT JSON View Configurations';
13
14
 
14
- this.options.CommandArguments.push({ Name: '<folder>', Description: 'The folder path to build views in.' });
15
+ this.options.CommandArguments.push({ Name: '<folder>', Description: 'The folder path to build views from.' });
15
16
 
16
17
  this.options.CommandOptions.push({ Name: '-p, --prefix [prefix]', Description: 'A "prefix" for the view set identifiers', Default: 'Default' });
17
18
 
18
- this.options.Aliases.push('gjv');
19
+ this.options.Aliases.push('ajv');
19
20
 
20
21
  this.viewSets = {};
21
22
 
@@ -161,4 +162,4 @@ class QuackageCommandBuildTemplates extends libCommandLineCommand
161
162
  };
162
163
  }
163
164
 
164
- module.exports = QuackageCommandBuildTemplates;
165
+ module.exports = QuackageCommandAssembleJsonViews;