@vc-shell/create-vc-app 2.0.0-alpha.9 → 2.0.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.
Files changed (47) hide show
  1. package/CHANGELOG.md +102 -245
  2. package/README.md +19 -18
  3. package/dist/commands/init.d.ts.map +1 -1
  4. package/dist/commands/init.test.d.ts +2 -0
  5. package/dist/commands/init.test.d.ts.map +1 -0
  6. package/dist/engine/codegen.d.ts.map +1 -1
  7. package/dist/engine/helpers.d.ts +1 -1
  8. package/dist/engine/helpers.d.ts.map +1 -1
  9. package/dist/engine/helpers.test.d.ts +2 -0
  10. package/dist/engine/helpers.test.d.ts.map +1 -0
  11. package/dist/engine/template.d.ts.map +1 -1
  12. package/dist/engine/template.test.d.ts +2 -0
  13. package/dist/engine/template.test.d.ts.map +1 -0
  14. package/dist/index.js +172 -170
  15. package/dist/output.d.ts.map +1 -1
  16. package/dist/templates/dynamic-module/_package.json.ejs +6 -6
  17. package/dist/templates/dynamic-module/src/modules/index.ts.ejs +8 -5
  18. package/dist/templates/dynamic-module/tsconfig.json +1 -1
  19. package/dist/templates/dynamic-module/vite.config.mts.ejs +1 -1
  20. package/dist/templates/host-app/_package.json.ejs +14 -16
  21. package/dist/templates/host-app/src/main.ts.ejs +17 -15
  22. package/dist/templates/host-app/src/router/routes.ts.ejs +0 -9
  23. package/dist/templates/host-app/tsconfig.json +1 -0
  24. package/dist/templates/host-app/vite.config.mts.ejs +3 -6
  25. package/dist/templates/module/composables/useDetails.ts.ejs +41 -38
  26. package/dist/templates/module/index.ts.ejs +11 -8
  27. package/dist/templates/module/locales/en.json.ejs +33 -22
  28. package/dist/templates/module/pages/details.vue.ejs +83 -111
  29. package/dist/templates/module/pages/list.vue.ejs +88 -117
  30. package/dist/templates/sample-module/index.ts +11 -8
  31. package/dist/templates/sample-module/pages/details.vue +20 -47
  32. package/dist/templates/sample-module/pages/list.vue +107 -154
  33. package/dist/templates/standalone/_package.json.ejs +18 -20
  34. package/dist/templates/standalone/eslint.config.mjs +31 -0
  35. package/dist/templates/standalone/src/bootstrap.ts.ejs +5 -5
  36. package/dist/templates/standalone/src/main.ts.ejs +29 -23
  37. package/dist/templates/standalone/src/router/routes.ts.ejs +0 -9
  38. package/dist/templates/standalone/tsconfig.json +1 -0
  39. package/dist/types.d.ts +2 -2
  40. package/dist/types.d.ts.map +1 -1
  41. package/package.json +4 -3
  42. package/dist/templates/host-app/src/shims-vue.d.ts +0 -27
  43. package/dist/templates/host-app/src/vue-i18n.d.ts +0 -10
  44. package/dist/templates/standalone/_eslintignore +0 -3
  45. package/dist/templates/standalone/_eslintrc.js +0 -41
  46. package/dist/templates/standalone/src/shims-vue.d.ts +0 -27
  47. package/dist/templates/standalone/src/vue-i18n.d.ts +0 -10
@@ -1,3 +0,0 @@
1
- node_modules
2
- dist
3
- api-client.ts
@@ -1,41 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- plugins: ["@typescript-eslint", "vue", "import"],
7
- extends: [
8
- "plugin:vue/vue3-recommended",
9
- "eslint:recommended",
10
- "plugin:import/recommended",
11
- "plugin:import/typescript",
12
- "@vue/typescript/recommended",
13
- "@vue/prettier",
14
- "@vue/eslint-config-typescript/recommended",
15
- ],
16
- parser: "vue-eslint-parser",
17
- parserOptions: {
18
- sourceType: "module",
19
- ecmaVersion: 2022,
20
- },
21
- settings: {
22
- "import/parsers": {
23
- "@typescript-eslint/parser": [".ts"],
24
- },
25
- "import/resolver": {
26
- typescript: {
27
- project: ["./tsconfig.json"],
28
- },
29
- },
30
- },
31
- rules: {
32
- "no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
33
- "no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
34
- "@typescript-eslint/ban-ts-comment": "warn",
35
- "@typescript-eslint/no-unused-vars": "warn",
36
- "vue/multi-word-component-names": "off",
37
- "vue/require-default-prop": "off",
38
- "vue/no-v-html": "off",
39
- "vue/no-template-shadow": "off",
40
- },
41
- };
@@ -1,27 +0,0 @@
1
- /* eslint-disable */
2
-
3
- import { CoreBladeAdditionalSettings } from "@vc-shell/framework";
4
- import type { Ref } from "vue";
5
- import type { Composer } from "vue-i18n";
6
-
7
- declare module "*.vue" {
8
- import type { DefineComponent } from "vue";
9
- const component: DefineComponent<{}, {}, any>;
10
- export default component;
11
- }
12
-
13
- declare module "@vue/runtime-core" {
14
- interface ComponentCustomProperties extends _ComponentCustomProperties {
15
- $mergeLocaleMessage: Composer<{}, {}, {}, string, never, string>["mergeLocaleMessage"];
16
- $hasAccess: (permissions: string | string[] | undefined) => boolean;
17
- $isPhone: Ref<boolean>;
18
- $isTablet: Ref<boolean>;
19
- $isMobile: Ref<boolean>;
20
- $isDesktop: Ref<boolean>;
21
- $isTouch: boolean;
22
- }
23
-
24
- interface ComponentOptionsBase extends CoreBladeAdditionalSettings {}
25
- }
26
-
27
- export {};
@@ -1,10 +0,0 @@
1
- import type { ComponentCustomProperties } from '@vue/runtime-core';
2
-
3
- declare module "@vue/runtime-core" {
4
- interface ComponentCustomProperties {
5
- $t: (key: string, ...args: any[]) => string;
6
- $d: (key: string, ...args: any[]) => string;
7
- $tm: (key: string, ...args: any[]) => string;
8
- $rt: (key: string, ...args: any[]) => string;
9
- }
10
- }