create-quasar 1.1.0 → 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/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/_package.json +1 -1
- package/templates/app/quasar-v2/js-vite/BASE/quasar.config.js +4 -0
- package/templates/app/quasar-v2/js-webpack/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-vite/BASE/_package.json +1 -1
- package/templates/app/quasar-v2/ts-vite/BASE/quasar.config.js +4 -0
- package/templates/app/quasar-v2/ts-vite/i18n/src/boot/i18n.ts +2 -2
- package/templates/app/quasar-v2/ts-webpack/BASE/_package.json +1 -1
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",<% } %>
|
|
@@ -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
|
}]
|
|
@@ -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
|
}]
|
|
@@ -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",<% } %>
|