@yongdall/init 0.1.0

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/index.d.mts ADDED
@@ -0,0 +1,4 @@
1
+ //#region packages/init/index.d.mts
2
+ declare const development: boolean;
3
+ //#endregion
4
+ export { development };
package/index.mjs ADDED
@@ -0,0 +1,14 @@
1
+ import { setDevelopment } from "@yongdall/model";
2
+ import { boot, tenant } from "@yongdall/configuration";
3
+ import initSystem from "@yongdall/core";
4
+ import { loadHooks } from "@yongdall/load";
5
+
6
+ //#region packages/init/index.mjs
7
+ const argv = process.argv.slice(2);
8
+ const development = argv.includes("--development");
9
+ if (development) setDevelopment(true);
10
+ initSystem(tenant, boot, await loadHooks());
11
+
12
+ //#endregion
13
+ export { development };
14
+ //# sourceMappingURL=index.mjs.map
package/index.mjs.map ADDED
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.mjs","names":[],"sources":["../../packages/init/index.mjs"],"sourcesContent":["import { setDevelopment } from '@yongdall/model';\nimport { boot, tenant } from '@yongdall/configuration';\nimport initSystem from '@yongdall/core';\nimport { loadHooks } from '@yongdall/load';\nconst argv = process.argv.slice(2);\nexport const development = argv.includes('--development');\nif (development) {\n\tsetDevelopment(true);\n}\n\nconst pluginHooks = await loadHooks();\n\ninitSystem(tenant, boot, pluginHooks);\n"],"mappings":";;;;;;AAIA,MAAM,OAAO,QAAQ,KAAK,MAAM,EAAE;AAClC,MAAa,cAAc,KAAK,SAAS,gBAAgB;AACzD,IAAI,YACH,gBAAe,KAAK;AAKrB,WAAW,QAAQ,MAFC,MAAM,WAAW,CAEA"}
package/package.json ADDED
@@ -0,0 +1,23 @@
1
+ {
2
+ "name": "@yongdall/init",
3
+ "type": "module",
4
+ "main": "./index.mjs",
5
+ "exports": {
6
+ ".": "./index.mjs"
7
+ },
8
+ "version": "0.1.0",
9
+ "description": "",
10
+ "keywords": [],
11
+ "author": "",
12
+ "license": "ISC",
13
+ "dependencies": {
14
+ "@yongdall/plugins": "^0.1.0",
15
+ "@yongdall/assets": "^0.1.0",
16
+ "@yongdall/configuration": "^0.1.0",
17
+ "@yongdall/model": "^0.1.0",
18
+ "@yongdall/core": "^0.1.0",
19
+ "@yongdall/connection": "^0.1.0",
20
+ "@yongdall/load": "^0.1.0"
21
+ },
22
+ "devDependencies": {}
23
+ }