@vc-shell/create-vc-app 2.4.0 → 2.5.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/dist/commands/add-module.d.ts.map +1 -1
- package/dist/commands/init.d.ts.map +1 -1
- package/dist/engine/codegen.d.ts +5 -2
- package/dist/engine/codegen.d.ts.map +1 -1
- package/dist/engine/codegen.test.d.ts +2 -0
- package/dist/engine/codegen.test.d.ts.map +1 -0
- package/dist/engine/format.d.ts +13 -0
- package/dist/engine/format.d.ts.map +1 -0
- package/dist/index.js +330 -233
- package/dist/templates/dynamic-module/_package.json.ejs +3 -3
- package/dist/templates/dynamic-module/tsconfig.json +1 -5
- package/dist/templates/module/composables/useDetails.ts.ejs +1 -0
- package/dist/templates/module/composables/useList.ts.ejs +2 -1
- package/dist/templates/module/pages/list.vue.ejs +24 -4
- package/dist/templates/sample-module/composables/useList/index.ts +1 -1
- package/dist/templates/sample-module/pages/index.ts +1 -1
- package/dist/templates/sample-module/pages/list.vue +9 -1
- package/dist/templates/sample-module/sample-data/index.ts +2 -2
- package/dist/templates/standalone/_github/COMMIT_CONVENTION.md +12 -12
- package/dist/templates/standalone/_github/PULL_REQUEST_TEMPLATE.md +3 -0
- package/dist/templates/standalone/_package.json.ejs +4 -4
- package/dist/templates/standalone/_vscode/extensions.json +1 -3
- package/dist/templates/standalone/_vscode/settings.json +3 -8
- package/dist/templates/standalone/eslint.config.mjs +20 -0
- package/dist/templates/standalone/src/api_client/README.md +38 -37
- package/dist/templates/standalone/src/bootstrap.ts.ejs +1 -2
- package/dist/templates/standalone/src/components/dashboard-widgets/Welcome.vue +1 -2
- package/dist/templates/standalone/src/pages/App.vue.ejs +1 -0
- package/dist/templates/standalone/src/pages/Dashboard.vue.ejs +1 -1
- package/dist/templates/standalone/src/router/routes.ts.ejs +12 -15
- package/dist/templates/standalone/tsconfig.json +2 -9
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"add-module.d.ts","sourceRoot":"","sources":["../../src/commands/add-module.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"add-module.d.ts","sourceRoot":"","sources":["../../src/commands/add-module.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAE3C,wBAAsB,gBAAgB,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CAoFzF"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,aAAa,CAAC;
|
|
1
|
+
{"version":3,"file":"init.d.ts","sourceRoot":"","sources":["../../src/commands/init.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,EAAE,OAAO,EAA+B,MAAM,aAAa,CAAC;AAsBxE,wBAAsB,WAAW,CAAC,IAAI,EAAE,OAAO,EAAE,YAAY,EAAE,MAAM,GAAG,OAAO,CAAC,IAAI,CAAC,CA4NpF"}
|
package/dist/engine/codegen.d.ts
CHANGED
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* Add a module import and app.use()
|
|
2
|
+
* Add a module import and its `app.use()` registration to main.ts.
|
|
3
|
+
*
|
|
4
|
+
* Throws when either anchor is missing, so the caller can tell the user what to
|
|
5
|
+
* add by hand rather than reporting a change it did not make.
|
|
3
6
|
*/
|
|
4
7
|
export declare function addModuleToMain(mainTsPath: string, moduleName: string): void;
|
|
5
8
|
/**
|
|
6
|
-
* Add a menu item registration to bootstrap.ts
|
|
9
|
+
* Add a menu item registration to bootstrap.ts, after the last existing one.
|
|
7
10
|
*/
|
|
8
11
|
export declare function addMenuItemToBootstrap(bootstrapPath: string, moduleName: string): void;
|
|
9
12
|
//# sourceMappingURL=codegen.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/engine/codegen.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"codegen.d.ts","sourceRoot":"","sources":["../../src/engine/codegen.ts"],"names":[],"mappings":"AA6IA;;;;;GAKG;AACH,wBAAgB,eAAe,CAAC,UAAU,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CA2B5E;AAiCD;;GAEG;AACH,wBAAgB,sBAAsB,CAAC,aAAa,EAAE,MAAM,EAAE,UAAU,EAAE,MAAM,GAAG,IAAI,CAsCtF"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"codegen.test.d.ts","sourceRoot":"","sources":["../../src/engine/codegen.test.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Format generated sources in place.
|
|
3
|
+
*
|
|
4
|
+
* Templates are `.ejs`, so neither Prettier nor ESLint can check them directly —
|
|
5
|
+
* EJS control tags and the regex splicing in `codegen.ts` both emit code whose
|
|
6
|
+
* shape depends on runtime data. Running Prettier over the *output* is the only
|
|
7
|
+
* point where the result can be normalised.
|
|
8
|
+
*
|
|
9
|
+
* Formatting is best-effort: a file Prettier cannot parse is left untouched
|
|
10
|
+
* rather than failing the scaffold.
|
|
11
|
+
*/
|
|
12
|
+
export declare function formatGenerated(targets: string[]): Promise<number>;
|
|
13
|
+
//# sourceMappingURL=format.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../../src/engine/format.ts"],"names":[],"mappings":"AAyBA;;;;;;;;;;GAUG;AACH,wBAAsB,eAAe,CAAC,OAAO,EAAE,MAAM,EAAE,GAAG,OAAO,CAAC,MAAM,CAAC,CA2BxE"}
|