create-quasar 2.2.0 → 2.2.2

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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-quasar",
3
- "version": "2.2.0",
3
+ "version": "2.2.2",
4
4
  "description": "Scaffolds Quasar Apps, AppExtensions or UI kits",
5
5
  "homepage": "https://quasar.dev",
6
6
  "bugs": "https://github.com/quasarframework/quasar/issues",
@@ -1,8 +1,10 @@
1
1
  // Configuration for your app
2
2
  // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
3
3
 
4
- import { defineConfig } from '#q-app/wrappers'<% if (scope.preset.i18n) { %>
5
- import { fileURLToPath } from 'node:url'<% } %>
4
+ import { defineConfig } from '#q-app/wrappers'
5
+ <% if (scope.preset.i18n) { %>
6
+ import { fileURLToPath } from 'node:url'
7
+ <% } %>
6
8
 
7
9
  export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
8
10
  return {
@@ -13,12 +15,14 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
13
15
  // --> boot files are part of "main.js"
14
16
  // https://v2.quasar.dev/quasar-cli-vite/boot-files
15
17
  boot: [
16
- <% if (scope.preset.i18n) { %>'i18n'<% } %>
18
+ <% if (scope.preset.i18n) { %>
19
+ 'i18n'
20
+ <% } %>
17
21
  ],
18
22
 
19
23
  // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
20
24
  css: [
21
- 'app.<%= scope.preset.sass ? 'sass' : 'css' %>'
25
+ 'app.<%= scope.preset.sass ? 'scss' : 'css' %>'
22
26
  ],
23
27
 
24
28
  // https://github.com/quasarframework/quasar/tree/dev/extras
@@ -60,8 +64,10 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
60
64
 
61
65
  // extendViteConf (viteConf) {},
62
66
  // viteVuePluginOptions: {},
63
- <% if (scope.preset.i18n || scope.preset.eslint) { %>
64
- vitePlugins: [<% if (scope.preset.i18n) { %>
67
+
68
+ <% if (scope.preset.i18n || scope.preset.eslint) { %>
69
+ vitePlugins: [
70
+ <% if (scope.preset.i18n) { %>
65
71
  ['@intlify/unplugin-vue-i18n/vite', {
66
72
  // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
67
73
  // compositionOnly: false,
@@ -74,18 +80,23 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
74
80
 
75
81
  // you need to set i18n resource including paths !
76
82
  include: [ fileURLToPath(new URL('./src/i18n', import.meta.url)) ]
77
- }]<% } %><% if (scope.preset.eslint) { %><% if (scope.preset.i18n) { %>,
83
+ }]<% if (scope.preset.eslint) { %>,<% } %>
84
+
78
85
  <% } %>
86
+ <% if (scope.preset.eslint) { %>
79
87
  ['vite-plugin-checker', {
80
88
  eslint: {
81
89
  lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{js,mjs,cjs,vue}"',
82
90
  useFlatConfig: true
83
91
  }
84
- }, { server: false }]<% } %>
85
- ]<% } else { %>
92
+ }, { server: false }]
93
+ <% } %>
94
+ ]
95
+ <% } else { %>
86
96
  // vitePlugins: [
87
97
  // [ 'package-name', { ..pluginOptions.. }, { server: true, client: true } ]
88
- // ]<% } %>
98
+ // ]
99
+ <% } %>
89
100
  },
90
101
 
91
102
  // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#devserver
@@ -0,0 +1 @@
1
+ // app global css
@@ -12,14 +12,14 @@
12
12
  // to match your app's branding.
13
13
  // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
14
 
15
- $primary : #1976D2
16
- $secondary : #26A69A
17
- $accent : #9C27B0
15
+ $primary : #1976D2;
16
+ $secondary : #26A69A;
17
+ $accent : #9C27B0;
18
18
 
19
- $dark : #1D1D1D
20
- $dark-page : #121212
19
+ $dark : #1D1D1D;
20
+ $dark-page : #121212;
21
21
 
22
- $positive : #21BA45
23
- $negative : #C10015
24
- $info : #31CCEC
25
- $warning : #F2C037
22
+ $positive : #21BA45;
23
+ $negative : #C10015;
24
+ $info : #31CCEC;
25
+ $warning : #F2C037;
@@ -4,7 +4,8 @@
4
4
  import { defineConfig } from '#q-app/wrappers'
5
5
 
6
6
  export default defineConfig((ctx) => {
7
- return {<% if (scope.preset.eslint) { %>
7
+ return {
8
+ <% if (scope.preset.eslint) { %>
8
9
  eslint: {
9
10
  // fix: true,
10
11
  // include: [],
@@ -15,6 +16,7 @@ export default defineConfig((ctx) => {
15
16
  warnings: true,
16
17
  errors: true
17
18
  },
19
+
18
20
  <% } %>
19
21
  // https://v2.quasar.dev/quasar-cli-webpack/prefetch-feature
20
22
  // preFetch: true,
@@ -23,12 +25,14 @@ export default defineConfig((ctx) => {
23
25
  // --> boot files are part of "main.js"
24
26
  // https://v2.quasar.dev/quasar-cli-webpack/boot-files
25
27
  boot: [
26
- <% if (scope.preset.i18n) { %>'i18n'<% } %>
28
+ <% if (scope.preset.i18n) { %>
29
+ 'i18n'
30
+ <% } %>
27
31
  ],
28
32
 
29
33
  // https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#css
30
34
  css: [
31
- 'app.<%= scope.preset.sass ? 'sass' : 'css' %>'
35
+ 'app.<%= scope.preset.sass ? 'scss' : 'css' %>'
32
36
  ],
33
37
 
34
38
  // https://github.com/quasarframework/quasar/tree/dev/extras
@@ -0,0 +1 @@
1
+ // app global css
@@ -12,14 +12,14 @@
12
12
  // to match your app's branding.
13
13
  // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
14
 
15
- $primary : #1976D2
16
- $secondary : #26A69A
17
- $accent : #9C27B0
15
+ $primary : #1976D2;
16
+ $secondary : #26A69A;
17
+ $accent : #9C27B0;
18
18
 
19
- $dark : #1D1D1D
20
- $dark-page : #121212
19
+ $dark : #1D1D1D;
20
+ $dark-page : #121212;
21
21
 
22
- $positive : #21BA45
23
- $negative : #C10015
24
- $info : #31CCEC
25
- $warning : #F2C037
22
+ $positive : #21BA45;
23
+ $negative : #C10015;
24
+ $info : #31CCEC;
25
+ $warning : #F2C037;
@@ -1,8 +1,10 @@
1
1
  // Configuration for your app
2
2
  // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file
3
3
 
4
- import { defineConfig } from '#q-app/wrappers';<% if (scope.preset.i18n) { %>
5
- import { fileURLToPath } from 'node:url';<% } %>
4
+ import { defineConfig } from '#q-app/wrappers';
5
+ <% if (scope.preset.i18n) { %>
6
+ import { fileURLToPath } from 'node:url';
7
+ <% } %>
6
8
 
7
9
  export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* ctx */<% } %>) => {
8
10
  return {
@@ -13,12 +15,14 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
13
15
  // --> boot files are part of "main.js"
14
16
  // https://v2.quasar.dev/quasar-cli-vite/boot-files
15
17
  boot: [
16
- <% if (scope.preset.i18n) { %>'i18n'<% } %>
18
+ <% if (scope.preset.i18n) { %>
19
+ 'i18n'
20
+ <% } %>
17
21
  ],
18
22
 
19
23
  // https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#css
20
24
  css: [
21
- 'app.<%= scope.preset.sass ? 'sass' : 'css' %>'
25
+ 'app.<%= scope.preset.sass ? 'scss' : 'css' %>'
22
26
  ],
23
27
 
24
28
  // https://github.com/quasarframework/quasar/tree/dev/extras
@@ -66,8 +70,10 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
66
70
 
67
71
  // extendViteConf (viteConf) {},
68
72
  // viteVuePluginOptions: {},
69
- <% if (scope.preset.i18n || scope.preset.eslint) { %>
70
- vitePlugins: [<% if (scope.preset.i18n) { %>
73
+
74
+ <% if (scope.preset.i18n || scope.preset.eslint) { %>
75
+ vitePlugins: [
76
+ <% if (scope.preset.i18n) { %>
71
77
  ['@intlify/unplugin-vue-i18n/vite', {
72
78
  // if you want to use Vue I18n Legacy API, you need to set `compositionOnly: false`
73
79
  // compositionOnly: false,
@@ -80,19 +86,24 @@ export default defineConfig((<% if (scope.preset.i18n) { %>ctx<% } else { %>/* c
80
86
 
81
87
  // you need to set i18n resource including paths !
82
88
  include: [ fileURLToPath(new URL('./src/i18n', import.meta.url)) ]
83
- }]<% } %><% if (scope.preset.eslint) { %><% if (scope.preset.i18n) { %>,
89
+ }]<% if (scope.preset.eslint) { %>,<% } %>
90
+
84
91
  <% } %>
92
+ <% if (scope.preset.eslint) { %>
85
93
  ['vite-plugin-checker', {
86
94
  vueTsc: true,
87
95
  eslint: {
88
96
  lintCommand: 'eslint -c ./eslint.config.js "./src*/**/*.{ts,js,mjs,cjs,vue}"',
89
97
  useFlatConfig: true
90
98
  }
91
- }, { server: false }]<% } %>
92
- ]<% } else { %>
99
+ }, { server: false }]
100
+ <% } %>
101
+ ]
102
+ <% } else { %>
93
103
  // vitePlugins: [
94
104
  // [ 'package-name', { ..pluginOptions.. }, { server: true, client: true } ]
95
- // ]<% } %>
105
+ // ]
106
+ <% } %>
96
107
  },
97
108
 
98
109
  // Full list of options: https://v2.quasar.dev/quasar-cli-vite/quasar-config-file#devserver
@@ -0,0 +1 @@
1
+ // app global css
@@ -12,14 +12,14 @@
12
12
  // to match your app's branding.
13
13
  // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
14
 
15
- $primary : #1976D2
16
- $secondary : #26A69A
17
- $accent : #9C27B0
15
+ $primary : #1976D2;
16
+ $secondary : #26A69A;
17
+ $accent : #9C27B0;
18
18
 
19
- $dark : #1D1D1D
20
- $dark-page : #121212
19
+ $dark : #1D1D1D;
20
+ $dark-page : #121212;
21
21
 
22
- $positive : #21BA45
23
- $negative : #C10015
24
- $info : #31CCEC
25
- $warning : #F2C037
22
+ $positive : #21BA45;
23
+ $negative : #C10015;
24
+ $info : #31CCEC;
25
+ $warning : #F2C037;
@@ -8,7 +8,8 @@ import { defineConfig } from '#q-app/wrappers';
8
8
 
9
9
  export default defineConfig((/* ctx */) => {
10
10
  return {
11
- <% if (scope.preset.eslint) { %>eslint: {
11
+ <% if (scope.preset.eslint) { %>
12
+ eslint: {
12
13
  // fix: true,
13
14
  // include: [],
14
15
  // exclude: [],
@@ -17,7 +18,9 @@ export default defineConfig((/* ctx */) => {
17
18
  // rawWebpackEslintPluginOptions: {},
18
19
  warnings: true,
19
20
  errors: true
20
- },<% } %>
21
+ },
22
+
23
+ <% } %>
21
24
  // https://v2.quasar.dev/quasar-cli-webpack/prefetch-feature
22
25
  // preFetch: true,
23
26
 
@@ -25,12 +28,14 @@ export default defineConfig((/* ctx */) => {
25
28
  // --> boot files are part of "main.js"
26
29
  // https://v2.quasar.dev/quasar-cli-webpack/boot-files
27
30
  boot: [
28
- <% if (scope.preset.i18n) { %>'i18n'<% } %>
31
+ <% if (scope.preset.i18n) { %>
32
+ 'i18n'
33
+ <% } %>
29
34
  ],
30
35
 
31
36
  // https://v2.quasar.dev/quasar-cli-webpack/quasar-config-file#css
32
37
  css: [
33
- 'app.<%= scope.preset.sass ? 'sass' : 'css' %>'
38
+ 'app.<%= scope.preset.sass ? 'scss' : 'css' %>'
34
39
  ],
35
40
 
36
41
  // https://github.com/quasarframework/quasar/tree/dev/extras
@@ -0,0 +1 @@
1
+ // app global css
@@ -12,14 +12,14 @@
12
12
  // to match your app's branding.
13
13
  // Tip: Use the "Theme Builder" on Quasar's documentation website.
14
14
 
15
- $primary : #1976D2
16
- $secondary : #26A69A
17
- $accent : #9C27B0
15
+ $primary : #1976D2;
16
+ $secondary : #26A69A;
17
+ $accent : #9C27B0;
18
18
 
19
- $dark : #1D1D1D
20
- $dark-page : #121212
19
+ $dark : #1D1D1D;
20
+ $dark-page : #121212;
21
21
 
22
- $positive : #21BA45
23
- $negative : #C10015
24
- $info : #31CCEC
25
- $warning : #F2C037
22
+ $positive : #21BA45;
23
+ $negative : #C10015;
24
+ $info : #31CCEC;
25
+ $warning : #F2C037;
@@ -1 +0,0 @@
1
- // app global css in Sass form
@@ -1 +0,0 @@
1
- // app global css in Sass form
@@ -1 +0,0 @@
1
- // app global css in Sass form
@@ -1 +0,0 @@
1
- // app global css in Sass form