create-quasar 1.0.31 → 1.1.1
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.js +1 -0
- package/package.json +1 -1
- package/templates/app/quasar-v1/js/BASE/_package.json +1 -1
- package/templates/app/quasar-v1/ts/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/js-vite/BASE/_.npmrc +3 -0
- package/templates/app/quasar-v2/js-vite/BASE/_package.json +3 -2
- package/templates/app/quasar-v2/js-vite/BASE/quasar.config.js +5 -0
- package/templates/app/quasar-v2/js-webpack/BASE/_.npmrc +3 -0
- package/templates/app/quasar-v2/js-webpack/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-vite/BASE/_.npmrc +3 -0
- package/templates/app/quasar-v2/ts-vite/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-vite/BASE/quasar.config.js +5 -0
- package/templates/app/quasar-v2/ts-vite/i18n/src/boot/i18n.ts +2 -2
- package/templates/app/quasar-v2/ts-webpack/BASE/_.npmrc +3 -0
- package/templates/app/quasar-v2/ts-webpack/BASE/_package.json +1 -1
package/index.js
CHANGED
|
@@ -89,6 +89,7 @@ async function run () {
|
|
|
89
89
|
: [
|
|
90
90
|
{ title: 'Yes, use Yarn (recommended)', value: 'yarn' },
|
|
91
91
|
{ title: 'Yes, use NPM', value: 'npm' },
|
|
92
|
+
{ title: 'Yes, use PNPM (experimental support)', value: 'pnpm' },
|
|
92
93
|
{ title: 'No, I will handle that myself', value: false }
|
|
93
94
|
]
|
|
94
95
|
)
|
package/package.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"test": "echo \"No test specified\" && exit 0"
|
|
11
11
|
},
|
|
12
12
|
"dependencies": {
|
|
13
|
-
<% if (preset.axios) { %>"axios": "^
|
|
13
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
14
14
|
<% if (preset.i18n) { %>"vue-i18n": "^8.0.0",<% } %>
|
|
15
15
|
"@quasar/extras": "^1.0.0",
|
|
16
16
|
"core-js": "^3.6.5",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"vue-class-component": "^7.2.2",
|
|
15
15
|
"vue-property-decorator": "^8.3.0",
|
|
16
16
|
<% } %>
|
|
17
|
-
<% if (preset.axios) { %>"axios": "^
|
|
17
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
18
18
|
<% if (preset.i18n) { %>"vue-i18n": "^8.0.0",<% } %>
|
|
19
19
|
"@quasar/extras": "^1.0.0",
|
|
20
20
|
"core-js": "^3.6.5",
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "echo \"No test specified\" && exit 0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
<% if (preset.axios) { %>"axios": "^
|
|
15
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
16
16
|
<% if (preset.i18n) { %>"vue-i18n": "^9.0.0",<% } %>
|
|
17
17
|
<% if (preset.pinia) { %>"pinia": "^2.0.11",<% } %>
|
|
18
18
|
<% if (preset.vuex) { %>"vuex": "^4.0.1",<% } %>
|
|
@@ -39,7 +39,8 @@
|
|
|
39
39
|
<% } } %>
|
|
40
40
|
<% if (preset.i18n) { %>"@intlify/vite-plugin-vue-i18n": "^3.3.1",<% } %>
|
|
41
41
|
"@quasar/app-vite": "^1.0.0",
|
|
42
|
-
"autoprefixer": "^10.4.2"
|
|
42
|
+
"autoprefixer": "^10.4.2",
|
|
43
|
+
"postcss": "^8.4.14"
|
|
43
44
|
},
|
|
44
45
|
"engines": {
|
|
45
46
|
"node": "^18 || ^16 || ^14.19",
|
|
@@ -85,6 +85,10 @@ module.exports = configure(function (/* ctx */) {
|
|
|
85
85
|
// if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
|
|
86
86
|
// compositionOnly: false,
|
|
87
87
|
|
|
88
|
+
// if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}',
|
|
89
|
+
// you need to set `runtimeOnly: false`
|
|
90
|
+
// runtimeOnly: false,
|
|
91
|
+
|
|
88
92
|
// you need to set i18n resource including paths !
|
|
89
93
|
include: path.resolve(__dirname, './src/i18n/**')
|
|
90
94
|
}]
|
|
@@ -162,6 +166,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
162
166
|
swFilename: 'sw.js',
|
|
163
167
|
manifestFilename: 'manifest.json',
|
|
164
168
|
useCredentialsForManifestTag: false,
|
|
169
|
+
// useFilenameHashes: true,
|
|
165
170
|
// extendGenerateSWOptions (cfg) {}
|
|
166
171
|
// extendInjectManifestOptions (cfg) {},
|
|
167
172
|
// extendManifestJson (json) {}
|
|
@@ -12,7 +12,7 @@
|
|
|
12
12
|
"test": "echo \"No test specified\" && exit 0"
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
|
-
<% if (preset.axios) { %>"axios": "^
|
|
15
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
16
16
|
<% if (preset.i18n) { %>"vue-i18n": "^9.0.0",<% } %>
|
|
17
17
|
<% if (preset.pinia) { %>"pinia": "^2.0.11",<% } %>
|
|
18
18
|
<% if (preset.vuex) { %>"vuex": "^4.0.1",<% } %>
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
<% if (typescriptConfig === 'class') { %>"vue-class-component": "^8.0.0-rc.1",<% } %>
|
|
16
|
-
<% if (preset.axios) { %>"axios": "^
|
|
16
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
17
17
|
<% if (preset.i18n) { %>"vue-i18n": "^9.2.2",<% } %>
|
|
18
18
|
<% if (preset.pinia) { %>"pinia": "^2.0.11",<% } %>
|
|
19
19
|
<% if (preset.vuex) { %>"vuex": "^4.0.1",<% } %>
|
|
@@ -86,6 +86,10 @@ module.exports = configure(function (/* ctx */) {
|
|
|
86
86
|
// if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
|
|
87
87
|
// compositionOnly: false,
|
|
88
88
|
|
|
89
|
+
// if you want to use named tokens in your Vue I18n messages, such as 'Hello {name}',
|
|
90
|
+
// you need to set `runtimeOnly: false`
|
|
91
|
+
// runtimeOnly: false,
|
|
92
|
+
|
|
89
93
|
// you need to set i18n resource including paths !
|
|
90
94
|
include: path.resolve(__dirname, './src/i18n/**')
|
|
91
95
|
}]
|
|
@@ -163,6 +167,7 @@ module.exports = configure(function (/* ctx */) {
|
|
|
163
167
|
swFilename: 'sw.js',
|
|
164
168
|
manifestFilename: 'manifest.json',
|
|
165
169
|
useCredentialsForManifestTag: false,
|
|
170
|
+
// useFilenameHashes: true,
|
|
166
171
|
// extendGenerateSWOptions (cfg) {}
|
|
167
172
|
// extendInjectManifestOptions (cfg) {},
|
|
168
173
|
// extendManifestJson (json) {}
|
|
@@ -5,11 +5,11 @@ import messages from 'src/i18n';
|
|
|
5
5
|
|
|
6
6
|
export type MessageLanguages = keyof typeof messages;
|
|
7
7
|
// Type-define 'en-US' as the master schema for the resource
|
|
8
|
-
export type MessageSchema = typeof messages[
|
|
8
|
+
export type MessageSchema = typeof messages['en-US'];
|
|
9
9
|
|
|
10
10
|
// See https://vue-i18n.intlify.dev/guide/advanced/typescript.html#global-resource-schema-type-definition
|
|
11
11
|
/* eslint-disable @typescript-eslint/no-empty-interface */
|
|
12
|
-
declare module
|
|
12
|
+
declare module 'vue-i18n' {
|
|
13
13
|
// define the locale messages schema
|
|
14
14
|
export interface DefineLocaleMessage extends MessageSchema {}
|
|
15
15
|
|
|
@@ -13,7 +13,7 @@
|
|
|
13
13
|
},
|
|
14
14
|
"dependencies": {
|
|
15
15
|
<% if (typescriptConfig === 'class') { %>"vue-class-component": "^8.0.0-rc.1",<% } %>
|
|
16
|
-
<% if (preset.axios) { %>"axios": "^
|
|
16
|
+
<% if (preset.axios) { %>"axios": "^1.2.1",<% } %>
|
|
17
17
|
<% if (preset.i18n) { %>"vue-i18n": "^9.2.2",<% } %>
|
|
18
18
|
<% if (preset.pinia) { %>"pinia": "^2.0.11",<% } %>
|
|
19
19
|
<% if (preset.vuex) { %>"vuex": "^4.0.1",<% } %>
|