@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.
Files changed (109) hide show
  1. package/CHANGELOG.md +5 -1
  2. package/bin/v12/commands/express/steps/announce.js +3 -0
  3. package/bin/v12/commands/express/steps/createProject.js +6 -0
  4. package/bin/v12/commands/express/steps/decideTemplate.js +3 -0
  5. package/bin/v12/commands/express/steps/locateDestination.js +5 -0
  6. package/bin/v12/commands/express/steps/locateSource.js +13 -0
  7. package/bin/v12/commands/express/template/.env +8 -0
  8. package/bin/v12/commands/express/template/.env.local +7 -0
  9. package/bin/v12/commands/express/template/.vscode/launch.json +12 -0
  10. package/bin/v12/commands/express/template/Config/Schemas/BillsTable.json +166 -0
  11. package/bin/v12/commands/express/template/Config/Schemas/ItemsTable.json +206 -0
  12. package/bin/v12/commands/express/template/Config/Schemas/LedgerNames.json +50 -0
  13. package/bin/v12/commands/express/template/Config/Schemas/StockItems.json +45 -0
  14. package/bin/v12/commands/express/template/Config/api.json +8 -0
  15. package/bin/v12/commands/express/template/Config/schema.json +8 -0
  16. package/bin/v12/commands/express/template/Config/ui.json +8 -0
  17. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/build.js +6 -0
  18. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/config.js +12 -0
  19. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/main.js +29 -0
  20. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/publish.js +22 -0
  21. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/repo.js +20 -0
  22. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/schema.js +16 -0
  23. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/utils.js +26 -0
  24. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/Builder/version.js +25 -0
  25. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/buildAndCopy.js +166 -0
  26. package/bin/v12/commands/express/template/ForFrontEnd/NonSecured/latestVersion.js +38 -0
  27. package/bin/v12/commands/express/template/ForFrontEnd/Secured/buildProtected.js +108 -0
  28. package/bin/v12/commands/express/template/ForFrontEnd/Secured/latestVersion.js +38 -0
  29. package/bin/v12/commands/express/template/app.js +33 -0
  30. package/bin/v12/commands/express/template/config.json +4 -0
  31. package/bin/v12/commands/express/template/package.json +18 -0
  32. package/bin/v12/commands/express.js +23 -0
  33. package/bin/v12/commands/generateSamples.js +26 -0
  34. package/bin/v12/commands/init/steps/announce.js +3 -0
  35. package/bin/v12/commands/init/steps/createProject.js +7 -0
  36. package/bin/v12/commands/init/steps/decideTemplate.js +3 -0
  37. package/bin/v12/commands/init/steps/locateDestination.js +5 -0
  38. package/bin/v12/commands/init/steps/locateSource.js +13 -0
  39. package/bin/v12/commands/init/template/.vscode/launch.json +12 -0
  40. package/bin/v12/commands/init/template/Config/Schemas/BillsTable.json +165 -0
  41. package/bin/v12/commands/init/template/Config/Schemas/ItemsTable.json +200 -0
  42. package/bin/v12/commands/init/template/Config/Schemas/LedgerNames.json +50 -0
  43. package/bin/v12/commands/init/template/Config/Schemas/StockItems.json +45 -0
  44. package/bin/v12/commands/init/template/Config/api.json +8 -0
  45. package/bin/v12/commands/init/template/Config/schema.json +8 -0
  46. package/bin/v12/commands/init/template/Config/ui.json +8 -0
  47. package/bin/v12/commands/init/template/Data/BillsTable.json +165 -0
  48. package/bin/v12/commands/init/template/Data/ItemsTable.json +200 -0
  49. package/bin/v12/commands/init/template/Data/LedgerNames.json +6 -0
  50. package/bin/v12/commands/init/template/Data/StockItems.json +45 -0
  51. package/bin/v12/commands/init/template/app.js +4 -0
  52. package/bin/v12/commands/init/template/config.json +4 -0
  53. package/bin/v12/commands/init/template/package-lock.json +21 -0
  54. package/bin/v12/commands/init/template/package.json +14 -0
  55. package/bin/v12/commands/init/template/read.js +8 -0
  56. package/bin/v12/commands/init/template/write.js +8 -0
  57. package/bin/v12/commands/init.js +19 -0
  58. package/bin/v12/commands/template/baseTemplate.js +11 -0
  59. package/bin/v12/commands/template/basic/.vscode/launch.json +12 -0
  60. package/bin/v12/commands/template/basic/Config/Schemas/BillsTable.json +165 -0
  61. package/bin/v12/commands/template/basic/Config/Schemas/ItemsTable.json +200 -0
  62. package/bin/v12/commands/template/basic/Config/Schemas/LedgerNames.json +50 -0
  63. package/bin/v12/commands/template/basic/Config/Schemas/StockItems.json +45 -0
  64. package/bin/v12/commands/template/basic/Config/api.json +8 -0
  65. package/bin/v12/commands/template/basic/Config/schema.json +8 -0
  66. package/bin/v12/commands/template/basic/Config/ui.json +8 -0
  67. package/bin/v12/commands/template/basic/Data/BillsTable.json +165 -0
  68. package/bin/v12/commands/template/basic/Data/ItemsTable.json +200 -0
  69. package/bin/v12/commands/template/basic/Data/LedgerNames.json +6 -0
  70. package/bin/v12/commands/template/basic/Data/StockItems.json +45 -0
  71. package/bin/v12/commands/template/basic/app.js +4 -0
  72. package/bin/v12/commands/template/basic/config.json +4 -0
  73. package/bin/v12/commands/template/basic/package-lock.json +21 -0
  74. package/bin/v12/commands/template/basic/package.json +14 -0
  75. package/bin/v12/commands/template/basic/read.js +8 -0
  76. package/bin/v12/commands/template/basic/write.js +8 -0
  77. package/bin/v12/commands/template/express/.env +8 -0
  78. package/bin/v12/commands/template/express/.env.local +7 -0
  79. package/bin/v12/commands/template/express/.vscode/launch.json +12 -0
  80. package/bin/v12/commands/template/express/Config/Schemas/BillsTable.json +166 -0
  81. package/bin/v12/commands/template/express/Config/Schemas/ItemsTable.json +206 -0
  82. package/bin/v12/commands/template/express/Config/Schemas/LedgerNames.json +50 -0
  83. package/bin/v12/commands/template/express/Config/Schemas/StockItems.json +45 -0
  84. package/bin/v12/commands/template/express/Config/api.json +8 -0
  85. package/bin/v12/commands/template/express/Config/schema.json +8 -0
  86. package/bin/v12/commands/template/express/Config/ui.json +8 -0
  87. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/build.js +6 -0
  88. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/config.js +12 -0
  89. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/main.js +29 -0
  90. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/publish.js +22 -0
  91. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/repo.js +20 -0
  92. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/schema.js +16 -0
  93. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/utils.js +26 -0
  94. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/Builder/version.js +25 -0
  95. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/buildAndCopy.js +166 -0
  96. package/bin/v12/commands/template/express/ForFrontEnd/NonSecured/latestVersion.js +38 -0
  97. package/bin/v12/commands/template/express/ForFrontEnd/Secured/buildProtected.js +108 -0
  98. package/bin/v12/commands/template/express/ForFrontEnd/Secured/latestVersion.js +38 -0
  99. package/bin/v12/commands/template/express/app.js +33 -0
  100. package/bin/v12/commands/template/express/config.json +4 -0
  101. package/bin/v12/commands/template/express/package.json +18 -0
  102. package/bin/v12/commands/test.js +36 -0
  103. package/bin/v12/core/parseInput.js +10 -0
  104. package/bin/v12/core/resolveCommand.js +16 -0
  105. package/bin/v12/core/resolveFolderName.js +17 -0
  106. package/bin/v12/core/showUsage.js +42 -0
  107. package/bin/v12/start.js +22 -0
  108. package/index.js +1 -0
  109. package/package.json +5 -2
@@ -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.11.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
+ }