@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.
- package/bin/v13/commands/accounts/steps/announce.js +3 -0
- package/bin/v13/commands/accounts/steps/createProject.js +7 -0
- package/bin/v13/commands/accounts/steps/locateDestination.js +5 -0
- package/bin/v13/commands/accounts/steps/locateSource.js +16 -0
- package/bin/v13/commands/accounts/template/v6/.env +9 -0
- package/bin/v13/commands/accounts/template/v6/.env.local +7 -0
- package/bin/v13/commands/accounts/template/v6/.vscode/launch.json +12 -0
- package/bin/v13/commands/accounts/template/v6/Config/Schemas/BillsTable.json +165 -0
- package/bin/v13/commands/accounts/template/v6/Config/Schemas/ItemsTable.json +200 -0
- package/bin/v13/commands/accounts/template/v6/Config/Schemas/LedgerNames.json +60 -0
- package/bin/v13/commands/accounts/template/v6/Config/Schemas/StockItems.json +50 -0
- package/bin/v13/commands/accounts/template/v6/Config/api.json +8 -0
- package/bin/v13/commands/accounts/template/v6/Config/schema.json +8 -0
- package/bin/v13/commands/accounts/template/v6/Config/ui.json +8 -0
- package/bin/v13/commands/accounts/template/v6/Public/index.html +129 -0
- package/bin/v13/commands/accounts/template/v6/app.js +19 -0
- package/bin/v13/commands/accounts/template/v6/config.json +4 -0
- package/bin/v13/commands/accounts/template/v6/configLoader.js +6 -0
- package/bin/v13/commands/accounts/template/v6/package-lock.json +834 -0
- package/bin/v13/commands/accounts/template/v6/package.json +21 -0
- package/bin/v13/commands/accounts/template/v6/port.js +6 -0
- package/bin/v13/commands/accounts/template/v6/routes.js +5 -0
- package/bin/v13/commands/accounts/template/v6/server.js +13 -0
- package/bin/v13/commands/accounts/template/v7/.env +9 -0
- package/bin/v13/commands/accounts/template/v7/.env.local +7 -0
- package/bin/v13/commands/accounts/template/v7/.vscode/launch.json +12 -0
- package/bin/v13/commands/accounts/template/v7/Config/Schemas/journals.json +60 -0
- package/bin/v13/commands/accounts/template/v7/Config/api.json +8 -0
- package/bin/v13/commands/accounts/template/v7/Config/schema.json +8 -0
- package/bin/v13/commands/accounts/template/v7/Config/ui.json +8 -0
- package/bin/v13/commands/accounts/template/v7/Public/index.html +129 -0
- package/bin/v13/commands/accounts/template/v7/app.js +19 -0
- package/bin/v13/commands/accounts/template/v7/config.json +4 -0
- package/bin/v13/commands/accounts/template/v7/configLoader.js +6 -0
- package/bin/v13/commands/accounts/template/v7/package-lock.json +834 -0
- package/bin/v13/commands/accounts/template/v7/package.json +21 -0
- package/bin/v13/commands/accounts/template/v7/port.js +6 -0
- package/bin/v13/commands/accounts/template/v7/routes.js +5 -0
- package/bin/v13/commands/accounts/template/v7/server.js +13 -0
- package/bin/v13/commands/accounts.js +19 -0
- package/bin/v13/commands/express/steps/locateSource.js +1 -1
- package/bin/v13/commands/express/template/v6/.env +9 -0
- package/bin/v13/commands/express/template/v6/.env.local +7 -0
- package/bin/v13/commands/express/template/v6/.vscode/launch.json +12 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/BillsTable.json +165 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/ItemsTable.json +200 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/LedgerNames.json +60 -0
- package/bin/v13/commands/express/template/v6/Config/Schemas/StockItems.json +50 -0
- package/bin/v13/commands/express/template/v6/Config/api.json +8 -0
- package/bin/v13/commands/express/template/v6/Config/schema.json +8 -0
- package/bin/v13/commands/express/template/v6/Config/ui.json +8 -0
- package/bin/v13/commands/express/template/v6/Public/index.html +129 -0
- package/bin/v13/commands/express/template/v6/app.js +19 -0
- package/bin/v13/commands/express/template/v6/config.json +4 -0
- package/bin/v13/commands/express/template/v6/configLoader.js +6 -0
- package/bin/v13/commands/express/template/v6/package-lock.json +834 -0
- package/bin/v13/commands/express/template/v6/package.json +21 -0
- package/bin/v13/commands/express/template/v6/port.js +6 -0
- package/bin/v13/commands/express/template/v6/routes.js +5 -0
- package/bin/v13/commands/express/template/v6/server.js +13 -0
- package/bin/v13/core/resolveCommand.js +3 -1
- package/bin/v13/core/showUsage.js +2 -0
- package/index.js +2 -1
- package/package.json +1 -1
- 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
|
+
};
|