@keshavsoft/kschema-cli 1.11.1 → 1.12.1
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/CHANGELOG.md +5 -1
- package/bin/v12/commands/express/steps/announce.js +3 -0
- package/bin/v12/commands/express/steps/createProject.js +6 -0
- package/bin/v12/commands/express/steps/decideTemplate.js +3 -0
- package/bin/v12/commands/express/steps/locateDestination.js +5 -0
- package/bin/v12/commands/express/steps/locateSource.js +13 -0
- package/bin/v12/commands/express/template/.env +8 -0
- package/bin/v12/commands/express/template/.env.local +7 -0
- package/bin/v12/commands/express/template/.vscode/launch.json +12 -0
- package/bin/v12/commands/express/template/Config/Schemas/BillsTable.json +166 -0
- package/bin/v12/commands/express/template/Config/Schemas/ItemsTable.json +206 -0
- package/bin/v12/commands/express/template/Config/Schemas/LedgerNames.json +50 -0
- package/bin/v12/commands/express/template/Config/Schemas/StockItems.json +45 -0
- package/bin/v12/commands/express/template/Config/api.json +8 -0
- package/bin/v12/commands/express/template/Config/schema.json +8 -0
- package/bin/v12/commands/express/template/Config/ui.json +8 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/build.js +6 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/config.js +12 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/main.js +29 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/publish.js +22 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/repo.js +20 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/schema.js +16 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/utils.js +26 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/version.js +25 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/buildAndCopy.js +166 -0
- package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/latestVersion.js +38 -0
- package/bin/v12/commands/express/template/ForFrontEnd/Secured/buildProtected.js +108 -0
- package/bin/v12/commands/express/template/ForFrontEnd/Secured/latestVersion.js +38 -0
- package/bin/v12/commands/express/template/app.js +33 -0
- package/bin/v12/commands/express/template/config.json +4 -0
- package/bin/v12/commands/express/template/package.json +18 -0
- package/bin/v12/commands/express.js +23 -0
- package/bin/v12/commands/generateSamples.js +26 -0
- package/bin/v12/commands/init/steps/announce.js +3 -0
- package/bin/v12/commands/init/steps/createProject.js +7 -0
- package/bin/v12/commands/init/steps/decideTemplate.js +3 -0
- package/bin/v12/commands/init/steps/locateDestination.js +5 -0
- package/bin/v12/commands/init/steps/locateSource.js +13 -0
- package/bin/v12/commands/init/template/.vscode/launch.json +12 -0
- package/bin/v12/commands/init/template/Config/Schemas/BillsTable.json +165 -0
- package/bin/v12/commands/init/template/Config/Schemas/ItemsTable.json +200 -0
- package/bin/v12/commands/init/template/Config/Schemas/LedgerNames.json +50 -0
- package/bin/v12/commands/init/template/Config/Schemas/StockItems.json +45 -0
- package/bin/v12/commands/init/template/Config/api.json +8 -0
- package/bin/v12/commands/init/template/Config/schema.json +8 -0
- package/bin/v12/commands/init/template/Config/ui.json +8 -0
- package/bin/v12/commands/init/template/Data/BillsTable.json +165 -0
- package/bin/v12/commands/init/template/Data/ItemsTable.json +200 -0
- package/bin/v12/commands/init/template/Data/LedgerNames.json +6 -0
- package/bin/v12/commands/init/template/Data/StockItems.json +45 -0
- package/bin/v12/commands/init/template/app.js +4 -0
- package/bin/v12/commands/init/template/config.json +4 -0
- package/bin/v12/commands/init/template/package-lock.json +21 -0
- package/bin/v12/commands/init/template/package.json +14 -0
- package/bin/v12/commands/init/template/read.js +8 -0
- package/bin/v12/commands/init/template/write.js +8 -0
- package/bin/v12/commands/init.js +19 -0
- package/bin/v12/commands/template/baseTemplate.js +11 -0
- package/bin/v12/commands/template/basic/.vscode/launch.json +12 -0
- package/bin/v12/commands/template/basic/Config/Schemas/BillsTable.json +165 -0
- package/bin/v12/commands/template/basic/Config/Schemas/ItemsTable.json +200 -0
- package/bin/v12/commands/template/basic/Config/Schemas/LedgerNames.json +50 -0
- package/bin/v12/commands/template/basic/Config/Schemas/StockItems.json +45 -0
- package/bin/v12/commands/template/basic/Config/api.json +8 -0
- package/bin/v12/commands/template/basic/Config/schema.json +8 -0
- package/bin/v12/commands/template/basic/Config/ui.json +8 -0
- package/bin/v12/commands/template/basic/Data/BillsTable.json +165 -0
- package/bin/v12/commands/template/basic/Data/ItemsTable.json +200 -0
- package/bin/v12/commands/template/basic/Data/LedgerNames.json +6 -0
- package/bin/v12/commands/template/basic/Data/StockItems.json +45 -0
- package/bin/v12/commands/template/basic/app.js +4 -0
- package/bin/v12/commands/template/basic/config.json +4 -0
- package/bin/v12/commands/template/basic/package-lock.json +21 -0
- package/bin/v12/commands/template/basic/package.json +14 -0
- package/bin/v12/commands/template/basic/read.js +8 -0
- package/bin/v12/commands/template/basic/write.js +8 -0
- package/bin/v12/commands/template/express/.env +8 -0
- package/bin/v12/commands/template/express/.env.local +7 -0
- package/bin/v12/commands/template/express/.vscode/launch.json +12 -0
- package/bin/v12/commands/template/express/Config/Schemas/BillsTable.json +166 -0
- package/bin/v12/commands/template/express/Config/Schemas/ItemsTable.json +206 -0
- package/bin/v12/commands/template/express/Config/Schemas/LedgerNames.json +50 -0
- package/bin/v12/commands/template/express/Config/Schemas/StockItems.json +45 -0
- package/bin/v12/commands/template/express/Config/api.json +8 -0
- package/bin/v12/commands/template/express/Config/schema.json +8 -0
- package/bin/v12/commands/template/express/Config/ui.json +8 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +6 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +12 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +29 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +22 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +20 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +16 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +26 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +25 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +166 -0
- package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +38 -0
- package/bin/v12/commands/template/express/ForFrontEnd/Secured/buildProtected.js +108 -0
- package/bin/v12/commands/template/express/ForFrontEnd/Secured/latestVersion.js +38 -0
- package/bin/v12/commands/template/express/app.js +33 -0
- package/bin/v12/commands/template/express/config.json +4 -0
- package/bin/v12/commands/template/express/package.json +18 -0
- package/bin/v12/commands/test.js +36 -0
- package/bin/v12/core/parseInput.js +10 -0
- package/bin/v12/core/resolveCommand.js +16 -0
- package/bin/v12/core/resolveFolderName.js +17 -0
- package/bin/v12/core/showUsage.js +42 -0
- package/bin/v12/start.js +22 -0
- package/index.js +1 -0
- package/package.json +5 -2
package/bin/v12/start.js
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import parseInput from "./core/parseInput.js";
|
|
2
|
+
import resolveCommand from "./core/resolveCommand.js";
|
|
3
|
+
import showUsage from './core/showUsage.js';
|
|
4
|
+
import pkg from '../../package.json' with { type: 'json' };
|
|
5
|
+
|
|
6
|
+
const version = pkg.version;
|
|
7
|
+
|
|
8
|
+
const run = async () => {
|
|
9
|
+
const input = parseInput();
|
|
10
|
+
|
|
11
|
+
if (!input.cmd) return showUsage(version);
|
|
12
|
+
|
|
13
|
+
if (input.cmd === "--help" || input.cmd === "-h" || input.cmd === "help") return showUsage(version);
|
|
14
|
+
|
|
15
|
+
const command = resolveCommand(input.cmd);
|
|
16
|
+
|
|
17
|
+
if (!command) return (console.log(`Unknown command: ${input.cmd}\n`), showUsage(version));
|
|
18
|
+
|
|
19
|
+
await command(input);
|
|
20
|
+
};
|
|
21
|
+
|
|
22
|
+
export default run;
|
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as init } from "./bin/v12/commands/init.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@keshavsoft/kschema-cli",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.12.1",
|
|
4
4
|
"description": "CLI to scaffold projects using templates",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"cli",
|
|
@@ -13,6 +13,9 @@
|
|
|
13
13
|
"@keshavsoft/kschema": "^1.17.8"
|
|
14
14
|
},
|
|
15
15
|
"type": "module",
|
|
16
|
+
"exports": {
|
|
17
|
+
".": "./index.js"
|
|
18
|
+
},
|
|
16
19
|
"bin": {
|
|
17
20
|
"kschema-cli": "./bin/cli.js"
|
|
18
21
|
},
|
|
@@ -24,4 +27,4 @@
|
|
|
24
27
|
"bugs": {
|
|
25
28
|
"url": "https://github.com/keshavsoft/kschema-cli/issues"
|
|
26
29
|
}
|
|
27
|
-
}
|
|
30
|
+
}
|