create-quasar 1.11.4 → 1.11.6
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/package.json +1 -1
- package/templates/app/quasar-v1/index.js +3 -2
- package/templates/app/quasar-v2/index.js +4 -1
- package/templates/app/quasar-v2/js-vite-1/BASE/quasar.config.js +14 -14
- package/templates/app/quasar-v2/js-vite-2/BASE/quasar.config.js +6 -6
- package/templates/app/quasar-v2/js-vite-2/eslint/_eslint.config.js +1 -1
- package/templates/app/quasar-v2/js-webpack-3/BASE/quasar.config.js +14 -14
- package/templates/app/quasar-v2/js-webpack-4/BASE/quasar.config.js +6 -6
- package/templates/app/quasar-v2/js-webpack-4/eslint/_eslint.config.js +1 -1
- package/templates/app/quasar-v2/ts-vite-1/BASE/quasar.config.js +14 -14
- package/templates/app/quasar-v2/ts-vite-2/BASE/quasar.config.ts +6 -6
- package/templates/app/quasar-v2/ts-vite-2/eslint/_eslint.config.js +1 -1
- package/templates/app/quasar-v2/ts-webpack-3/BASE/quasar.config.js +14 -14
- package/templates/app/quasar-v2/ts-webpack-4/BASE/quasar.config.ts +6 -6
- package/templates/app/quasar-v2/ts-webpack-4/eslint/_eslint.config.js +1 -1
- package/templates/app-extension/ae-js/.eslintrc.cjs +0 -4
- package/templates/app-extension/ae-js/BASE/_package.json +0 -6
- package/templates/app-extension/ae-js/index.js +6 -23
- package/templates/app-extension/ae-ts/.eslintrc.cjs +0 -4
- package/templates/app-extension/ae-ts/BASE/app-extension/_package.json +0 -6
- package/templates/app-extension/ae-ts/index.js +5 -22
- package/templates/ui-kit/.eslintrc.cjs +1 -6
- package/templates/ui-kit/index.js +6 -19
- package/templates/ui-kit/quasar-v1/BASE/ui/_package.json +0 -6
- package/templates/ui-kit/quasar-v1/ae/app-extension/_package.json +0 -6
- package/templates/ui-kit/quasar-v2/BASE/ui/_package.json +0 -6
- package/templates/ui-kit/quasar-v2/ae/app-extension/_package.json +1 -7
- package/templates/ui-kit/quasar-v2/ae/app-extension/src/index.js +1 -1
- package/templates/ui-kit/quasar-v2/ae-install/app-extension/src/install.js +1 -1
- package/templates/ui-kit/quasar-v2/ae-prompts/app-extension/src/prompts.js +1 -1
- package/templates/ui-kit/quasar-v2/ae-uninstall/app-extension/src/uninstall.js +1 -1
- package/utils/index.js +18 -29
package/package.json
CHANGED
|
@@ -9,10 +9,11 @@ export async function script ({ scope, utils }) {
|
|
|
9
9
|
utils.isValidPackageName(val) || 'Invalid package.json name'
|
|
10
10
|
},
|
|
11
11
|
utils.commonPrompts.productName,
|
|
12
|
-
utils.commonPrompts.description
|
|
13
|
-
utils.commonPrompts.author
|
|
12
|
+
utils.commonPrompts.description
|
|
14
13
|
])
|
|
15
14
|
|
|
15
|
+
await utils.injectAuthor(scope)
|
|
16
|
+
|
|
16
17
|
const { script } = await import(`./${ scope.scriptType }/index.js`)
|
|
17
18
|
await script({ scope, utils })
|
|
18
19
|
}
|
|
@@ -23,8 +23,11 @@ export async function script ({ scope, utils }) {
|
|
|
23
23
|
|
|
24
24
|
utils.commonPrompts.productName,
|
|
25
25
|
utils.commonPrompts.description,
|
|
26
|
-
|
|
26
|
+
])
|
|
27
|
+
|
|
28
|
+
await utils.injectAuthor(scope)
|
|
27
29
|
|
|
30
|
+
await utils.prompts(scope, [
|
|
28
31
|
{
|
|
29
32
|
type: 'select',
|
|
30
33
|
name: 'sfcStyle',
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Configuration for your app
|
|
9
|
-
// https://
|
|
9
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file
|
|
10
10
|
|
|
11
11
|
<% if (preset.lint && lintConfig === 'airbnb') { %>/* eslint func-names: 0 */
|
|
12
12
|
/* eslint global-require: 0 */<% } %>
|
|
@@ -15,18 +15,18 @@ const { configure } = require('quasar/wrappers');
|
|
|
15
15
|
|
|
16
16
|
module.exports = configure(function (/* ctx */) {
|
|
17
17
|
return {
|
|
18
|
-
// https://
|
|
18
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/prefetch-feature
|
|
19
19
|
// preFetch: true,
|
|
20
20
|
|
|
21
21
|
// app boot file (/src/boot)
|
|
22
22
|
// --> boot files are part of "main.js"
|
|
23
|
-
// https://
|
|
23
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/boot-files
|
|
24
24
|
boot: [
|
|
25
25
|
<% if (preset.i18n) { %>'i18n',<% } %>
|
|
26
26
|
<% if (preset.axios) { %>'axios',<% } %>
|
|
27
27
|
],
|
|
28
28
|
|
|
29
|
-
// https://
|
|
29
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#css
|
|
30
30
|
css: [
|
|
31
31
|
'app.<%= css %>'
|
|
32
32
|
],
|
|
@@ -45,7 +45,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
45
45
|
'material-icons', // optional, you are not bound to it
|
|
46
46
|
],
|
|
47
47
|
|
|
48
|
-
// Full list of options: https://
|
|
48
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#build
|
|
49
49
|
build: {
|
|
50
50
|
target: {
|
|
51
51
|
browser: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
|
|
@@ -94,13 +94,13 @@ module.exports = configure(function (/* ctx */) {
|
|
|
94
94
|
// ]<% } %>
|
|
95
95
|
},
|
|
96
96
|
|
|
97
|
-
// Full list of options: https://
|
|
97
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#devserver
|
|
98
98
|
devServer: {
|
|
99
99
|
// https: true
|
|
100
100
|
open: true // opens browser window automatically
|
|
101
101
|
},
|
|
102
102
|
|
|
103
|
-
// https://
|
|
103
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#framework
|
|
104
104
|
framework: {
|
|
105
105
|
config: {},
|
|
106
106
|
|
|
@@ -122,7 +122,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
122
122
|
// https://v2.quasar.dev/options/animations
|
|
123
123
|
animations: [],
|
|
124
124
|
|
|
125
|
-
// https://
|
|
125
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#sourcefiles
|
|
126
126
|
// sourceFiles: {
|
|
127
127
|
// rootComponent: 'src/App.vue',
|
|
128
128
|
// router: 'src/router/index',
|
|
@@ -134,7 +134,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
134
134
|
// electronPreload: 'src-electron/electron-preload'
|
|
135
135
|
// },
|
|
136
136
|
|
|
137
|
-
// https://
|
|
137
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-ssr/configuring-ssr
|
|
138
138
|
ssr: {
|
|
139
139
|
// ssrPwaHtmlFilename: 'offline.html', // do NOT use index.html as name!
|
|
140
140
|
|
|
@@ -154,7 +154,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
154
154
|
]
|
|
155
155
|
},
|
|
156
156
|
|
|
157
|
-
// https://
|
|
157
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-pwa/configuring-pwa
|
|
158
158
|
pwa: {
|
|
159
159
|
workboxMode: 'generateSW', // or 'injectManifest'
|
|
160
160
|
injectPwaMetaTags: true,
|
|
@@ -168,17 +168,17 @@ module.exports = configure(function (/* ctx */) {
|
|
|
168
168
|
// extendPWACustomSWConf (esbuildConf) {}
|
|
169
169
|
},
|
|
170
170
|
|
|
171
|
-
// Full list of options: https://
|
|
171
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-cordova-apps/configuring-cordova
|
|
172
172
|
cordova: {
|
|
173
173
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
174
174
|
},
|
|
175
175
|
|
|
176
|
-
// Full list of options: https://
|
|
176
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-capacitor-apps/configuring-capacitor
|
|
177
177
|
capacitor: {
|
|
178
178
|
hideSplashscreen: true
|
|
179
179
|
},
|
|
180
180
|
|
|
181
|
-
// Full list of options: https://
|
|
181
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-electron-apps/configuring-electron
|
|
182
182
|
electron: {
|
|
183
183
|
// extendElectronMainConf (esbuildConf)
|
|
184
184
|
// extendElectronPreloadConf (esbuildConf)
|
|
@@ -208,7 +208,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
208
208
|
}
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
// Full list of options: https://
|
|
211
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-browser-extensions/configuring-bex
|
|
212
212
|
bex: {
|
|
213
213
|
contentScripts: [
|
|
214
214
|
'my-content-script'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Configuration for your app
|
|
2
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
2
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
|
|
3
3
|
|
|
4
4
|
import { defineConfig } from '#q-app/wrappers'<% if (preset.i18n) { %>
|
|
5
5
|
import { fileURLToPath } from 'node:url'<% } %>
|
|
@@ -17,7 +17,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
17
17
|
'axios'<% } %>
|
|
18
18
|
],
|
|
19
19
|
|
|
20
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
20
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
|
|
21
21
|
css: [
|
|
22
22
|
'app.<%= css %>'
|
|
23
23
|
],
|
|
@@ -36,7 +36,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
36
36
|
'material-icons', // optional, you are not bound to it
|
|
37
37
|
],
|
|
38
38
|
|
|
39
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
39
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#build
|
|
40
40
|
build: {
|
|
41
41
|
target: {
|
|
42
42
|
browser: [ 'es2022', 'firefox115', 'chrome115', 'safari14' ],
|
|
@@ -89,13 +89,13 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
89
89
|
// ]<% } %>
|
|
90
90
|
},
|
|
91
91
|
|
|
92
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
92
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#devserver
|
|
93
93
|
devServer: {
|
|
94
94
|
// https: true,
|
|
95
95
|
open: true // opens browser window automatically
|
|
96
96
|
},
|
|
97
97
|
|
|
98
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
98
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#framework
|
|
99
99
|
framework: {
|
|
100
100
|
config: {},
|
|
101
101
|
|
|
@@ -117,7 +117,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
117
117
|
// https://v2.quasar.dev/options/animations
|
|
118
118
|
animations: [],
|
|
119
119
|
|
|
120
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
120
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#sourcefiles
|
|
121
121
|
// sourceFiles: {
|
|
122
122
|
// rootComponent: 'src/App.vue',
|
|
123
123
|
// router: 'src/router/index',
|
|
@@ -8,7 +8,7 @@ export default [
|
|
|
8
8
|
{
|
|
9
9
|
/**
|
|
10
10
|
* Ignore the following files.
|
|
11
|
-
* Please note that pluginQuasar.configs.recommended already ignores
|
|
11
|
+
* Please note that pluginQuasar.configs.recommended() already ignores
|
|
12
12
|
* the "node_modules" folder for you (and all other Quasar project
|
|
13
13
|
* relevant folders and files).
|
|
14
14
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Configuration for your app
|
|
9
|
-
// https://
|
|
9
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file
|
|
10
10
|
|
|
11
11
|
<% if (preset.lint) { %>
|
|
12
12
|
const ESLintPlugin = require('eslint-webpack-plugin')
|
|
@@ -19,21 +19,21 @@ const { configure } = require('quasar/wrappers');
|
|
|
19
19
|
|
|
20
20
|
module.exports = configure(function (ctx) {
|
|
21
21
|
return {
|
|
22
|
-
// https://
|
|
22
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/supporting-ts
|
|
23
23
|
supportTS: false,
|
|
24
24
|
|
|
25
|
-
// https://
|
|
25
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/prefetch-feature
|
|
26
26
|
// preFetch: true,
|
|
27
27
|
|
|
28
28
|
// app boot file (/src/boot)
|
|
29
29
|
// --> boot files are part of "main.js"
|
|
30
|
-
// https://
|
|
30
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/boot-files
|
|
31
31
|
boot: [
|
|
32
32
|
<% if (preset.i18n) { %>'i18n',<% } %>
|
|
33
33
|
<% if (preset.axios) { %>'axios',<% } %>
|
|
34
34
|
],
|
|
35
35
|
|
|
36
|
-
// https://
|
|
36
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#css
|
|
37
37
|
css: [
|
|
38
38
|
'app.<%= css %>'
|
|
39
39
|
],
|
|
@@ -52,7 +52,7 @@ module.exports = configure(function (ctx) {
|
|
|
52
52
|
'material-icons', // optional, you are not bound to it
|
|
53
53
|
],
|
|
54
54
|
|
|
55
|
-
// Full list of options: https://
|
|
55
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#build
|
|
56
56
|
build: {
|
|
57
57
|
vueRouterMode: 'hash', // available values: 'hash', 'history'
|
|
58
58
|
|
|
@@ -73,7 +73,7 @@ module.exports = configure(function (ctx) {
|
|
|
73
73
|
// Options below are automatically set depending on the env, set them if you want to override
|
|
74
74
|
// extractCSS: false,
|
|
75
75
|
|
|
76
|
-
// https://
|
|
76
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/handling-webpack
|
|
77
77
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
|
78
78
|
<% if (preset.lint) { %>
|
|
79
79
|
chainWebpack (chain) {
|
|
@@ -85,7 +85,7 @@ module.exports = configure(function (ctx) {
|
|
|
85
85
|
<% } %>
|
|
86
86
|
},
|
|
87
87
|
|
|
88
|
-
// Full list of options: https://
|
|
88
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#devserver
|
|
89
89
|
devServer: {
|
|
90
90
|
server: {
|
|
91
91
|
type: 'http'
|
|
@@ -94,7 +94,7 @@ module.exports = configure(function (ctx) {
|
|
|
94
94
|
open: true // opens browser window automatically
|
|
95
95
|
},
|
|
96
96
|
|
|
97
|
-
// https://
|
|
97
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#framework
|
|
98
98
|
framework: {
|
|
99
99
|
config: {},
|
|
100
100
|
|
|
@@ -116,7 +116,7 @@ module.exports = configure(function (ctx) {
|
|
|
116
116
|
// https://quasar.dev/options/animations
|
|
117
117
|
animations: [],
|
|
118
118
|
|
|
119
|
-
// https://
|
|
119
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-ssr/configuring-ssr
|
|
120
120
|
ssr: {
|
|
121
121
|
pwa: false,
|
|
122
122
|
|
|
@@ -144,7 +144,7 @@ module.exports = configure(function (ctx) {
|
|
|
144
144
|
]
|
|
145
145
|
},
|
|
146
146
|
|
|
147
|
-
// https://
|
|
147
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-pwa/configuring-pwa
|
|
148
148
|
pwa: {
|
|
149
149
|
workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
|
|
150
150
|
workboxOptions: {}, // only for GenerateSW
|
|
@@ -198,17 +198,17 @@ module.exports = configure(function (ctx) {
|
|
|
198
198
|
}
|
|
199
199
|
},
|
|
200
200
|
|
|
201
|
-
// Full list of options: https://
|
|
201
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-cordova-apps/configuring-cordova
|
|
202
202
|
cordova: {
|
|
203
203
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
204
204
|
},
|
|
205
205
|
|
|
206
|
-
// Full list of options: https://
|
|
206
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-capacitor-apps/configuring-capacitor
|
|
207
207
|
capacitor: {
|
|
208
208
|
hideSplashscreen: true
|
|
209
209
|
},
|
|
210
210
|
|
|
211
|
-
// Full list of options: https://
|
|
211
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-electron-apps/configuring-electron
|
|
212
212
|
electron: {
|
|
213
213
|
bundler: 'packager', // 'packager' or 'builder'
|
|
214
214
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Configuration for your app
|
|
2
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
2
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file
|
|
3
3
|
|
|
4
4
|
import { defineConfig } from '#q-app/wrappers'
|
|
5
5
|
|
|
@@ -27,7 +27,7 @@ export default defineConfig((ctx) => {
|
|
|
27
27
|
'axios'<% } %>
|
|
28
28
|
],
|
|
29
29
|
|
|
30
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
30
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#css
|
|
31
31
|
css: [
|
|
32
32
|
'app.<%= css %>'
|
|
33
33
|
],
|
|
@@ -46,7 +46,7 @@ export default defineConfig((ctx) => {
|
|
|
46
46
|
'material-icons', // optional, you are not bound to it
|
|
47
47
|
],
|
|
48
48
|
|
|
49
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
49
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#build
|
|
50
50
|
build: {
|
|
51
51
|
// publicPath: '/',
|
|
52
52
|
vueRouterMode: 'hash', // available values: 'hash', 'history'
|
|
@@ -76,7 +76,7 @@ export default defineConfig((ctx) => {
|
|
|
76
76
|
// chainWebpack (/* chain, { isClient, isServer } */) {}
|
|
77
77
|
},
|
|
78
78
|
|
|
79
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
79
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#devserver
|
|
80
80
|
devServer: {
|
|
81
81
|
server: {
|
|
82
82
|
type: 'http'
|
|
@@ -84,7 +84,7 @@ export default defineConfig((ctx) => {
|
|
|
84
84
|
open: true // opens browser window automatically
|
|
85
85
|
},
|
|
86
86
|
|
|
87
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
87
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#framework
|
|
88
88
|
framework: {
|
|
89
89
|
config: {},
|
|
90
90
|
|
|
@@ -106,7 +106,7 @@ export default defineConfig((ctx) => {
|
|
|
106
106
|
// https://quasar.dev/options/animations
|
|
107
107
|
animations: [],
|
|
108
108
|
|
|
109
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
109
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#sourcefiles
|
|
110
110
|
// sourceFiles: {
|
|
111
111
|
// rootComponent: 'src/App.vue',
|
|
112
112
|
// router: 'src/router/index',
|
|
@@ -8,7 +8,7 @@ export default [
|
|
|
8
8
|
{
|
|
9
9
|
/**
|
|
10
10
|
* Ignore the following files.
|
|
11
|
-
* Please note that pluginQuasar.configs.recommended already ignores
|
|
11
|
+
* Please note that pluginQuasar.configs.recommended() already ignores
|
|
12
12
|
* the "node_modules" folder for you (and all other Quasar project
|
|
13
13
|
* relevant folders and files).
|
|
14
14
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Configuration for your app
|
|
9
|
-
// https://
|
|
9
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file
|
|
10
10
|
|
|
11
11
|
<% if (preset.lint && lintConfig === 'airbnb') { %>/* eslint func-names: 0 */
|
|
12
12
|
/* eslint global-require: 0 */
|
|
@@ -16,18 +16,18 @@ const { configure } = require('quasar/wrappers');
|
|
|
16
16
|
|
|
17
17
|
module.exports = configure(function (/* ctx */) {
|
|
18
18
|
return {
|
|
19
|
-
// https://
|
|
19
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/prefetch-feature
|
|
20
20
|
// preFetch: true,
|
|
21
21
|
|
|
22
22
|
// app boot file (/src/boot)
|
|
23
23
|
// --> boot files are part of "main.js"
|
|
24
|
-
// https://
|
|
24
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/boot-files
|
|
25
25
|
boot: [
|
|
26
26
|
<% if (preset.i18n) { %>'i18n',<% } %>
|
|
27
27
|
<% if (preset.axios) { %>'axios',<% } %>
|
|
28
28
|
],
|
|
29
29
|
|
|
30
|
-
// https://
|
|
30
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#css
|
|
31
31
|
css: [
|
|
32
32
|
'app.<%= css %>'
|
|
33
33
|
],
|
|
@@ -46,7 +46,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
46
46
|
'material-icons', // optional, you are not bound to it
|
|
47
47
|
],
|
|
48
48
|
|
|
49
|
-
// Full list of options: https://
|
|
49
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#build
|
|
50
50
|
build: {
|
|
51
51
|
target: {
|
|
52
52
|
browser: [ 'es2019', 'edge88', 'firefox78', 'chrome87', 'safari13.1' ],
|
|
@@ -98,13 +98,13 @@ module.exports = configure(function (/* ctx */) {
|
|
|
98
98
|
// ]<% } %>
|
|
99
99
|
},
|
|
100
100
|
|
|
101
|
-
// Full list of options: https://
|
|
101
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#devserver
|
|
102
102
|
devServer: {
|
|
103
103
|
// https: true
|
|
104
104
|
open: true // opens browser window automatically
|
|
105
105
|
},
|
|
106
106
|
|
|
107
|
-
// https://
|
|
107
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#framework
|
|
108
108
|
framework: {
|
|
109
109
|
config: {},
|
|
110
110
|
|
|
@@ -126,7 +126,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
126
126
|
// https://v2.quasar.dev/options/animations
|
|
127
127
|
animations: [],
|
|
128
128
|
|
|
129
|
-
// https://
|
|
129
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/quasar-config-file#sourcefiles
|
|
130
130
|
// sourceFiles: {
|
|
131
131
|
// rootComponent: 'src/App.vue',
|
|
132
132
|
// router: 'src/router/index',
|
|
@@ -138,7 +138,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
138
138
|
// electronPreload: 'src-electron/electron-preload'
|
|
139
139
|
// },
|
|
140
140
|
|
|
141
|
-
// https://
|
|
141
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-ssr/configuring-ssr
|
|
142
142
|
ssr: {
|
|
143
143
|
// ssrPwaHtmlFilename: 'offline.html', // do NOT use index.html as name!
|
|
144
144
|
|
|
@@ -158,7 +158,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
158
158
|
]
|
|
159
159
|
},
|
|
160
160
|
|
|
161
|
-
// https://
|
|
161
|
+
// https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-pwa/configuring-pwa
|
|
162
162
|
pwa: {
|
|
163
163
|
workboxMode: 'generateSW', // or 'injectManifest'
|
|
164
164
|
injectPwaMetaTags: true,
|
|
@@ -172,17 +172,17 @@ module.exports = configure(function (/* ctx */) {
|
|
|
172
172
|
// extendPWACustomSWConf (esbuildConf) {}
|
|
173
173
|
},
|
|
174
174
|
|
|
175
|
-
// Full list of options: https://
|
|
175
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-cordova-apps/configuring-cordova
|
|
176
176
|
cordova: {
|
|
177
177
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
178
178
|
},
|
|
179
179
|
|
|
180
|
-
// Full list of options: https://
|
|
180
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-capacitor-apps/configuring-capacitor
|
|
181
181
|
capacitor: {
|
|
182
182
|
hideSplashscreen: true
|
|
183
183
|
},
|
|
184
184
|
|
|
185
|
-
// Full list of options: https://
|
|
185
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-electron-apps/configuring-electron
|
|
186
186
|
electron: {
|
|
187
187
|
// extendElectronMainConf (esbuildConf)
|
|
188
188
|
// extendElectronPreloadConf (esbuildConf)
|
|
@@ -211,7 +211,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
211
211
|
}
|
|
212
212
|
},
|
|
213
213
|
|
|
214
|
-
// Full list of options: https://
|
|
214
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-vite-v1/developing-browser-extensions/configuring-bex
|
|
215
215
|
bex: {
|
|
216
216
|
contentScripts: [
|
|
217
217
|
'my-content-script'
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Configuration for your app
|
|
2
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
2
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
|
|
3
3
|
|
|
4
4
|
import { defineConfig } from '#q-app/wrappers';<% if (preset.i18n) { %>
|
|
5
5
|
import { fileURLToPath } from 'node:url';<% } %>
|
|
@@ -17,7 +17,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
17
17
|
'axios'<% } %>
|
|
18
18
|
],
|
|
19
19
|
|
|
20
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
20
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
|
|
21
21
|
css: [
|
|
22
22
|
'app.<%= css %>'
|
|
23
23
|
],
|
|
@@ -36,7 +36,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
36
36
|
'material-icons', // optional, you are not bound to it
|
|
37
37
|
],
|
|
38
38
|
|
|
39
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
39
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#build
|
|
40
40
|
build: {
|
|
41
41
|
target: {
|
|
42
42
|
browser: [ 'es2022', 'firefox115', 'chrome115', 'safari14' ],
|
|
@@ -96,13 +96,13 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
96
96
|
// ]<% } %>
|
|
97
97
|
},
|
|
98
98
|
|
|
99
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
99
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#devserver
|
|
100
100
|
devServer: {
|
|
101
101
|
// https: true,
|
|
102
102
|
open: true // opens browser window automatically
|
|
103
103
|
},
|
|
104
104
|
|
|
105
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
105
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#framework
|
|
106
106
|
framework: {
|
|
107
107
|
config: {},
|
|
108
108
|
|
|
@@ -124,7 +124,7 @@ export default defineConfig((<% if (preset.i18n) { %>ctx<% } else { %>/* ctx */<
|
|
|
124
124
|
// https://v2.quasar.dev/options/animations
|
|
125
125
|
animations: [],
|
|
126
126
|
|
|
127
|
-
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-
|
|
127
|
+
// https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#sourcefiles
|
|
128
128
|
// sourceFiles: {
|
|
129
129
|
// rootComponent: 'src/App.vue',
|
|
130
130
|
// router: 'src/router/index',
|
|
@@ -9,7 +9,7 @@ export default [
|
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Ignore the following files.
|
|
12
|
-
* Please note that pluginQuasar.configs.recommended already ignores
|
|
12
|
+
* Please note that pluginQuasar.configs.recommended() already ignores
|
|
13
13
|
* the "node_modules" folder for you (and all other Quasar project
|
|
14
14
|
* relevant folders and files).
|
|
15
15
|
*
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
*/
|
|
7
7
|
|
|
8
8
|
// Configuration for your app
|
|
9
|
-
// https://
|
|
9
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file
|
|
10
10
|
|
|
11
11
|
<% if (preset.lint) { %>
|
|
12
12
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
@@ -19,7 +19,7 @@ const { configure } = require('quasar/wrappers');
|
|
|
19
19
|
|
|
20
20
|
module.exports = configure(function (ctx) {
|
|
21
21
|
return {
|
|
22
|
-
// https://
|
|
22
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/supporting-ts
|
|
23
23
|
supportTS: <% if (preset.lint) { %>{
|
|
24
24
|
tsCheckerConfig: {
|
|
25
25
|
eslint: {
|
|
@@ -29,18 +29,18 @@ module.exports = configure(function (ctx) {
|
|
|
29
29
|
}
|
|
30
30
|
}<% } else { %>true<% } %>,
|
|
31
31
|
|
|
32
|
-
// https://
|
|
32
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/prefetch-feature
|
|
33
33
|
// preFetch: true,
|
|
34
34
|
|
|
35
35
|
// app boot file (/src/boot)
|
|
36
36
|
// --> boot files are part of "main.js"
|
|
37
|
-
// https://
|
|
37
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/boot-files
|
|
38
38
|
boot: [
|
|
39
39
|
<% if (preset.i18n) { %>'i18n',<% } %>
|
|
40
40
|
<% if (preset.axios) { %>'axios',<% } %>
|
|
41
41
|
],
|
|
42
42
|
|
|
43
|
-
// https://
|
|
43
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#css
|
|
44
44
|
css: [
|
|
45
45
|
'app.<%= css %>'
|
|
46
46
|
],
|
|
@@ -59,7 +59,7 @@ module.exports = configure(function (ctx) {
|
|
|
59
59
|
'material-icons', // optional, you are not bound to it
|
|
60
60
|
],
|
|
61
61
|
|
|
62
|
-
// Full list of options: https://
|
|
62
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#build
|
|
63
63
|
build: {
|
|
64
64
|
vueRouterMode: 'hash', // available values: 'hash', 'history'
|
|
65
65
|
|
|
@@ -80,12 +80,12 @@ module.exports = configure(function (ctx) {
|
|
|
80
80
|
// Options below are automatically set depending on the env, set them if you want to override
|
|
81
81
|
// extractCSS: false,
|
|
82
82
|
|
|
83
|
-
// https://
|
|
83
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/handling-webpack
|
|
84
84
|
// "chain" is a webpack-chain object https://github.com/neutrinojs/webpack-chain
|
|
85
85
|
// chainWebpack (/* chain */) {}
|
|
86
86
|
},
|
|
87
87
|
|
|
88
|
-
// Full list of options: https://
|
|
88
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#devserver
|
|
89
89
|
devServer: {
|
|
90
90
|
server: {
|
|
91
91
|
type: 'http'
|
|
@@ -94,7 +94,7 @@ module.exports = configure(function (ctx) {
|
|
|
94
94
|
open: true // opens browser window automatically
|
|
95
95
|
},
|
|
96
96
|
|
|
97
|
-
// https://
|
|
97
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/quasar-config-file#framework
|
|
98
98
|
framework: {
|
|
99
99
|
config: {},
|
|
100
100
|
|
|
@@ -116,7 +116,7 @@ module.exports = configure(function (ctx) {
|
|
|
116
116
|
// https://quasar.dev/options/animations
|
|
117
117
|
animations: [],
|
|
118
118
|
|
|
119
|
-
// https://
|
|
119
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-ssr/configuring-ssr
|
|
120
120
|
ssr: {
|
|
121
121
|
pwa: false,
|
|
122
122
|
|
|
@@ -137,7 +137,7 @@ module.exports = configure(function (ctx) {
|
|
|
137
137
|
]
|
|
138
138
|
},
|
|
139
139
|
|
|
140
|
-
// https://
|
|
140
|
+
// https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-pwa/configuring-pwa
|
|
141
141
|
pwa: {
|
|
142
142
|
workboxPluginMode: 'GenerateSW', // 'GenerateSW' or 'InjectManifest'
|
|
143
143
|
workboxOptions: {}, // only for GenerateSW
|
|
@@ -184,17 +184,17 @@ module.exports = configure(function (ctx) {
|
|
|
184
184
|
}
|
|
185
185
|
},
|
|
186
186
|
|
|
187
|
-
// Full list of options: https://
|
|
187
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-cordova-apps/configuring-cordova
|
|
188
188
|
cordova: {
|
|
189
189
|
// noIosLegacyBuildFlag: true, // uncomment only if you know what you are doing
|
|
190
190
|
},
|
|
191
191
|
|
|
192
|
-
// Full list of options: https://
|
|
192
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-capacitor-apps/configuring-capacitor
|
|
193
193
|
capacitor: {
|
|
194
194
|
hideSplashscreen: true
|
|
195
195
|
},
|
|
196
196
|
|
|
197
|
-
// Full list of options: https://
|
|
197
|
+
// Full list of options: https://legacy-app.quasar.dev/quasar-cli-webpack-v3/developing-electron-apps/configuring-electron
|
|
198
198
|
electron: {
|
|
199
199
|
bundler: 'packager', // 'packager' or 'builder'
|
|
200
200
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
// Configuration for your app
|
|
2
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
2
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file
|
|
3
3
|
|
|
4
4
|
<% if (preset.eslint) { %>
|
|
5
5
|
/* eslint-disable @typescript-eslint/no-var-requires */
|
|
@@ -29,7 +29,7 @@ export default defineConfig((/* ctx */) => {
|
|
|
29
29
|
<% if (preset.axios) { %>'axios',<% } %>
|
|
30
30
|
],
|
|
31
31
|
|
|
32
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
32
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#css
|
|
33
33
|
css: [
|
|
34
34
|
'app.<%= css %>'
|
|
35
35
|
],
|
|
@@ -48,7 +48,7 @@ export default defineConfig((/* ctx */) => {
|
|
|
48
48
|
'material-icons', // optional, you are not bound to it
|
|
49
49
|
],
|
|
50
50
|
|
|
51
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
51
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#build
|
|
52
52
|
build: {
|
|
53
53
|
// publicPath: '/',
|
|
54
54
|
vueRouterMode: 'hash', // available values: 'hash', 'history'
|
|
@@ -84,7 +84,7 @@ export default defineConfig((/* ctx */) => {
|
|
|
84
84
|
// chainWebpack (/* chain, { isClient, isServer } */) {}
|
|
85
85
|
},
|
|
86
86
|
|
|
87
|
-
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
87
|
+
// Full list of options: https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#devserver
|
|
88
88
|
devServer: {
|
|
89
89
|
server: {
|
|
90
90
|
type: 'http'
|
|
@@ -92,7 +92,7 @@ export default defineConfig((/* ctx */) => {
|
|
|
92
92
|
open: true // opens browser window automatically
|
|
93
93
|
},
|
|
94
94
|
|
|
95
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
95
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#framework
|
|
96
96
|
framework: {
|
|
97
97
|
config: {},
|
|
98
98
|
|
|
@@ -114,7 +114,7 @@ export default defineConfig((/* ctx */) => {
|
|
|
114
114
|
// https://quasar.dev/options/animations
|
|
115
115
|
animations: [],
|
|
116
116
|
|
|
117
|
-
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-
|
|
117
|
+
// https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#sourcefiles
|
|
118
118
|
// sourceFiles: {
|
|
119
119
|
// rootComponent: 'src/App.vue',
|
|
120
120
|
// router: 'src/router/index',
|
|
@@ -9,7 +9,7 @@ export default [
|
|
|
9
9
|
{
|
|
10
10
|
/**
|
|
11
11
|
* Ignore the following files.
|
|
12
|
-
* Please note that pluginQuasar.configs.recommended already ignores
|
|
12
|
+
* Please note that pluginQuasar.configs.recommended() already ignores
|
|
13
13
|
* the "node_modules" folder for you (and all other Quasar project
|
|
14
14
|
* relevant folders and files).
|
|
15
15
|
*
|
|
@@ -9,12 +9,6 @@
|
|
|
9
9
|
"scripts": {
|
|
10
10
|
"test": "echo \"No test specified\" && exit 0"
|
|
11
11
|
},
|
|
12
|
-
"repository": {
|
|
13
|
-
"type": "<%= repositoryType %>",
|
|
14
|
-
"url": "<%= repositoryURL %>"
|
|
15
|
-
},
|
|
16
|
-
"bugs": "<%= bugs %>",
|
|
17
|
-
"homepage": "<%= homepage %>",
|
|
18
12
|
"engines": {
|
|
19
13
|
"node": ">= 12.2.0",
|
|
20
14
|
"npm": ">= 5.6.0",
|
|
@@ -32,8 +32,12 @@ export async function script ({ scope, utils }) {
|
|
|
32
32
|
]
|
|
33
33
|
},
|
|
34
34
|
|
|
35
|
-
utils.commonPrompts.description
|
|
36
|
-
|
|
35
|
+
utils.commonPrompts.description
|
|
36
|
+
])
|
|
37
|
+
|
|
38
|
+
await utils.injectAuthor(scope)
|
|
39
|
+
|
|
40
|
+
await utils.prompts(scope, [
|
|
37
41
|
{
|
|
38
42
|
type: 'text',
|
|
39
43
|
name: 'license',
|
|
@@ -59,27 +63,6 @@ export async function script ({ scope, utils }) {
|
|
|
59
63
|
}
|
|
60
64
|
],
|
|
61
65
|
format: utils.convertArrayToObject
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: 'text',
|
|
65
|
-
name: 'repositoryType',
|
|
66
|
-
initial: 'git',
|
|
67
|
-
message: 'Repository type:'
|
|
68
|
-
},
|
|
69
|
-
{
|
|
70
|
-
type: 'text',
|
|
71
|
-
name: 'repositoryURL',
|
|
72
|
-
message: 'Repository URL (eg https://github.com/quasarframework/quasar):'
|
|
73
|
-
},
|
|
74
|
-
{
|
|
75
|
-
type: 'text',
|
|
76
|
-
name: 'homepage',
|
|
77
|
-
message: 'Homepage URL:'
|
|
78
|
-
},
|
|
79
|
-
{
|
|
80
|
-
type: 'text',
|
|
81
|
-
name: 'bugs',
|
|
82
|
-
message: 'Issue reporting URL (eg https://github.com/quasarframework/quasar/issues):'
|
|
83
66
|
}
|
|
84
67
|
])
|
|
85
68
|
|
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
"author": "<%= author %>",
|
|
6
6
|
"license": "<%= license %>",
|
|
7
7
|
"type": "module",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "<%= repositoryType %>",
|
|
10
|
-
"url": "<%= repositoryURL %>"
|
|
11
|
-
},
|
|
12
|
-
"bugs": "<%= bugs %>",
|
|
13
|
-
"homepage": "<%= homepage %>",
|
|
14
8
|
"main": "./dist/runtime/index.js",
|
|
15
9
|
"module": "./dist/runtime/index.js",
|
|
16
10
|
"types": "./dist/runtime/index.d.ts",
|
|
@@ -22,7 +22,11 @@ export async function script ({ scope, utils }) {
|
|
|
22
22
|
},
|
|
23
23
|
|
|
24
24
|
utils.commonPrompts.description,
|
|
25
|
-
|
|
25
|
+
])
|
|
26
|
+
|
|
27
|
+
await utils.injectAuthor(scope)
|
|
28
|
+
|
|
29
|
+
await utils.prompts(scope, [
|
|
26
30
|
{
|
|
27
31
|
type: 'text',
|
|
28
32
|
name: 'license',
|
|
@@ -48,27 +52,6 @@ export async function script ({ scope, utils }) {
|
|
|
48
52
|
}
|
|
49
53
|
],
|
|
50
54
|
format: utils.convertArrayToObject
|
|
51
|
-
},
|
|
52
|
-
{
|
|
53
|
-
type: 'text',
|
|
54
|
-
name: 'repositoryType',
|
|
55
|
-
initial: 'git',
|
|
56
|
-
message: 'Repository type:'
|
|
57
|
-
},
|
|
58
|
-
{
|
|
59
|
-
type: 'text',
|
|
60
|
-
name: 'repositoryURL',
|
|
61
|
-
message: 'Repository URL (eg https://github.com/quasarframework/quasar):'
|
|
62
|
-
},
|
|
63
|
-
{
|
|
64
|
-
type: 'text',
|
|
65
|
-
name: 'homepage',
|
|
66
|
-
message: 'Homepage URL:'
|
|
67
|
-
},
|
|
68
|
-
{
|
|
69
|
-
type: 'text',
|
|
70
|
-
name: 'bugs',
|
|
71
|
-
message: 'Issue reporting URL (eg https://github.com/quasarframework/quasar/issues):'
|
|
72
55
|
}
|
|
73
56
|
])
|
|
74
57
|
|
|
@@ -11,17 +11,12 @@ module.exports = {
|
|
|
11
11
|
|
|
12
12
|
'packageDescription',
|
|
13
13
|
'aeDescription',
|
|
14
|
-
'aeCodeFormat',
|
|
15
14
|
|
|
16
15
|
'umdExportName',
|
|
17
16
|
'componentName',
|
|
18
17
|
'directiveName',
|
|
19
18
|
|
|
20
|
-
'license'
|
|
21
|
-
'repositoryType',
|
|
22
|
-
'repositoryURL',
|
|
23
|
-
'homepage',
|
|
24
|
-
'bugs'
|
|
19
|
+
'license'
|
|
25
20
|
]
|
|
26
21
|
},
|
|
27
22
|
|
|
@@ -8,9 +8,12 @@ export async function script ({ scope, utils }) {
|
|
|
8
8
|
message: 'Project name (npm name, kebab-case, without "quasar-ui" prefix)',
|
|
9
9
|
validate: (val) =>
|
|
10
10
|
utils.isValidPackageName(val) || 'Invalid package.json name'
|
|
11
|
-
}
|
|
11
|
+
}
|
|
12
|
+
])
|
|
13
|
+
|
|
14
|
+
await utils.injectAuthor(scope)
|
|
12
15
|
|
|
13
|
-
|
|
16
|
+
await utils.prompts(scope, [
|
|
14
17
|
utils.commonPrompts.license,
|
|
15
18
|
|
|
16
19
|
{
|
|
@@ -93,23 +96,7 @@ export async function script ({ scope, utils }) {
|
|
|
93
96
|
value: 'uninstall'
|
|
94
97
|
}
|
|
95
98
|
]
|
|
96
|
-
}
|
|
97
|
-
|
|
98
|
-
{
|
|
99
|
-
type: (_, { quasarVersion, features }) => (quasarVersion === 'v2' && features.ae ? 'select' : null),
|
|
100
|
-
name: 'aeCodeFormat',
|
|
101
|
-
message: 'Pick the App Extension format:',
|
|
102
|
-
initial: 0,
|
|
103
|
-
choices: [
|
|
104
|
-
{ title: 'ESM (q/app-vite >= 1.5, q/app-webpack >= 3.10)', value: 'esm', description: 'recommended' },
|
|
105
|
-
{ title: 'CommonJS', value: 'commonjs' }
|
|
106
|
-
]
|
|
107
|
-
},
|
|
108
|
-
|
|
109
|
-
utils.commonPrompts.repositoryType,
|
|
110
|
-
utils.commonPrompts.repositoryURL,
|
|
111
|
-
utils.commonPrompts.homepage,
|
|
112
|
-
utils.commonPrompts.bugs
|
|
99
|
+
}
|
|
113
100
|
])
|
|
114
101
|
|
|
115
102
|
const { script } = await import(`./quasar-${ scope.quasarVersion }/index.js`)
|
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
"build:js": "node build/script.javascript.js",
|
|
18
18
|
"build:css": "node build/script.css.js"
|
|
19
19
|
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "<%= repositoryType %>",
|
|
22
|
-
"url": "<%= repositoryURL %>"
|
|
23
|
-
},
|
|
24
|
-
"bugs": "<%= bugs %>",
|
|
25
|
-
"homepage": "<%= homepage %>",
|
|
26
20
|
"devDependencies": {
|
|
27
21
|
"autoprefixer": "^10.0.2",
|
|
28
22
|
"cssnano": "^4.1.10",
|
|
@@ -5,12 +5,6 @@
|
|
|
5
5
|
"author": "<%= author %>",
|
|
6
6
|
"license": "<%= license %>",
|
|
7
7
|
"main": "src/index.js",
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "<%= repositoryType %>",
|
|
10
|
-
"url": "<%= repositoryURL %>"
|
|
11
|
-
},
|
|
12
|
-
"bugs": "<%= bugs %>",
|
|
13
|
-
"homepage": "<%= homepage %>",
|
|
14
8
|
"dependencies": {
|
|
15
9
|
"quasar-ui-<%= name %>": "latest"
|
|
16
10
|
},
|
|
@@ -17,12 +17,6 @@
|
|
|
17
17
|
"build:js": "node build/script.javascript.js",
|
|
18
18
|
"build:css": "node build/script.css.js"
|
|
19
19
|
},
|
|
20
|
-
"repository": {
|
|
21
|
-
"type": "<%= repositoryType %>",
|
|
22
|
-
"url": "<%= repositoryURL %>"
|
|
23
|
-
},
|
|
24
|
-
"bugs": "<%= bugs %>",
|
|
25
|
-
"homepage": "<%= homepage %>",
|
|
26
20
|
"devDependencies": {
|
|
27
21
|
"autoprefixer": "^10.0.2",
|
|
28
22
|
"cssnano": "^4.1.10",
|
|
@@ -4,13 +4,7 @@
|
|
|
4
4
|
"description": "<%= aeDescription %>",
|
|
5
5
|
"author": "<%= author %>",
|
|
6
6
|
"license": "<%= license %>",
|
|
7
|
-
"type": "
|
|
8
|
-
"repository": {
|
|
9
|
-
"type": "<%= repositoryType %>",
|
|
10
|
-
"url": "<%= repositoryURL %>"
|
|
11
|
-
},
|
|
12
|
-
"bugs": "<%= bugs %>",
|
|
13
|
-
"homepage": "<%= homepage %>",
|
|
7
|
+
"type": "module",
|
|
14
8
|
"dependencies": {
|
|
15
9
|
"quasar-ui-<%= name %>": "latest"
|
|
16
10
|
},
|
|
@@ -22,7 +22,7 @@ function extendConf (conf, api) {
|
|
|
22
22
|
conf.css.push('~quasar-ui-<%= name %>/src/index.sass')
|
|
23
23
|
}
|
|
24
24
|
|
|
25
|
-
|
|
25
|
+
export default function (api) {
|
|
26
26
|
// Quasar compatibility check; you may need
|
|
27
27
|
// hard dependencies, as in a minimum version of the "quasar"
|
|
28
28
|
// package or a minimum version of "@quasar/app-*" CLI
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* Docs: https://quasar.dev/app-extensions/development-guide/install-api
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
|
|
7
|
+
export default function (api) {
|
|
8
8
|
// Quasar compatibility check; you may need
|
|
9
9
|
// hard dependencies, as in a minimum version of the "quasar"
|
|
10
10
|
// package or a minimum version of "@quasar/app-*" CLI
|
package/utils/index.js
CHANGED
|
@@ -337,41 +337,29 @@ const commonPrompts = {
|
|
|
337
337
|
val.length > 0 || 'Invalid project description'
|
|
338
338
|
},
|
|
339
339
|
|
|
340
|
-
author: {
|
|
341
|
-
type: 'text',
|
|
342
|
-
name: 'author',
|
|
343
|
-
initial: () => getGitUser(),
|
|
344
|
-
message: 'Author:'
|
|
345
|
-
},
|
|
346
|
-
|
|
347
340
|
license: {
|
|
348
341
|
type: 'text',
|
|
349
342
|
name: 'license',
|
|
350
343
|
message: 'License type',
|
|
351
344
|
initial: 'MIT'
|
|
352
|
-
}
|
|
345
|
+
}
|
|
346
|
+
}
|
|
353
347
|
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
repositoryURL: {
|
|
361
|
-
type: 'text',
|
|
362
|
-
name: 'repositoryURL',
|
|
363
|
-
message: 'Repository URL: (eg https://github.com/quasarframework/quasar)'
|
|
364
|
-
},
|
|
365
|
-
homepage: {
|
|
366
|
-
type: 'text',
|
|
367
|
-
name: 'homepage',
|
|
368
|
-
message: 'Homepage URL:'
|
|
369
|
-
},
|
|
370
|
-
bugs: {
|
|
371
|
-
type: 'text',
|
|
372
|
-
name: 'bugs',
|
|
373
|
-
message: 'Issue reporting URL: (eg https://github.com/quasarframework/quasar/issues)'
|
|
348
|
+
export async function injectAuthor (scope) {
|
|
349
|
+
const author = getGitUser()
|
|
350
|
+
|
|
351
|
+
if (author) {
|
|
352
|
+
scope.author = author
|
|
353
|
+
return
|
|
374
354
|
}
|
|
355
|
+
|
|
356
|
+
await prompts(scope, [
|
|
357
|
+
{
|
|
358
|
+
type: 'text',
|
|
359
|
+
name: 'author',
|
|
360
|
+
message: 'Author:'
|
|
361
|
+
}
|
|
362
|
+
])
|
|
375
363
|
}
|
|
376
364
|
|
|
377
365
|
export default {
|
|
@@ -391,5 +379,6 @@ export default {
|
|
|
391
379
|
ensureOutsideProject,
|
|
392
380
|
initializeGit,
|
|
393
381
|
|
|
394
|
-
commonPrompts
|
|
382
|
+
commonPrompts,
|
|
383
|
+
injectAuthor
|
|
395
384
|
}
|