create-quasar 1.9.2 → 1.10.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 (163) hide show
  1. package/.eslintignore +1 -0
  2. package/index.js +1 -1
  3. package/package.json +1 -1
  4. package/templates/.eslintrc.cjs +17 -1
  5. package/templates/app/quasar-v2/index.js +2 -2
  6. package/templates/app/quasar-v2/js-vite-1/BASE/_package.json +1 -1
  7. package/templates/app/quasar-v2/js-vite-2/BASE/_jsconfig.json +1 -37
  8. package/templates/app/quasar-v2/js-vite-2/BASE/_package.json +4 -3
  9. package/templates/app/quasar-v2/js-vite-2/BASE/quasar.config.js +3 -6
  10. package/templates/app/quasar-v2/js-vite-2/BASE/src/App.vue +1 -3
  11. package/templates/app/quasar-v2/js-vite-2/BASE/src/components/EssentialLink.vue +0 -4
  12. package/templates/app/quasar-v2/js-vite-2/BASE/src/layouts/MainLayout.vue +0 -4
  13. package/templates/app/quasar-v2/js-vite-2/BASE/src/pages/ErrorNotFound.vue +1 -3
  14. package/templates/app/quasar-v2/js-vite-2/BASE/src/pages/IndexPage.vue +1 -3
  15. package/templates/app/quasar-v2/js-vite-2/BASE/src/router/index.js +2 -2
  16. package/templates/app/quasar-v2/js-vite-2/axios/src/boot/axios.js +2 -2
  17. package/templates/app/quasar-v2/js-vite-2/i18n/src/boot/i18n.js +2 -2
  18. package/templates/app/quasar-v2/js-vite-2/pinia/src/stores/index.js +2 -2
  19. package/templates/app/quasar-v2/js-webpack-4/BASE/_jsconfig.json +1 -37
  20. package/templates/app/quasar-v2/js-webpack-4/BASE/_package.json +3 -2
  21. package/templates/app/quasar-v2/js-webpack-4/BASE/quasar.config.js +2 -2
  22. package/templates/app/quasar-v2/js-webpack-4/BASE/src/App.vue +1 -3
  23. package/templates/app/quasar-v2/js-webpack-4/BASE/src/components/EssentialLink.vue +0 -4
  24. package/templates/app/quasar-v2/js-webpack-4/BASE/src/layouts/MainLayout.vue +0 -4
  25. package/templates/app/quasar-v2/js-webpack-4/BASE/src/pages/ErrorNotFound.vue +1 -3
  26. package/templates/app/quasar-v2/js-webpack-4/BASE/src/pages/IndexPage.vue +1 -3
  27. package/templates/app/quasar-v2/js-webpack-4/BASE/src/router/index.js +2 -2
  28. package/templates/app/quasar-v2/js-webpack-4/axios/src/boot/axios.js +2 -2
  29. package/templates/app/quasar-v2/js-webpack-4/i18n/src/boot/i18n.js +2 -2
  30. package/templates/app/quasar-v2/js-webpack-4/pinia/src/stores/index.js +2 -2
  31. package/templates/app/quasar-v2/ts-vite-1/BASE/_package.json +2 -2
  32. package/templates/app/quasar-v2/ts-vite-2/BASE/_package.json +5 -4
  33. package/templates/app/quasar-v2/ts-vite-2/BASE/_tsconfig.json +1 -12
  34. package/templates/app/quasar-v2/ts-vite-2/BASE/quasar.config.ts +10 -9
  35. package/templates/app/quasar-v2/ts-vite-2/BASE/src/App.vue +1 -3
  36. package/templates/app/quasar-v2/ts-vite-2/BASE/src/components/EssentialLink.vue +0 -4
  37. package/templates/app/quasar-v2/ts-vite-2/BASE/src/components/ExampleComponent.vue +6 -6
  38. package/templates/app/quasar-v2/ts-vite-2/BASE/src/layouts/MainLayout.vue +3 -7
  39. package/templates/app/quasar-v2/ts-vite-2/BASE/src/pages/ErrorNotFound.vue +1 -3
  40. package/templates/app/quasar-v2/ts-vite-2/BASE/src/pages/IndexPage.vue +3 -7
  41. package/templates/app/quasar-v2/ts-vite-2/BASE/src/router/index.ts +2 -2
  42. package/templates/app/quasar-v2/ts-vite-2/BASE/src/router/routes.ts +1 -1
  43. package/templates/app/quasar-v2/ts-vite-2/axios/src/boot/axios.ts +3 -3
  44. package/templates/app/quasar-v2/ts-vite-2/i18n/src/boot/i18n.ts +2 -2
  45. package/templates/app/quasar-v2/ts-vite-2/lint/_.eslintrc.cjs +1 -1
  46. package/templates/app/quasar-v2/ts-vite-2/pinia/src/stores/index.ts +3 -3
  47. package/templates/app/quasar-v2/ts-webpack-4/BASE/_package.json +3 -2
  48. package/templates/app/quasar-v2/ts-webpack-4/BASE/_tsconfig.json +1 -12
  49. package/templates/app/quasar-v2/ts-webpack-4/BASE/quasar.config.ts +8 -2
  50. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/App.vue +1 -3
  51. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/components/EssentialLink.vue +0 -4
  52. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/components/ExampleComponent.vue +6 -6
  53. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/layouts/MainLayout.vue +3 -7
  54. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/pages/ErrorNotFound.vue +1 -3
  55. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/pages/IndexPage.vue +3 -7
  56. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/router/index.ts +2 -2
  57. package/templates/app/quasar-v2/ts-webpack-4/BASE/src/router/routes.ts +1 -1
  58. package/templates/app/quasar-v2/ts-webpack-4/axios/src/boot/axios.ts +3 -3
  59. package/templates/app/quasar-v2/ts-webpack-4/i18n/src/boot/i18n.ts +2 -2
  60. package/templates/app/quasar-v2/ts-webpack-4/lint/_.eslintrc.cjs +1 -1
  61. package/templates/app/quasar-v2/ts-webpack-4/pinia/src/stores/index.ts +3 -3
  62. package/templates/app-extension/ae-ts/.eslintrc.cjs +21 -0
  63. package/templates/app-extension/ae-ts/BASE/README.md +35 -0
  64. package/templates/app-extension/ae-ts/BASE/_.gitignore +8 -0
  65. package/templates/app-extension/ae-ts/BASE/_.vscode/extensions.json +9 -0
  66. package/templates/app-extension/ae-ts/BASE/_.vscode/settings.json +12 -0
  67. package/templates/app-extension/ae-ts/BASE/_eslint.config.js +107 -0
  68. package/templates/app-extension/ae-ts/BASE/_package.json +39 -0
  69. package/templates/app-extension/ae-ts/BASE/_tsconfig.json +30 -0
  70. package/templates/app-extension/ae-ts/BASE/app-extension/README.md +52 -0
  71. package/templates/app-extension/ae-ts/BASE/app-extension/_.npmignore +5 -0
  72. package/templates/app-extension/ae-ts/BASE/app-extension/_package.json +57 -0
  73. package/templates/app-extension/ae-ts/BASE/app-extension/_tsconfig.json +10 -0
  74. package/templates/app-extension/ae-ts/BASE/app-extension/src/index.ts +36 -0
  75. package/templates/app-extension/ae-ts/BASE/app-extension/src/quasar.d.ts +24 -0
  76. package/templates/app-extension/ae-ts/BASE/app-extension/src/runtime/README.md +46 -0
  77. package/templates/app-extension/ae-ts/BASE/app-extension/src/runtime/boot/register.ts +6 -0
  78. package/templates/app-extension/ae-ts/BASE/app-extension/src/runtime/components/MyButton.vue +37 -0
  79. package/templates/app-extension/ae-ts/BASE/app-extension/src/runtime/components/types.ts +19 -0
  80. package/templates/app-extension/ae-ts/BASE/app-extension/src/runtime/index.ts +9 -0
  81. package/templates/{app/quasar-v2/ts-vite-2/BASE/src → app-extension/ae-ts/BASE/app-extension/src/runtime}/quasar.d.ts +0 -2
  82. package/templates/app-extension/ae-ts/BASE/eslint.d.ts +18 -0
  83. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/README.md +67 -0
  84. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/_.gitignore +37 -0
  85. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/_package.json +29 -0
  86. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/_tsconfig.json +9 -0
  87. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/index.html +44 -0
  88. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/postcss.config.cjs +27 -0
  89. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/public/favicon.ico +0 -0
  90. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/public/icons/favicon-128x128.png +0 -0
  91. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/public/icons/favicon-16x16.png +0 -0
  92. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/public/icons/favicon-32x32.png +0 -0
  93. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/public/icons/favicon-96x96.png +0 -0
  94. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/quasar.config.ts +196 -0
  95. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/quasar.extensions.json +3 -0
  96. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/App.vue +3 -0
  97. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/assets/quasar-logo-vertical.svg +15 -0
  98. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/boot/_.gitkeep +0 -0
  99. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/components/EssentialLink.vue +26 -0
  100. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/css/app.scss +1 -0
  101. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/css/quasar.variables.scss +25 -0
  102. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/env.d.ts +7 -0
  103. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/layouts/MainLayout.vue +94 -0
  104. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/pages/ErrorNotFound.vue +21 -0
  105. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/pages/IndexPage.vue +5 -0
  106. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/quasar.d.ts +10 -0
  107. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/router/index.ts +38 -0
  108. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/router/routes.ts +18 -0
  109. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-vite/src/shims-vue.d.ts +10 -0
  110. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/README.md +67 -0
  111. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/_.gitignore +32 -0
  112. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/_package.json +40 -0
  113. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/_tsconfig.json +9 -0
  114. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/babel.config.cjs +14 -0
  115. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/index.html +44 -0
  116. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/postcss.config.cjs +8 -0
  117. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/public/favicon.ico +0 -0
  118. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/public/icons/favicon-128x128.png +0 -0
  119. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/public/icons/favicon-16x16.png +0 -0
  120. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/public/icons/favicon-32x32.png +0 -0
  121. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/public/icons/favicon-96x96.png +0 -0
  122. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/quasar.config.ts +207 -0
  123. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/quasar.extensions.json +3 -0
  124. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/App.vue +3 -0
  125. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/assets/quasar-logo-vertical.svg +15 -0
  126. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/boot/_.gitkeep +0 -0
  127. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/components/EssentialLink.vue +26 -0
  128. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/css/app.scss +1 -0
  129. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/css/quasar.variables.scss +25 -0
  130. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/env.d.ts +7 -0
  131. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/layouts/MainLayout.vue +92 -0
  132. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/pages/ErrorNotFound.vue +21 -0
  133. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/pages/IndexPage.vue +5 -0
  134. package/templates/{app/quasar-v2/ts-webpack-4/BASE → app-extension/ae-ts/BASE/playground/quasar-cli-webpack}/src/quasar.d.ts +3 -2
  135. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/router/index.ts +37 -0
  136. package/templates/app-extension/ae-ts/BASE/playground/quasar-cli-webpack/src/router/routes.ts +18 -0
  137. package/templates/app-extension/ae-ts/index.js +98 -0
  138. package/templates/app-extension/ae-ts/install-script/app-extension/src/install.ts +25 -0
  139. package/templates/app-extension/ae-ts/install-script/app-extension/src/templates/README.md +27 -0
  140. package/templates/app-extension/ae-ts/install-script/app-extension/src/templates/_.gitkeep +0 -0
  141. package/templates/app-extension/ae-ts/install-script/app-extension/src/templates/base/_.gitkeep +0 -0
  142. package/templates/app-extension/ae-ts/pnpm/_pnpm-workspace.yaml +3 -0
  143. package/templates/app-extension/ae-ts/prompts-script/app-extension/src/prompts.ts +46 -0
  144. package/templates/app-extension/ae-ts/uninstall-script/app-extension/src/uninstall.ts +11 -0
  145. package/templates/app-extension/index.js +12 -1
  146. package/templates/ui-kit/quasar-v2/ae/app-extension/src/index.js +2 -2
  147. package/templates/ui-kit/quasar-v2/ae-install/app-extension/src/install.js +2 -2
  148. package/utils/index.js +14 -7
  149. package/templates/app/quasar-v2/ts-vite-2/lint/_tsconfig.vue-tsc.json +0 -6
  150. package/templates/app/quasar-v2/ts-vite-2/pinia/src/stores/store-flag.d.ts +0 -13
  151. package/templates/app/quasar-v2/ts-webpack-4/pinia/src/stores/store-flag.d.ts +0 -13
  152. /package/templates/app-extension/{ae-v1 → ae-js}/.eslintrc.cjs +0 -0
  153. /package/templates/app-extension/{ae-v1 → ae-js}/BASE/README.md +0 -0
  154. /package/templates/app-extension/{ae-v1 → ae-js}/BASE/_.gitignore +0 -0
  155. /package/templates/app-extension/{ae-v1 → ae-js}/BASE/_package.json +0 -0
  156. /package/templates/app-extension/{ae-v1 → ae-js}/BASE/src/index.js +0 -0
  157. /package/templates/app-extension/{ae-v1 → ae-js}/BASE/src/templates/_.gitkeep +0 -0
  158. /package/templates/app-extension/{ae-v1 → ae-js}/index.js +0 -0
  159. /package/templates/app-extension/{ae-v1 → ae-js}/install-script/src/install.js +0 -0
  160. /package/templates/app-extension/{ae-v1 → ae-js}/prompts-script/src/prompts.js +0 -0
  161. /package/templates/app-extension/{ae-v1 → ae-js}/uninstall-script/src/uninstall.js +0 -0
  162. /package/templates/{app/quasar-v2/ts-vite-2/BASE/src → app-extension/ae-ts/BASE/app-extension/src/runtime}/shims-vue.d.ts +0 -0
  163. /package/templates/{app/quasar-v2/ts-webpack-4/BASE → app-extension/ae-ts/BASE/playground/quasar-cli-webpack}/src/shims-vue.d.ts +0 -0
package/.eslintignore ADDED
@@ -0,0 +1 @@
1
+ test-project/
package/index.js CHANGED
@@ -107,7 +107,7 @@ if (scope.skipDepsInstall !== true) {
107
107
  choices: () => (
108
108
  utils.runningPackageManager
109
109
  ? [
110
- { title: `Yes, use ${ utils.runningPackageManager }`, value: utils.runningPackageManager },
110
+ { title: `Yes, use ${ utils.runningPackageManager.name }`, value: utils.runningPackageManager.name },
111
111
  { title: 'No, I will handle that myself', value: false }
112
112
  ]
113
113
  : [
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-quasar",
3
- "version": "1.9.2",
3
+ "version": "1.10.0",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "type": "module",
6
6
  "author": {
@@ -61,7 +61,7 @@ module.exports = {
61
61
  {
62
62
  files: [
63
63
  './*/*/*/**/_*.js',
64
- './*/*/*/**/*.{conf,config}.js'
64
+ './*/*/*/**/*.{conf,config}.js',
65
65
  ],
66
66
 
67
67
  parserOptions: {
@@ -74,6 +74,22 @@ module.exports = {
74
74
  },
75
75
  },
76
76
 
77
+ {
78
+ files: [
79
+ './*/*/*/**/_eslint.config.js',
80
+ './*/*/*/**/postcss.config.js'
81
+ ],
82
+
83
+ parserOptions: {
84
+ sourceType: 'module'
85
+ },
86
+
87
+ env: {
88
+ browser: false,
89
+ node: true,
90
+ },
91
+ },
92
+
77
93
  {
78
94
  // Template-specific manager/helper scripts (e.g. ./app/quasar-v2/index.js)
79
95
  files: './*/*/*/*.js',
@@ -7,9 +7,9 @@ export async function script ({ scope, utils }) {
7
7
  initial: 0,
8
8
  choices: [
9
9
  { title: 'Quasar App CLI with Vite 2 (stable | v1)', value: 'vite-1', description: 'recommended' },
10
- { title: 'Quasar App CLI with Vite 5 (BETA | next major version - v2)', value: 'vite-2' },
10
+ { title: 'Quasar App CLI with Vite 6 (Release Candidate | next major version - v2)', value: 'vite-2' },
11
11
  { title: 'Quasar App CLI with Webpack (stable | v3)', value: 'webpack-3' },
12
- { title: 'Quasar App CLI with Webpack (BETA | next major version - v4)', value: 'webpack-4' }
12
+ { title: 'Quasar App CLI with Webpack (Release Candidate | next major version - v4)', value: 'webpack-4' }
13
13
  ]
14
14
  },
15
15
  {
@@ -27,7 +27,7 @@
27
27
  <% if (preset.lint) { %>
28
28
  "eslint": "^8.57.0",
29
29
  "eslint-plugin-vue": "^9.0.0",
30
- "vite-plugin-checker": "^0.7.1",
30
+ "vite-plugin-checker": "^0.8.0",
31
31
  <% if (lintConfig === 'standard') { %>
32
32
  "eslint-config-standard": "^17.0.0",
33
33
  "eslint-plugin-import": "^2.19.1",
@@ -1,39 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "src/*": [
6
- "src/*"
7
- ],
8
- "app/*": [
9
- "*"
10
- ],
11
- "components/*": [
12
- "src/components/*"
13
- ],
14
- "layouts/*": [
15
- "src/layouts/*"
16
- ],
17
- "pages/*": [
18
- "src/pages/*"
19
- ],
20
- "assets/*": [
21
- "src/assets/*"
22
- ],
23
- "boot/*": [
24
- "src/boot/*"
25
- ],
26
- "stores/*": [
27
- "src/stores/*"
28
- ],
29
- "vue$": [
30
- "node_modules/vue/dist/vue.runtime.esm-bundler.js"
31
- ]
32
- }
33
- },
34
- "exclude": [
35
- "dist",
36
- ".quasar",
37
- "node_modules"
38
- ]
2
+ "extends": "./.quasar/tsconfig.json"
39
3
  }
@@ -12,7 +12,8 @@
12
12
  <% } %>
13
13
  "test": "echo \"No test specified\" && exit 0",
14
14
  "dev": "quasar dev",
15
- "build": "quasar build"
15
+ "build": "quasar build",
16
+ "postinstall": "quasar prepare"
16
17
  },
17
18
  "dependencies": {
18
19
  <% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
@@ -25,7 +26,7 @@
25
26
  },
26
27
  "devDependencies": {
27
28
  <% if (preset.lint) { %>
28
- "vite-plugin-checker": "^0.7.1",
29
+ "vite-plugin-checker": "^0.8.0",
29
30
  "eslint": "^8.57.0",
30
31
  "eslint-plugin-vue": "^9.0.0",
31
32
  <% if (lintConfig === 'standard') { %>
@@ -41,7 +42,7 @@
41
42
  "prettier": "^3.0.3",
42
43
  <% } } %>
43
44
  <% if (preset.i18n) { %>"@intlify/unplugin-vue-i18n": "^2.0.0",<% } %>
44
- "@quasar/app-vite": "^2.0.0-beta.12",
45
+ "@quasar/app-vite": "^2.0.0-rc.1",
45
46
  "autoprefixer": "^10.4.2",
46
47
  "postcss": "^8.4.14"
47
48
  },
@@ -5,10 +5,10 @@
5
5
 
6
6
  <% if (preset.lint && lintConfig === 'airbnb') { %>/* eslint func-names: 0 */
7
7
  /* eslint global-require: 0 */<% } %>
8
- import { configure } from 'quasar/wrappers'
8
+ import { defineConfig } from '#q-app/wrappers'
9
9
  <% if (preset.i18n) { %>import { fileURLToPath } from 'node:url';<% } %>
10
10
 
11
- export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
11
+ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
12
12
  return {
13
13
  // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
14
14
  // preFetch: true,
@@ -152,7 +152,6 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
152
152
  pwa: false
153
153
 
154
154
  // pwaOfflineHtmlFilename: 'offline.html', // do NOT use index.html as name!
155
- // will mess up SSR
156
155
 
157
156
  // pwaExtendGenerateSWOptions (cfg) {},
158
157
  // pwaExtendInjectManifestOptions (cfg) {}
@@ -221,9 +220,7 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
221
220
  // extendBexScriptsConf (esbuildConf) {},
222
221
  // extendBexManifestJson (json) {},
223
222
 
224
- contentScripts: [
225
- 'my-content-script'
226
- ]
223
+ extraScripts: []
227
224
  }
228
225
  }
229
226
  });
@@ -3,9 +3,7 @@
3
3
  </template>
4
4
  <% if (sfcStyle === 'composition-setup') { %>
5
5
  <script setup>
6
- defineOptions({
7
- name: 'App'
8
- });
6
+ //
9
7
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
10
8
  <script>
11
9
  import { defineComponent } from 'vue';
@@ -20,10 +20,6 @@
20
20
  </template>
21
21
  <% if (sfcStyle === 'composition-setup') { %>
22
22
  <script setup>
23
- defineOptions({
24
- name: 'EssentialLink'
25
- })
26
-
27
23
  const props = defineProps({
28
24
  title: {
29
25
  type: String,
@@ -49,10 +49,6 @@
49
49
  import { ref } from 'vue'
50
50
  import EssentialLink from 'components/EssentialLink.vue'
51
51
 
52
- defineOptions({
53
- name: 'MainLayout'
54
- })
55
-
56
52
  const linksList = [
57
53
  {
58
54
  title: 'Docs',
@@ -23,9 +23,7 @@
23
23
  </template>
24
24
  <% if (sfcStyle === 'composition-setup') { %>
25
25
  <script setup>
26
- defineOptions({
27
- name: 'ErrorNotFound'
28
- });
26
+ //
29
27
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
30
28
  <script>
31
29
  import { defineComponent } from 'vue';
@@ -9,9 +9,7 @@
9
9
  </template>
10
10
  <% if (sfcStyle === 'composition-setup') { %>
11
11
  <script setup>
12
- defineOptions({
13
- name: 'IndexPage'
14
- });
12
+ //
15
13
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
16
14
  <script>
17
15
  import { defineComponent } from 'vue';
@@ -1,4 +1,4 @@
1
- import { route } from 'quasar/wrappers'
1
+ import { defineRouter } from '#q-app/wrappers'
2
2
  import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router'
3
3
  import routes from './routes'
4
4
 
@@ -11,7 +11,7 @@ import routes from './routes'
11
11
  * with the Router instance.
12
12
  */
13
13
 
14
- export default route(function (/* { store, ssrContext } */) {
14
+ export default defineRouter(function (/* { store, ssrContext } */) {
15
15
  const createHistory = process.env.SERVER
16
16
  ? createMemoryHistory
17
17
  : (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory)
@@ -1,4 +1,4 @@
1
- import { boot } from 'quasar/wrappers'
1
+ import { defineBoot } from '#q-app/wrappers'
2
2
  import axios from 'axios'
3
3
 
4
4
  // Be careful when using SSR for cross-request state pollution
@@ -9,7 +9,7 @@ import axios from 'axios'
9
9
  // for each client)
10
10
  const api = axios.create({ baseURL: 'https://api.example.com' })
11
11
 
12
- export default boot(({ app }) => {
12
+ export default defineBoot(({ app }) => {
13
13
  // for use inside Vue files (Options API) through this.$axios and this.$api
14
14
 
15
15
  app.config.globalProperties.$axios = axios
@@ -1,8 +1,8 @@
1
- import { boot } from 'quasar/wrappers'
1
+ import { defineBoot } from '#q-app/wrappers'
2
2
  import { createI18n } from 'vue-i18n'
3
3
  import messages from 'src/i18n'
4
4
 
5
- export default boot(({ app }) => {
5
+ export default defineBoot(({ app }) => {
6
6
  const i18n = createI18n({
7
7
  locale: 'en-US',
8
8
  globalInjection: true,
@@ -1,4 +1,4 @@
1
- import { store } from 'quasar/wrappers'
1
+ import { defineStore } from '#q-app/wrappers'
2
2
  import { createPinia } from 'pinia'
3
3
 
4
4
  /*
@@ -10,7 +10,7 @@ import { createPinia } from 'pinia'
10
10
  * with the Store instance.
11
11
  */
12
12
 
13
- export default store((/* { ssrContext } */) => {
13
+ export default defineStore((/* { ssrContext } */) => {
14
14
  const pinia = createPinia()
15
15
 
16
16
  // You can add Pinia plugins here
@@ -1,39 +1,3 @@
1
1
  {
2
- "compilerOptions": {
3
- "baseUrl": ".",
4
- "paths": {
5
- "src/*": [
6
- "src/*"
7
- ],
8
- "app/*": [
9
- "*"
10
- ],
11
- "components/*": [
12
- "src/components/*"
13
- ],
14
- "layouts/*": [
15
- "src/layouts/*"
16
- ],
17
- "pages/*": [
18
- "src/pages/*"
19
- ],
20
- "assets/*": [
21
- "src/assets/*"
22
- ],
23
- "boot/*": [
24
- "src/boot/*"
25
- ],
26
- "stores/*": [
27
- "src/stores/*"
28
- ],
29
- "vue$": [
30
- "node_modules/vue/dist/vue.runtime.esm-bundler.js"
31
- ]
32
- }
33
- },
34
- "exclude": [
35
- "dist",
36
- ".quasar",
37
- "node_modules"
38
- ]
2
+ "extends": "./.quasar/tsconfig.json"
39
3
  }
@@ -11,7 +11,8 @@
11
11
  <% } %>
12
12
  "test": "echo \"No test specified\" && exit 0",
13
13
  "dev": "quasar dev",
14
- "build": "quasar build"
14
+ "build": "quasar build",
15
+ "postinstall": "quasar prepare"
15
16
  },
16
17
  "dependencies": {
17
18
  <% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
@@ -41,7 +42,7 @@
41
42
  "eslint-config-prettier": "^9.0.0",
42
43
  "prettier": "^3.0.3",
43
44
  <% } } %>
44
- "@quasar/app-webpack": "^4.0.0-beta.13"
45
+ "@quasar/app-webpack": "^4.0.0-rc.1"
45
46
  },
46
47
  "browserslist": [
47
48
  "last 10 Chrome versions",
@@ -7,9 +7,9 @@
7
7
  /* eslint func-names: 0 */
8
8
  /* eslint global-require: 0 */
9
9
  <% } %>
10
- import { configure } from 'quasar/wrappers';
10
+ import { defineConfig } from '#q-app/wrappers';
11
11
 
12
- export default configure((ctx) => {
12
+ export default defineConfig((ctx) => {
13
13
  return {
14
14
  <% if (preset.lint) { %>eslint: {
15
15
  // fix: true,
@@ -3,9 +3,7 @@
3
3
  </template>
4
4
  <% if (sfcStyle === 'composition-setup') { %>
5
5
  <script setup>
6
- defineOptions({
7
- name: 'App'
8
- });
6
+ //
9
7
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
10
8
  <script>
11
9
  import { defineComponent } from 'vue';
@@ -20,10 +20,6 @@
20
20
  </template>
21
21
  <% if (sfcStyle === 'composition-setup') { %>
22
22
  <script setup>
23
- defineOptions({
24
- name: 'EssentialLink'
25
- })
26
-
27
23
  const props = defineProps({
28
24
  title: {
29
25
  type: String,
@@ -49,10 +49,6 @@
49
49
  import { ref } from 'vue'
50
50
  import EssentialLink from 'components/EssentialLink.vue'
51
51
 
52
- defineOptions({
53
- name: 'MainLayout'
54
- })
55
-
56
52
  const linksList = [
57
53
  {
58
54
  title: 'Docs',
@@ -23,9 +23,7 @@
23
23
  </template>
24
24
  <% if (sfcStyle === 'composition-setup') { %>
25
25
  <script setup>
26
- defineOptions({
27
- name: 'ErrorNotFound'
28
- });
26
+ //
29
27
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
30
28
  <script>
31
29
  import { defineComponent } from 'vue';
@@ -9,9 +9,7 @@
9
9
  </template>
10
10
  <% if (sfcStyle === 'composition-setup') { %>
11
11
  <script setup>
12
- defineOptions({
13
- name: 'IndexPage'
14
- });
12
+ //
15
13
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
16
14
  <script>
17
15
  import { defineComponent } from 'vue';
@@ -1,4 +1,4 @@
1
- import { route } from 'quasar/wrappers'
1
+ import { defineRouter } from '#q-app/wrappers'
2
2
  import { createRouter, createMemoryHistory, createWebHistory, createWebHashHistory } from 'vue-router'
3
3
  import routes from './routes'
4
4
 
@@ -11,7 +11,7 @@ import routes from './routes'
11
11
  * with the Router instance.
12
12
  */
13
13
 
14
- export default route(function (/* { store, ssrContext } */) {
14
+ export default defineRouter(function (/* { store, ssrContext } */) {
15
15
  const createHistory = process.env.SERVER
16
16
  ? createMemoryHistory
17
17
  : (process.env.VUE_ROUTER_MODE === 'history' ? createWebHistory : createWebHashHistory)
@@ -1,4 +1,4 @@
1
- import { boot } from 'quasar/wrappers'
1
+ import { defineBoot } from '#q-app/wrappers'
2
2
  import axios from 'axios'
3
3
 
4
4
  // Be careful when using SSR for cross-request state pollution
@@ -9,7 +9,7 @@ import axios from 'axios'
9
9
  // for each client)
10
10
  const api = axios.create({ baseURL: 'https://api.example.com' })
11
11
 
12
- export default boot(({ app }) => {
12
+ export default defineBoot(({ app }) => {
13
13
  // for use inside Vue files (Options API) through this.$axios and this.$api
14
14
 
15
15
  app.config.globalProperties.$axios = axios
@@ -1,8 +1,8 @@
1
- import { boot } from 'quasar/wrappers'
1
+ import { defineBoot } from '#q-app/wrappers'
2
2
  import { createI18n } from 'vue-i18n'
3
3
  import messages from 'src/i18n'
4
4
 
5
- export default boot(({ app }) => {
5
+ export default defineBoot(({ app }) => {
6
6
  const i18n = createI18n({
7
7
  locale: 'en-US',
8
8
  globalInjection: true,
@@ -1,4 +1,4 @@
1
- import { store } from 'quasar/wrappers'
1
+ import { defineStore } from '#q-app/wrappers'
2
2
  import { createPinia } from 'pinia'
3
3
 
4
4
  /*
@@ -10,7 +10,7 @@ import { createPinia } from 'pinia'
10
10
  * with the Store instance.
11
11
  */
12
12
 
13
- export default store((/* { ssrContext } */) => {
13
+ export default defineStore((/* { ssrContext } */) => {
14
14
  const pinia = createPinia()
15
15
 
16
16
  // You can add Pinia plugins here
@@ -27,8 +27,8 @@
27
27
  <% if (preset.lint) { %>
28
28
  "@typescript-eslint/eslint-plugin": "^7.16.0",
29
29
  "@typescript-eslint/parser": "^7.16.0",
30
- "vite-plugin-checker": "^0.7.2",
31
- "vue-tsc": "2.0.29",
30
+ "vite-plugin-checker": "^0.8.0",
31
+ "vue-tsc": "^2.0.29",
32
32
  "eslint": "^8.57.0",
33
33
  "eslint-plugin-vue": "^9.0.0",
34
34
  <% if (lintConfig === 'standard') { %>
@@ -12,7 +12,8 @@
12
12
  <% } %>
13
13
  "test": "echo \"No test specified\" && exit 0",
14
14
  "dev": "quasar dev",
15
- "build": "quasar build"
15
+ "build": "quasar build",
16
+ "postinstall": "quasar prepare"
16
17
  },
17
18
  "dependencies": {
18
19
  <% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
@@ -27,8 +28,8 @@
27
28
  <% if (preset.lint) { %>
28
29
  "@typescript-eslint/eslint-plugin": "^7.16.0",
29
30
  "@typescript-eslint/parser": "^7.16.0",
30
- "vite-plugin-checker": "^0.7.2",
31
- "vue-tsc": "2.0.29",
31
+ "vite-plugin-checker": "^0.8.0",
32
+ "vue-tsc": "^2.0.29",
32
33
  "eslint": "^8.57.0",
33
34
  "eslint-plugin-vue": "^9.0.0",
34
35
  <% if (lintConfig === 'standard') { %>
@@ -45,7 +46,7 @@
45
46
  <% } } %>
46
47
  "@types/node": "^20.5.9",
47
48
  <% if (preset.i18n) { %>"@intlify/unplugin-vue-i18n": "^2.0.0",<% } %>
48
- "@quasar/app-vite": "^2.0.0-beta.12",
49
+ "@quasar/app-vite": "^2.0.0-rc.1",
49
50
  "autoprefixer": "^10.4.2",
50
51
  "typescript": "~5.5.3"
51
52
  },
@@ -1,14 +1,3 @@
1
1
  {
2
- "extends": "@quasar/app-vite/tsconfig-preset",
3
- "compilerOptions": {
4
- "baseUrl": "."
5
- },
6
- "exclude": [
7
- "./dist",
8
- "./.quasar",
9
- "./node_modules",
10
- "./src-capacitor",
11
- "./src-cordova",
12
- "./quasar.config.*.temporary.compiled*"
13
- ]
2
+ "extends": "./.quasar/tsconfig.json"
14
3
  }
@@ -6,10 +6,10 @@
6
6
  <% if (preset.lint && lintConfig === 'airbnb') { %>/* eslint func-names: 0 */
7
7
  /* eslint global-require: 0 */
8
8
  <% } %>
9
- import { configure } from 'quasar/wrappers';
9
+ import { defineConfig } from '#q-app/wrappers';
10
10
  <% if (preset.i18n) { %>import { fileURLToPath } from 'node:url';<% } %>
11
11
 
12
- export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
12
+ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
13
13
  return {
14
14
  // https://v2.quasar.dev/quasar-cli-vite/prefetch-feature
15
15
  // preFetch: true,
@@ -48,6 +48,12 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
48
48
  node: 'node20'
49
49
  },
50
50
 
51
+ typescript: {
52
+ strict: true,
53
+ vueShim: true
54
+ // extendTsConfig (tsConfig) {}
55
+ },
56
+
51
57
  vueRouterMode: 'hash', // available values: 'hash', 'history'
52
58
  // vueRouterBase,
53
59
  // vueDevtools,
@@ -82,9 +88,7 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
82
88
  include: [ fileURLToPath(new URL('./src/i18n', import.meta.url)) ],
83
89
  }]<% } %><% if (preset.lint) { %><% if (preset.i18n) { %>,<% } %>
84
90
  ['vite-plugin-checker', {
85
- vueTsc: {
86
- tsconfigPath: 'tsconfig.vue-tsc.json'
87
- },
91
+ vueTsc: true,
88
92
  eslint: {
89
93
  lintCommand: 'eslint "./**/*.{js,ts,mjs,cjs,vue}"'
90
94
  }
@@ -156,7 +160,6 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
156
160
  pwa: false
157
161
 
158
162
  // pwaOfflineHtmlFilename: 'offline.html', // do NOT use index.html as name!
159
- // will mess up SSR
160
163
 
161
164
  // pwaExtendGenerateSWOptions (cfg) {},
162
165
  // pwaExtendInjectManifestOptions (cfg) {}
@@ -225,9 +228,7 @@ export default configure((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<% }
225
228
  // extendBexScriptsConf (esbuildConf) {},
226
229
  // extendBexManifestJson (json) {},
227
230
 
228
- contentScripts: [
229
- 'my-content-script'
230
- ]
231
+ extraScripts: []
231
232
  }
232
233
  }
233
234
  });
@@ -3,9 +3,7 @@
3
3
  </template>
4
4
  <% if (sfcStyle === 'composition-setup') { %>
5
5
  <script setup lang="ts">
6
- defineOptions({
7
- name: 'App'
8
- });
6
+ //
9
7
  </script><% } else if (sfcStyle === 'composition' || sfcStyle === 'options') { %>
10
8
  <script lang="ts">
11
9
  import { defineComponent } from 'vue';
@@ -20,10 +20,6 @@
20
20
  </template>
21
21
  <% if (sfcStyle === 'composition-setup') { %>
22
22
  <script setup lang="ts">
23
- defineOptions({
24
- name: 'EssentialLink'
25
- });
26
-
27
23
  export interface EssentialLinkProps {
28
24
  title: string;
29
25
  caption?: string;