create-vuetify 2.0.0 → 2.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 +3 -1
- package/template/javascript/default/README.md +2 -0
- package/template/javascript/default/package.json +1 -1
- package/template/javascript/essentials/package.json +1 -0
- package/template/javascript/essentials/vite.config.mjs +15 -4
- package/template/typescript/default/README.md +2 -0
- package/template/typescript/default/package.json +1 -1
- package/template/typescript/essentials/package.json +1 -0
- package/template/typescript/essentials/vite.config.mts +16 -4
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuetify",
|
|
3
|
-
"version": "2.
|
|
3
|
+
"version": "2.1.1",
|
|
4
4
|
"main": "dist/output.cjs",
|
|
5
5
|
"author": "Elijah Kotyluk <elijah@elijahkotyluk.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -32,6 +32,7 @@
|
|
|
32
32
|
"validate-npm-package-name": "^4.0.0"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
+
"@release-it/conventional-changelog": "^8.0.1",
|
|
35
36
|
"@types/minimist": "^1.2.2",
|
|
36
37
|
"@types/prompts": "^2.0.14",
|
|
37
38
|
"@types/validate-npm-package-name": "^4.0.0",
|
|
@@ -45,6 +46,7 @@
|
|
|
45
46
|
"eslint-plugin-lodash-template": "^0.21.0",
|
|
46
47
|
"husky": "^8.0.1",
|
|
47
48
|
"lint-staged": "^13.0.3",
|
|
49
|
+
"release-it": "^17.0.3",
|
|
48
50
|
"typescript": "^4.7.4"
|
|
49
51
|
}
|
|
50
52
|
}
|
|
@@ -47,6 +47,8 @@ yarn dev
|
|
|
47
47
|
|
|
48
48
|
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
49
49
|
|
|
50
|
+
> Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
|
|
51
|
+
|
|
50
52
|
### Building for Production
|
|
51
53
|
|
|
52
54
|
To build your project for production, use:
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Plugins
|
|
2
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
2
3
|
import Components from 'unplugin-vue-components/vite'
|
|
3
|
-
import
|
|
4
|
-
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
5
|
-
import ViteFonts from 'unplugin-fonts/vite'
|
|
4
|
+
import Fonts from 'unplugin-fonts/vite'
|
|
6
5
|
import Layouts from 'vite-plugin-vue-layouts'
|
|
6
|
+
import Vue from '@vitejs/plugin-vue'
|
|
7
7
|
import VueRouter from 'unplugin-vue-router/vite'
|
|
8
|
+
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
8
9
|
|
|
9
10
|
// Utilities
|
|
10
11
|
import { defineConfig } from 'vite'
|
|
@@ -26,7 +27,7 @@ export default defineConfig({
|
|
|
26
27
|
},
|
|
27
28
|
}),
|
|
28
29
|
Components(),
|
|
29
|
-
|
|
30
|
+
Fonts({
|
|
30
31
|
google: {
|
|
31
32
|
families: [{
|
|
32
33
|
name: 'Roboto',
|
|
@@ -34,6 +35,16 @@ export default defineConfig({
|
|
|
34
35
|
}],
|
|
35
36
|
},
|
|
36
37
|
}),
|
|
38
|
+
AutoImport({
|
|
39
|
+
imports: [
|
|
40
|
+
'vue',
|
|
41
|
+
'vue-router',
|
|
42
|
+
],
|
|
43
|
+
eslintrc: {
|
|
44
|
+
enabled: true,
|
|
45
|
+
},
|
|
46
|
+
vueTemplate: true,
|
|
47
|
+
}),
|
|
37
48
|
],
|
|
38
49
|
define: { 'process.env': {} },
|
|
39
50
|
resolve: {
|
|
@@ -49,6 +49,8 @@ yarn dev
|
|
|
49
49
|
|
|
50
50
|
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
51
51
|
|
|
52
|
+
> Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
|
|
53
|
+
|
|
52
54
|
### Building for Production
|
|
53
55
|
|
|
54
56
|
To build your project for production, use:
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
// Plugins
|
|
2
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
2
3
|
import Components from 'unplugin-vue-components/vite'
|
|
3
|
-
import
|
|
4
|
-
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
5
|
-
import ViteFonts from 'unplugin-fonts/vite'
|
|
4
|
+
import Fonts from 'unplugin-fonts/vite'
|
|
6
5
|
import Layouts from 'vite-plugin-vue-layouts'
|
|
6
|
+
import Vue from '@vitejs/plugin-vue'
|
|
7
7
|
import VueRouter from 'unplugin-vue-router/vite'
|
|
8
|
+
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
8
9
|
|
|
9
10
|
// Utilities
|
|
10
11
|
import { defineConfig } from 'vite'
|
|
@@ -26,7 +27,7 @@ export default defineConfig({
|
|
|
26
27
|
},
|
|
27
28
|
}),
|
|
28
29
|
Components(),
|
|
29
|
-
|
|
30
|
+
Fonts({
|
|
30
31
|
google: {
|
|
31
32
|
families: [ {
|
|
32
33
|
name: 'Roboto',
|
|
@@ -34,6 +35,17 @@ export default defineConfig({
|
|
|
34
35
|
}],
|
|
35
36
|
},
|
|
36
37
|
}),
|
|
38
|
+
AutoImport({
|
|
39
|
+
imports: [
|
|
40
|
+
'vue',
|
|
41
|
+
'vue-router',
|
|
42
|
+
],
|
|
43
|
+
dts: true,
|
|
44
|
+
eslintrc: {
|
|
45
|
+
enabled: true,
|
|
46
|
+
},
|
|
47
|
+
vueTemplate: true,
|
|
48
|
+
}),
|
|
37
49
|
],
|
|
38
50
|
define: { 'process.env': {} },
|
|
39
51
|
resolve: {
|