@keshavsoft/kschema-cli 1.13.2 → 1.13.5

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 (65) hide show
  1. package/bin/v13/commands/accounts/steps/announce.js +3 -0
  2. package/bin/v13/commands/accounts/steps/createProject.js +7 -0
  3. package/bin/v13/commands/accounts/steps/locateDestination.js +5 -0
  4. package/bin/v13/commands/accounts/steps/locateSource.js +16 -0
  5. package/bin/v13/commands/accounts/template/v6/.env +9 -0
  6. package/bin/v13/commands/accounts/template/v6/.env.local +7 -0
  7. package/bin/v13/commands/accounts/template/v6/.vscode/launch.json +12 -0
  8. package/bin/v13/commands/accounts/template/v6/Config/Schemas/BillsTable.json +165 -0
  9. package/bin/v13/commands/accounts/template/v6/Config/Schemas/ItemsTable.json +200 -0
  10. package/bin/v13/commands/accounts/template/v6/Config/Schemas/LedgerNames.json +60 -0
  11. package/bin/v13/commands/accounts/template/v6/Config/Schemas/StockItems.json +50 -0
  12. package/bin/v13/commands/accounts/template/v6/Config/api.json +8 -0
  13. package/bin/v13/commands/accounts/template/v6/Config/schema.json +8 -0
  14. package/bin/v13/commands/accounts/template/v6/Config/ui.json +8 -0
  15. package/bin/v13/commands/accounts/template/v6/Public/index.html +129 -0
  16. package/bin/v13/commands/accounts/template/v6/app.js +19 -0
  17. package/bin/v13/commands/accounts/template/v6/config.json +4 -0
  18. package/bin/v13/commands/accounts/template/v6/configLoader.js +6 -0
  19. package/bin/v13/commands/accounts/template/v6/package-lock.json +834 -0
  20. package/bin/v13/commands/accounts/template/v6/package.json +21 -0
  21. package/bin/v13/commands/accounts/template/v6/port.js +6 -0
  22. package/bin/v13/commands/accounts/template/v6/routes.js +5 -0
  23. package/bin/v13/commands/accounts/template/v6/server.js +13 -0
  24. package/bin/v13/commands/accounts/template/v7/.env +9 -0
  25. package/bin/v13/commands/accounts/template/v7/.env.local +7 -0
  26. package/bin/v13/commands/accounts/template/v7/.vscode/launch.json +12 -0
  27. package/bin/v13/commands/accounts/template/v7/Config/Schemas/journals.json +60 -0
  28. package/bin/v13/commands/accounts/template/v7/Config/api.json +8 -0
  29. package/bin/v13/commands/accounts/template/v7/Config/schema.json +8 -0
  30. package/bin/v13/commands/accounts/template/v7/Config/ui.json +8 -0
  31. package/bin/v13/commands/accounts/template/v7/Public/index.html +129 -0
  32. package/bin/v13/commands/accounts/template/v7/app.js +19 -0
  33. package/bin/v13/commands/accounts/template/v7/config.json +4 -0
  34. package/bin/v13/commands/accounts/template/v7/configLoader.js +6 -0
  35. package/bin/v13/commands/accounts/template/v7/package-lock.json +834 -0
  36. package/bin/v13/commands/accounts/template/v7/package.json +21 -0
  37. package/bin/v13/commands/accounts/template/v7/port.js +6 -0
  38. package/bin/v13/commands/accounts/template/v7/routes.js +5 -0
  39. package/bin/v13/commands/accounts/template/v7/server.js +13 -0
  40. package/bin/v13/commands/accounts.js +19 -0
  41. package/bin/v13/commands/express/steps/locateSource.js +1 -1
  42. package/bin/v13/commands/express/template/v6/.env +9 -0
  43. package/bin/v13/commands/express/template/v6/.env.local +7 -0
  44. package/bin/v13/commands/express/template/v6/.vscode/launch.json +12 -0
  45. package/bin/v13/commands/express/template/v6/Config/Schemas/BillsTable.json +165 -0
  46. package/bin/v13/commands/express/template/v6/Config/Schemas/ItemsTable.json +200 -0
  47. package/bin/v13/commands/express/template/v6/Config/Schemas/LedgerNames.json +60 -0
  48. package/bin/v13/commands/express/template/v6/Config/Schemas/StockItems.json +50 -0
  49. package/bin/v13/commands/express/template/v6/Config/api.json +8 -0
  50. package/bin/v13/commands/express/template/v6/Config/schema.json +8 -0
  51. package/bin/v13/commands/express/template/v6/Config/ui.json +8 -0
  52. package/bin/v13/commands/express/template/v6/Public/index.html +129 -0
  53. package/bin/v13/commands/express/template/v6/app.js +19 -0
  54. package/bin/v13/commands/express/template/v6/config.json +4 -0
  55. package/bin/v13/commands/express/template/v6/configLoader.js +6 -0
  56. package/bin/v13/commands/express/template/v6/package-lock.json +834 -0
  57. package/bin/v13/commands/express/template/v6/package.json +21 -0
  58. package/bin/v13/commands/express/template/v6/port.js +6 -0
  59. package/bin/v13/commands/express/template/v6/routes.js +5 -0
  60. package/bin/v13/commands/express/template/v6/server.js +13 -0
  61. package/bin/v13/core/resolveCommand.js +3 -1
  62. package/bin/v13/core/showUsage.js +2 -0
  63. package/index.js +2 -1
  64. package/package.json +1 -1
  65. package/bin/v13/core/showUsageV1.js +0 -42
@@ -0,0 +1,19 @@
1
+ import { exec } from "child_process";
2
+
3
+ import express from "express";
4
+
5
+ import loadConfig from "./configLoader.js";
6
+ import setupRoutes from "./routes.js";
7
+ import startServer from "./server.js";
8
+
9
+ loadConfig();
10
+
11
+ const app = express()
12
+
13
+ setupRoutes(app);
14
+
15
+ const { port } = startServer(app);
16
+
17
+ if (process.env.OPEN_BROWSER === "true") {
18
+ exec(`start http://localhost:${port}`);
19
+ };
@@ -0,0 +1,4 @@
1
+ {
2
+ "DataPath": "Data",
3
+ "SchemaPath": "Config/Schemas"
4
+ }
@@ -0,0 +1,6 @@
1
+ import { kschema } from "@keshavsoft/kschema";
2
+ import configJson from './config.json' with { type: 'json' };
3
+
4
+ export default function loadConfig() {
5
+ kschema.loadConfig(configJson);
6
+ };