quackage 1.0.47 → 1.0.48
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/docs/.nojekyll +0 -0
- package/docs/README.md +111 -0
- package/docs/_sidebar.md +35 -0
- package/docs/_topbar.md +5 -0
- package/docs/commands/boilerplate/README.md +45 -0
- package/docs/commands/boilerplate/boilerplate.md +55 -0
- package/docs/commands/boilerplate/buildtemplates.md +47 -0
- package/docs/commands/boilerplate/listtemplates.md +38 -0
- package/docs/commands/building/README.md +28 -0
- package/docs/commands/building/build.md +77 -0
- package/docs/commands/building/copy-files-from-to.md +34 -0
- package/docs/commands/building/run-mocha-tests.md +43 -0
- package/docs/commands/compiling/README.md +21 -0
- package/docs/commands/compiling/assemble_json_views.md +74 -0
- package/docs/commands/compiling/stricture-compile.md +33 -0
- package/docs/commands/compiling/stricture-legaacy.md +33 -0
- package/docs/commands/documentation/README.md +41 -0
- package/docs/commands/documentation/docs-serve.md +54 -0
- package/docs/commands/documentation/docuserve-inject.md +46 -0
- package/docs/commands/documentation/generate-documentation.md +47 -0
- package/docs/commands/documentation/indoctrinate-index.md +41 -0
- package/docs/commands/documentation/indoctrinate.md +46 -0
- package/docs/commands/documentation/prepare-docs.md +65 -0
- package/docs/commands/documentation/prepare-local.md +49 -0
- package/docs/commands/package-management/README.md +39 -0
- package/docs/commands/package-management/lint.md +36 -0
- package/docs/commands/package-management/luxuryupdatepackage.md +44 -0
- package/docs/commands/package-management/updatepackage.md +48 -0
- package/docs/cover.md +13 -0
- package/docs/css/docuserve.css +73 -0
- package/docs/errorpage.md +9 -0
- package/docs/index.html +39 -0
- package/docs/retold-catalog.json +255 -0
- package/docs/retold-keyword-index.json +8424 -0
- package/package.json +3 -3
- package/source/Quackage-CLIProgram.js +1 -0
- package/source/commands/Quackage-Command-DocuservePrepareLocal.js +75 -0
- package/source/commands/Quackage-Command-DocuserveServe.js +2 -2
- package/source/commands/Quackage-Command-PrepareDocs.js +2 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quackage",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.48",
|
|
4
4
|
"description": "Building. Testing. Quacking. Reloading.",
|
|
5
5
|
"main": "source/Quackage-CLIProgram.js",
|
|
6
6
|
"scripts": {
|
|
@@ -65,8 +65,8 @@
|
|
|
65
65
|
"mocha": "10.4.0",
|
|
66
66
|
"npm-check-updates": "^18.0.1",
|
|
67
67
|
"nyc": "^15.1.0",
|
|
68
|
-
"pict-docuserve": "^0.0.
|
|
69
|
-
"pict-service-commandlineutility": "^1.0.
|
|
68
|
+
"pict-docuserve": "^0.0.8",
|
|
69
|
+
"pict-service-commandlineutility": "^1.0.18",
|
|
70
70
|
"vinyl-buffer": "^1.0.1",
|
|
71
71
|
"vinyl-source-stream": "^2.0.0"
|
|
72
72
|
},
|
|
@@ -47,6 +47,7 @@ let _Pict = new libCLIProgram(
|
|
|
47
47
|
require('./commands/Quackage-Command-Indoctrinate.js'),
|
|
48
48
|
require('./commands/Quackage-Command-IndoctrinateIndex.js'),
|
|
49
49
|
require('./commands/Quackage-Command-DocuserveInject.js'),
|
|
50
|
+
require('./commands/Quackage-Command-DocuservePrepareLocal.js'),
|
|
50
51
|
require('./commands/Quackage-Command-PrepareDocs.js'),
|
|
51
52
|
require('./commands/Quackage-Command-DocuserveServe.js')
|
|
52
53
|
]);
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
const libCommandLineCommand = require('pict-service-commandlineutility').ServiceCommandLineCommand;
|
|
2
|
+
const libFS = require('fs');
|
|
3
|
+
const libPath = require('path');
|
|
4
|
+
|
|
5
|
+
class QuackageCommandDocuservePrepareLocal extends libCommandLineCommand
|
|
6
|
+
{
|
|
7
|
+
constructor(pFable, pManifest, pServiceHash)
|
|
8
|
+
{
|
|
9
|
+
super(pFable, pManifest, pServiceHash);
|
|
10
|
+
|
|
11
|
+
this.options.CommandKeyword = 'prepare-local';
|
|
12
|
+
this.options.Description = 'Copy local pict and pict-docuserve JS bundles into a docs folder for offline use.';
|
|
13
|
+
|
|
14
|
+
this.options.CommandArguments.push({ Name: '[docs_folder]', Description: 'The documentation folder to stage local JS bundles into.' });
|
|
15
|
+
|
|
16
|
+
this.options.Aliases.push('local-docs');
|
|
17
|
+
this.options.Aliases.push('stage-local');
|
|
18
|
+
|
|
19
|
+
this.addCommand();
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
onRunAsync(fCallback)
|
|
23
|
+
{
|
|
24
|
+
let tmpDocsFolder = libPath.resolve(this.ArgumentString || './docs');
|
|
25
|
+
|
|
26
|
+
this.log.info(`Staging local JS bundles into documentation folder...`);
|
|
27
|
+
this.log.info(` Target: ${tmpDocsFolder}`);
|
|
28
|
+
|
|
29
|
+
if (!libFS.existsSync(tmpDocsFolder))
|
|
30
|
+
{
|
|
31
|
+
return fCallback(new Error(`Documentation folder not found at [${tmpDocsFolder}].`));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
// Find the pict-docuserve binary
|
|
35
|
+
let tmpDocuserveLocation = this.resolveExecutable('pict-docuserve');
|
|
36
|
+
if (!tmpDocuserveLocation)
|
|
37
|
+
{
|
|
38
|
+
return fCallback(new Error(`Could not find pict-docuserve. Make sure it is installed (npm install pict-docuserve).`));
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
this.log.info(`Found pict-docuserve at [${tmpDocuserveLocation}]`);
|
|
42
|
+
|
|
43
|
+
this.fable.QuackageProcess.execute(
|
|
44
|
+
tmpDocuserveLocation,
|
|
45
|
+
[
|
|
46
|
+
'prepare-local',
|
|
47
|
+
tmpDocsFolder
|
|
48
|
+
],
|
|
49
|
+
{ cwd: this.fable.AppData.CWD },
|
|
50
|
+
fCallback
|
|
51
|
+
);
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
resolveExecutable(pName)
|
|
55
|
+
{
|
|
56
|
+
let tmpLocations =
|
|
57
|
+
[
|
|
58
|
+
`${this.fable.AppData.CWD}/node_modules/.bin/${pName}`,
|
|
59
|
+
`${__dirname}/../../../.bin/${pName}`,
|
|
60
|
+
`${__dirname}/../../node_modules/.bin/${pName}`
|
|
61
|
+
];
|
|
62
|
+
|
|
63
|
+
for (let i = 0; i < tmpLocations.length; i++)
|
|
64
|
+
{
|
|
65
|
+
if (libFS.existsSync(tmpLocations[i]))
|
|
66
|
+
{
|
|
67
|
+
return tmpLocations[i];
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
module.exports = QuackageCommandDocuservePrepareLocal;
|
|
@@ -11,7 +11,7 @@ class QuackageCommandDocuserveServe extends libCommandLineCommand
|
|
|
11
11
|
this.options.CommandKeyword = 'docs-serve';
|
|
12
12
|
this.options.Description = 'Serve a documentation folder locally using pict-docuserve.';
|
|
13
13
|
|
|
14
|
-
this.options.CommandArguments.push({ Name: '
|
|
14
|
+
this.options.CommandArguments.push({ Name: '[docs_folder]', Description: 'The documentation folder to serve.' });
|
|
15
15
|
|
|
16
16
|
this.options.CommandOptions.push({ Name: '-p, --port [port]', Description: 'Port to serve on.', Default: '3333' });
|
|
17
17
|
|
|
@@ -22,7 +22,7 @@ class QuackageCommandDocuserveServe extends libCommandLineCommand
|
|
|
22
22
|
|
|
23
23
|
onRunAsync(fCallback)
|
|
24
24
|
{
|
|
25
|
-
let tmpDocsFolder = libPath.resolve(this.ArgumentString || '
|
|
25
|
+
let tmpDocsFolder = libPath.resolve(this.ArgumentString || './docs');
|
|
26
26
|
let tmpPort = this.CommandOptions.port || '3333';
|
|
27
27
|
|
|
28
28
|
this.log.info(`Serving documentation with pict-docuserve...`);
|
|
@@ -11,7 +11,7 @@ class QuackageCommandPrepareDocs extends libCommandLineCommand
|
|
|
11
11
|
this.options.CommandKeyword = 'prepare-docs';
|
|
12
12
|
this.options.Description = 'Prepare documentation: generate catalog, build keyword index and inject pict-docuserve assets.';
|
|
13
13
|
|
|
14
|
-
this.options.CommandArguments.push({ Name: '
|
|
14
|
+
this.options.CommandArguments.push({ Name: '[docs_folder]', Description: 'The documentation folder to prepare.' });
|
|
15
15
|
|
|
16
16
|
this.options.CommandOptions.push({ Name: '-d, --directory_root [directory_root]', Description: 'Root directory to scan for modules (defaults to CWD).', Default: '' });
|
|
17
17
|
this.options.CommandOptions.push({ Name: '-b, --branch [branch]', Description: 'Git branch for GitHub raw URLs (defaults to master).', Default: 'master' });
|
|
@@ -25,7 +25,7 @@ class QuackageCommandPrepareDocs extends libCommandLineCommand
|
|
|
25
25
|
|
|
26
26
|
onRunAsync(fCallback)
|
|
27
27
|
{
|
|
28
|
-
let tmpDocsFolder = libPath.resolve(this.ArgumentString || '
|
|
28
|
+
let tmpDocsFolder = libPath.resolve(this.ArgumentString || './docs');
|
|
29
29
|
let tmpDirectoryRoot = this.CommandOptions.directory_root || this.fable.AppData.CWD;
|
|
30
30
|
let tmpBranch = this.CommandOptions.branch || 'master';
|
|
31
31
|
let tmpGitHubOrg = this.CommandOptions.github_org || 'stevenvelozo';
|