create-vuetify 1.1.1 → 2.1.0
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/README.md +75 -38
- package/dist/output.cjs +10 -49
- package/package.json +4 -2
- package/template/javascript/base/package.json +10 -18
- package/template/javascript/base/src/App.vue +5 -1
- package/template/javascript/base/src/pages/README.md +5 -0
- package/template/javascript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
- package/template/javascript/base/src/plugins/index.js +1 -1
- package/template/javascript/base/src/router/index.js +9 -19
- package/template/javascript/base/src/styles/README.md +3 -0
- package/template/javascript/{essentials/vite.config.js → base/vite.config.mjs} +8 -4
- package/template/javascript/default/README.md +60 -34
- package/template/javascript/default/_gitignore +0 -1
- package/template/javascript/default/jsconfig.json +1 -0
- package/template/javascript/default/package.json +9 -6
- package/template/javascript/default/src/App.vue +1 -1
- package/template/javascript/default/src/components/README.md +35 -0
- package/template/javascript/default/src/plugins/README.md +3 -0
- package/template/javascript/default/src/plugins/vuetify.js +1 -10
- package/template/javascript/default/{vite.config.js → vite.config.mjs} +6 -6
- package/template/javascript/essentials/package.json +3 -24
- package/template/javascript/essentials/src/layouts/README.md +5 -0
- package/template/javascript/essentials/src/layouts/default.vue +12 -0
- package/template/javascript/essentials/src/plugins/index.js +2 -2
- package/template/javascript/essentials/src/router/index.js +7 -19
- package/template/javascript/essentials/src/store/README.md +5 -0
- package/template/javascript/essentials/vite.config.mjs +67 -0
- package/template/typescript/base/_eslintrc.js +6 -0
- package/template/typescript/base/package.json +11 -23
- package/template/typescript/base/src/App.vue +5 -1
- package/template/typescript/base/src/pages/README.md +5 -0
- package/template/typescript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
- package/template/typescript/base/src/router/index.ts +7 -19
- package/template/typescript/base/src/styles/README.md +3 -0
- package/template/typescript/base/{vite.config.ts → vite.config.mts} +21 -11
- package/template/typescript/default/README.md +62 -34
- package/template/typescript/default/_gitignore +0 -1
- package/template/typescript/default/index.html +1 -1
- package/template/typescript/default/package.json +13 -10
- package/template/typescript/default/src/App.vue +1 -1
- package/template/typescript/default/src/components/README.md +35 -0
- package/template/typescript/default/src/plugins/README.md +3 -0
- package/template/typescript/default/src/plugins/vuetify.ts +1 -10
- package/template/typescript/default/tsconfig.node.json +1 -1
- package/template/{javascript/base/vite.config.js → typescript/default/vite.config.mts} +8 -11
- package/template/typescript/essentials/package.json +3 -29
- package/template/typescript/essentials/src/layouts/README.md +5 -0
- package/template/typescript/essentials/src/layouts/default.vue +12 -0
- package/template/typescript/essentials/src/router/index.ts +9 -19
- package/template/typescript/essentials/src/store/README.md +5 -0
- package/template/typescript/essentials/vite.config.mts +68 -0
- package/template/javascript/base/README.md +0 -69
- package/template/javascript/base/_browserslistrc +0 -4
- package/template/javascript/base/_editorconfig +0 -5
- package/template/javascript/base/_gitignore +0 -22
- package/template/javascript/base/index.html +0 -16
- package/template/javascript/base/jsconfig.json +0 -19
- package/template/javascript/base/public/favicon.ico +0 -0
- package/template/javascript/base/src/assets/logo.png +0 -0
- package/template/javascript/base/src/assets/logo.svg +0 -6
- package/template/javascript/base/src/components/HelloWorld.vue +0 -75
- package/template/javascript/base/src/layouts/default/AppBar.vue +0 -13
- package/template/javascript/base/src/layouts/default/Default.vue +0 -12
- package/template/javascript/base/src/layouts/default/View.vue +0 -9
- package/template/javascript/base/src/main.js +0 -20
- package/template/javascript/base/src/plugins/vuetify.js +0 -26
- package/template/javascript/base/src/views/Home.vue +0 -7
- package/template/javascript/custom/eslint/_eslintrc.js +0 -10
- package/template/javascript/custom/eslint/package.json +0 -9
- package/template/javascript/custom/router/package.json +0 -5
- package/template/javascript/custom/router/src/App.vue +0 -7
- package/template/javascript/custom/router/src/layouts/default/Default.vue +0 -9
- package/template/javascript/custom/router/src/layouts/default/View.vue +0 -9
- package/template/javascript/custom/router/src/plugins/index.js +0 -15
- package/template/javascript/custom/router/src/router/index.js +0 -26
- package/template/javascript/custom/router/src/views/Home.vue +0 -7
- package/template/javascript/custom/router-pinia/src/plugins/index.js +0 -17
- package/template/javascript/custom/store/package.json +0 -5
- package/template/javascript/custom/store/src/plugins/index.js +0 -15
- package/template/javascript/custom/store/src/store/app.js +0 -8
- package/template/javascript/custom/store/src/store/index.js +0 -4
- package/template/javascript/essentials/README.md +0 -69
- package/template/javascript/essentials/_browserslistrc +0 -4
- package/template/javascript/essentials/_editorconfig +0 -5
- package/template/javascript/essentials/_eslintrc.js +0 -10
- package/template/javascript/essentials/_gitignore +0 -22
- package/template/javascript/essentials/index.html +0 -16
- package/template/javascript/essentials/jsconfig.json +0 -19
- package/template/javascript/essentials/public/favicon.ico +0 -0
- package/template/javascript/essentials/src/assets/logo.png +0 -0
- package/template/javascript/essentials/src/assets/logo.svg +0 -6
- package/template/javascript/essentials/src/components/HelloWorld.vue +0 -75
- package/template/javascript/essentials/src/layouts/default/Default.vue +0 -12
- package/template/javascript/essentials/src/main.js +0 -20
- package/template/javascript/essentials/src/plugins/vuetify.js +0 -26
- package/template/javascript/essentials/src/styles/settings.scss +0 -10
- package/template/javascript/essentials/src/views/Home.vue +0 -7
- package/template/typescript/base/README.md +0 -69
- package/template/typescript/base/_browserslistrc +0 -4
- package/template/typescript/base/_editorconfig +0 -5
- package/template/typescript/base/_gitignore +0 -22
- package/template/typescript/base/index.html +0 -16
- package/template/typescript/base/public/favicon.ico +0 -0
- package/template/typescript/base/src/assets/logo.png +0 -0
- package/template/typescript/base/src/assets/logo.svg +0 -6
- package/template/typescript/base/src/components/HelloWorld.vue +0 -75
- package/template/typescript/base/src/layouts/default/AppBar.vue +0 -13
- package/template/typescript/base/src/layouts/default/Default.vue +0 -12
- package/template/typescript/base/src/layouts/default/View.vue +0 -9
- package/template/typescript/base/src/main.ts +0 -20
- package/template/typescript/base/src/plugins/vuetify.ts +0 -26
- package/template/typescript/base/src/views/Home.vue +0 -7
- package/template/typescript/base/src/vite-env.d.ts +0 -7
- package/template/typescript/base/tsconfig.json +0 -25
- package/template/typescript/base/tsconfig.node.json +0 -9
- package/template/typescript/custom/eslint/_eslintrc.js +0 -14
- package/template/typescript/custom/eslint/package.json +0 -10
- package/template/typescript/custom/router/package.json +0 -5
- package/template/typescript/custom/router/src/layouts/default/Default.vue +0 -9
- package/template/typescript/custom/router/src/layouts/default/View.vue +0 -9
- package/template/typescript/custom/router/src/plugins/index.ts +0 -18
- package/template/typescript/custom/router/src/router/index.ts +0 -26
- package/template/typescript/custom/router/src/views/Home.vue +0 -7
- package/template/typescript/custom/router-pinia/src/plugins/index.ts +0 -20
- package/template/typescript/custom/store/package.json +0 -5
- package/template/typescript/custom/store/src/plugins/index.ts +0 -18
- package/template/typescript/custom/store/src/store/app.ts +0 -8
- package/template/typescript/custom/store/src/store/index.ts +0 -4
- package/template/typescript/default/vite.config.ts +0 -41
- package/template/typescript/essentials/README.md +0 -69
- package/template/typescript/essentials/_browserslistrc +0 -4
- package/template/typescript/essentials/_editorconfig +0 -5
- package/template/typescript/essentials/_eslintrc.js +0 -14
- package/template/typescript/essentials/_gitignore +0 -22
- package/template/typescript/essentials/index.html +0 -16
- package/template/typescript/essentials/public/favicon.ico +0 -0
- package/template/typescript/essentials/src/assets/logo.png +0 -0
- package/template/typescript/essentials/src/assets/logo.svg +0 -6
- package/template/typescript/essentials/src/components/HelloWorld.vue +0 -75
- package/template/typescript/essentials/src/layouts/default/Default.vue +0 -12
- package/template/typescript/essentials/src/main.ts +0 -20
- package/template/typescript/essentials/src/plugins/vuetify.ts +0 -26
- package/template/typescript/essentials/src/styles/settings.scss +0 -10
- package/template/typescript/essentials/src/views/Home.vue +0 -7
- package/template/typescript/essentials/src/vite-env.d.ts +0 -7
- package/template/typescript/essentials/tsconfig.json +0 -31
- package/template/typescript/essentials/tsconfig.node.json +0 -9
- package/template/typescript/essentials/vite.config.ts +0 -44
|
@@ -1,28 +1,7 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.0",
|
|
3
|
-
"private": true,
|
|
4
|
-
"scripts": {
|
|
5
|
-
"dev": "vite",
|
|
6
|
-
"build": "vite build",
|
|
7
|
-
"preview": "vite preview",
|
|
8
|
-
"lint": "eslint . --fix --ignore-path .gitignore"
|
|
9
|
-
},
|
|
10
|
-
"dependencies": {
|
|
11
|
-
"@mdi/font": "7.0.96",
|
|
12
|
-
"core-js": "^3.29.0",
|
|
13
|
-
"pinia": "^2.0.0",
|
|
14
|
-
"roboto-fontface": "*",
|
|
15
|
-
"vue": "^3.2.0",
|
|
16
|
-
"vue-router": "^4.0.0",
|
|
17
|
-
"vuetify": "^3.0.0"
|
|
18
|
-
},
|
|
19
2
|
"devDependencies": {
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"sass": "^1.60.0",
|
|
24
|
-
"vite": "^4.2.0",
|
|
25
|
-
"vite-plugin-vuetify": "^1.0.0",
|
|
26
|
-
"unplugin-fonts": "^1.0.3"
|
|
3
|
+
"pinia" : "^2.1.0",
|
|
4
|
+
"unplugin-auto-import": "^0.17.3",
|
|
5
|
+
"vite-plugin-vue-layouts": "^0.10.0"
|
|
27
6
|
}
|
|
28
7
|
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
# Layouts
|
|
2
|
+
|
|
3
|
+
Layouts are reusable components that wrap around pages. They are used to provide a consistent look and feel across multiple pages.
|
|
4
|
+
|
|
5
|
+
Full documentation for this feature can be found in the Official [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts) repository.
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* router/index.ts
|
|
3
|
+
*
|
|
4
|
+
* Automatic routes for `./src/pages/*.vue`
|
|
5
|
+
*/
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
path: '/',
|
|
7
|
-
component: () => import('@/layouts/default/Default.vue'),
|
|
8
|
-
children: [
|
|
9
|
-
{
|
|
10
|
-
path: '',
|
|
11
|
-
name: 'Home',
|
|
12
|
-
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
|
-
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import('@/views/Home.vue'),
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
]
|
|
7
|
+
// Composables
|
|
8
|
+
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
20
9
|
|
|
21
10
|
const router = createRouter({
|
|
22
11
|
history: createWebHistory(process.env.BASE_URL),
|
|
23
|
-
routes,
|
|
24
12
|
})
|
|
25
13
|
|
|
26
14
|
export default router
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
// Plugins
|
|
2
|
+
import AutoImport from 'unplugin-auto-import/vite'
|
|
3
|
+
import Components from 'unplugin-vue-components/vite'
|
|
4
|
+
import Fonts from 'unplugin-fonts/vite'
|
|
5
|
+
import Layouts from 'vite-plugin-vue-layouts'
|
|
6
|
+
import Vue from '@vitejs/plugin-vue'
|
|
7
|
+
import VueRouter from 'unplugin-vue-router/vite'
|
|
8
|
+
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
9
|
+
|
|
10
|
+
// Utilities
|
|
11
|
+
import { defineConfig } from 'vite'
|
|
12
|
+
import { fileURLToPath, URL } from 'node:url'
|
|
13
|
+
|
|
14
|
+
// https://vitejs.dev/config/
|
|
15
|
+
export default defineConfig({
|
|
16
|
+
plugins: [
|
|
17
|
+
VueRouter(),
|
|
18
|
+
Layouts(),
|
|
19
|
+
Vue({
|
|
20
|
+
template: { transformAssetUrls }
|
|
21
|
+
}),
|
|
22
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
23
|
+
Vuetify({
|
|
24
|
+
autoImport: true,
|
|
25
|
+
styles: {
|
|
26
|
+
configFile: 'src/styles/settings.scss',
|
|
27
|
+
},
|
|
28
|
+
}),
|
|
29
|
+
Components(),
|
|
30
|
+
Fonts({
|
|
31
|
+
google: {
|
|
32
|
+
families: [{
|
|
33
|
+
name: 'Roboto',
|
|
34
|
+
styles: 'wght@100;300;400;500;700;900',
|
|
35
|
+
}],
|
|
36
|
+
},
|
|
37
|
+
}),
|
|
38
|
+
AutoImport({
|
|
39
|
+
imports: [
|
|
40
|
+
'vue',
|
|
41
|
+
'vue-router',
|
|
42
|
+
],
|
|
43
|
+
eslintrc: {
|
|
44
|
+
enabled: true,
|
|
45
|
+
},
|
|
46
|
+
vueTemplate: true,
|
|
47
|
+
}),
|
|
48
|
+
],
|
|
49
|
+
define: { 'process.env': {} },
|
|
50
|
+
resolve: {
|
|
51
|
+
alias: {
|
|
52
|
+
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
53
|
+
},
|
|
54
|
+
extensions: [
|
|
55
|
+
'.js',
|
|
56
|
+
'.json',
|
|
57
|
+
'.jsx',
|
|
58
|
+
'.mjs',
|
|
59
|
+
'.ts',
|
|
60
|
+
'.tsx',
|
|
61
|
+
'.vue',
|
|
62
|
+
],
|
|
63
|
+
},
|
|
64
|
+
server: {
|
|
65
|
+
port: 3000,
|
|
66
|
+
},
|
|
67
|
+
})
|
|
@@ -1,32 +1,20 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.0",
|
|
3
|
-
"private": true,
|
|
4
2
|
"scripts": {
|
|
5
|
-
"dev": "vite",
|
|
6
|
-
"build": "vue-tsc --noEmit && vite build",
|
|
7
|
-
"preview": "vite preview",
|
|
8
3
|
"lint": "eslint . --fix --ignore-path .gitignore"
|
|
9
4
|
},
|
|
10
5
|
"dependencies": {
|
|
11
|
-
"
|
|
12
|
-
"core-js": "^3.29.0",
|
|
13
|
-
"roboto-fontface": "*",
|
|
14
|
-
"vue": "^3.2.0",
|
|
15
|
-
"vue-router": "^4.0.0",
|
|
16
|
-
"vuetify": "^3.0.0"
|
|
6
|
+
"core-js": "^3.34.0"
|
|
17
7
|
},
|
|
18
8
|
"devDependencies": {
|
|
19
|
-
"@
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
23
|
-
"eslint": "^
|
|
24
|
-
"eslint-plugin-
|
|
25
|
-
"
|
|
26
|
-
"
|
|
27
|
-
"
|
|
28
|
-
"
|
|
29
|
-
"vue-tsc": "^1.2.0",
|
|
30
|
-
"unplugin-fonts": "^1.0.3"
|
|
9
|
+
"@vue/eslint-config-typescript": "^12.0.0",
|
|
10
|
+
"eslint": "^8.56.0",
|
|
11
|
+
"eslint-config-standard": "^17.1.0",
|
|
12
|
+
"eslint-plugin-import": "^2.29.0",
|
|
13
|
+
"eslint-plugin-n": "^16.4.0",
|
|
14
|
+
"eslint-plugin-node": "^11.1.0",
|
|
15
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
16
|
+
"eslint-plugin-vue": "^9.19.0",
|
|
17
|
+
"vue-router": "^4.2.0",
|
|
18
|
+
"unplugin-vue-router": "^0.7.0"
|
|
31
19
|
}
|
|
32
20
|
}
|
|
@@ -1,26 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* router/index.ts
|
|
3
|
+
*
|
|
4
|
+
* Automatic routes for `./src/pages/*.vue`
|
|
5
|
+
*/
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
path: '/',
|
|
7
|
-
component: () => import('@/layouts/default/Default.vue'),
|
|
8
|
-
children: [
|
|
9
|
-
{
|
|
10
|
-
path: '',
|
|
11
|
-
name: 'Home',
|
|
12
|
-
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
|
-
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import('@/views/Home.vue'),
|
|
16
|
-
},
|
|
17
|
-
],
|
|
18
|
-
},
|
|
19
|
-
]
|
|
7
|
+
// Composables
|
|
8
|
+
import { createRouter, createWebHistory } from 'vue-router/auto'
|
|
20
9
|
|
|
21
10
|
const router = createRouter({
|
|
22
11
|
history: createWebHistory(process.env.BASE_URL),
|
|
23
|
-
routes,
|
|
24
12
|
})
|
|
25
13
|
|
|
26
14
|
export default router
|
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
// Plugins
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import Components from 'unplugin-vue-components/vite'
|
|
3
|
+
import Vue from '@vitejs/plugin-vue'
|
|
4
|
+
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
4
5
|
import ViteFonts from 'unplugin-fonts/vite'
|
|
6
|
+
import VueRouter from 'unplugin-vue-router/vite'
|
|
5
7
|
|
|
6
8
|
// Utilities
|
|
7
9
|
import { defineConfig } from 'vite'
|
|
@@ -10,24 +12,24 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
10
12
|
// https://vitejs.dev/config/
|
|
11
13
|
export default defineConfig({
|
|
12
14
|
plugins: [
|
|
13
|
-
|
|
15
|
+
VueRouter(),
|
|
16
|
+
Vue({
|
|
14
17
|
template: { transformAssetUrls },
|
|
15
18
|
}),
|
|
16
19
|
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
|
-
|
|
20
|
+
Vuetify({
|
|
18
21
|
autoImport: true,
|
|
19
22
|
styles: {
|
|
20
23
|
configFile: 'src/styles/settings.scss',
|
|
21
24
|
},
|
|
22
25
|
}),
|
|
26
|
+
Components(),
|
|
23
27
|
ViteFonts({
|
|
24
28
|
google: {
|
|
25
|
-
families: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
},
|
|
30
|
-
],
|
|
29
|
+
families: [ {
|
|
30
|
+
name: 'Roboto',
|
|
31
|
+
styles: 'wght@100;300;400;500;700;900',
|
|
32
|
+
}],
|
|
31
33
|
},
|
|
32
34
|
}),
|
|
33
35
|
],
|
|
@@ -36,7 +38,15 @@ export default defineConfig({
|
|
|
36
38
|
alias: {
|
|
37
39
|
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
38
40
|
},
|
|
39
|
-
extensions: [
|
|
41
|
+
extensions: [
|
|
42
|
+
'.js',
|
|
43
|
+
'.json',
|
|
44
|
+
'.jsx',
|
|
45
|
+
'.mjs',
|
|
46
|
+
'.ts',
|
|
47
|
+
'.tsx',
|
|
48
|
+
'.vue',
|
|
49
|
+
],
|
|
40
50
|
},
|
|
41
51
|
server: {
|
|
42
52
|
port: 3000,
|
|
@@ -1,53 +1,81 @@
|
|
|
1
|
-
#
|
|
1
|
+
# Vuetify (Default)
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
This is the official scaffolding tool for Vuetify, designed to give you a head start in building your new Vuetify application. It sets up a base template with all the necessary configurations and standard directory structure, enabling you to begin development without the hassle of setting up the project from scratch.
|
|
4
4
|
|
|
5
|
-
|
|
6
|
-
# yarn
|
|
7
|
-
yarn
|
|
5
|
+
## ❗️ Important Links
|
|
8
6
|
|
|
9
|
-
|
|
10
|
-
|
|
7
|
+
- 📄 [Docs](https://vuetifyjs.com/)
|
|
8
|
+
- 🚨 [Issues](https://issues.vuetifyjs.com/)
|
|
9
|
+
- 🏬 [Store](https://store.vuetifyjs.com/)
|
|
10
|
+
- 🎮 [Playground](https://play.vuetifyjs.com/)
|
|
11
|
+
- 💬 [Discord](https://community.vuetifyjs.com)
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
pnpm install
|
|
13
|
+
## 💿 Install
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
bun install
|
|
17
|
-
```
|
|
15
|
+
Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
|
|
18
16
|
|
|
19
|
-
|
|
17
|
+
| Package Manager | Command |
|
|
18
|
+
|---------------------------------------------------------------|----------------|
|
|
19
|
+
| [yarn](https://yarnpkg.com/getting-started) | `yarn install` |
|
|
20
|
+
| [npm](https://docs.npmjs.com/cli/v7/commands/npm-install) | `npm install` |
|
|
21
|
+
| [pnpm](https://pnpm.io/installation) | `pnpm install` |
|
|
22
|
+
| [bun](https://bun.sh/#getting-started) | `bun install` |
|
|
20
23
|
|
|
21
|
-
|
|
22
|
-
# yarn
|
|
23
|
-
yarn dev
|
|
24
|
+
After completing the installation, your environment is ready for Vuetify development.
|
|
24
25
|
|
|
25
|
-
|
|
26
|
-
npm run dev
|
|
26
|
+
## ✨ Features
|
|
27
27
|
|
|
28
|
-
|
|
29
|
-
|
|
28
|
+
- 🖼️ **Optimized Front-End Stack**: Leverage the latest Vue 3 and Vuetify 3 for a modern, reactive UI development experience. [Vue 3](https://v3.vuejs.org/) | [Vuetify 3](https://vuetifyjs.com/en/)
|
|
29
|
+
- 🗃️ **State Management**: Integrated with [Pinia](https://pinia.vuejs.org/), the intuitive, modular state management solution for Vue.
|
|
30
|
+
- 🚦 **Routing and Layouts**: Utilizes Vue Router for SPA navigation and vite-plugin-vue-layouts for organizing Vue file layouts. [Vue Router](https://router.vuejs.org/) | [vite-plugin-vue-layouts](https://github.com/JohnCampionJr/vite-plugin-vue-layouts)
|
|
31
|
+
- 💻 **Enhanced Development Experience**: Benefit from TypeScript's static type checking and the ESLint plugin suite for Vue, ensuring code quality and consistency. [TypeScript](https://www.typescriptlang.org/) | [ESLint Plugin Vue](https://eslint.vuejs.org/)
|
|
32
|
+
- ⚡ **Next-Gen Tooling**: Powered by Vite, experience fast cold starts and instant HMR (Hot Module Replacement). [Vite](https://vitejs.dev/)
|
|
33
|
+
- 🧩 **Automated Component Importing**: Streamline your workflow with unplugin-vue-components, automatically importing components as you use them. [unplugin-vue-components](https://github.com/antfu/unplugin-vue-components)
|
|
34
|
+
- 🛠️ **Strongly-Typed Vue**: Use vue-tsc for type-checking your Vue components, and enjoy a robust development experience. [vue-tsc](https://github.com/johnsoncodehk/volar/tree/master/packages/vue-tsc)
|
|
30
35
|
|
|
31
|
-
|
|
32
|
-
bun run dev
|
|
33
|
-
```
|
|
36
|
+
These features are curated to provide a seamless development experience from setup to deployment, ensuring that your Vuetify application is both powerful and maintainable.
|
|
34
37
|
|
|
35
|
-
|
|
38
|
+
## 💡 Usage
|
|
36
39
|
|
|
40
|
+
This section covers how to start the development server and build your project for production.
|
|
41
|
+
|
|
42
|
+
### Starting the Development Server
|
|
43
|
+
|
|
44
|
+
To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000):
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
yarn dev
|
|
37
48
|
```
|
|
38
|
-
# yarn
|
|
39
|
-
yarn build
|
|
40
49
|
|
|
41
|
-
|
|
42
|
-
|
|
50
|
+
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
51
|
+
|
|
52
|
+
> NODE_OPTIONS='--no-warnings' is added 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
|
+
|
|
54
|
+
### Building for Production
|
|
43
55
|
|
|
44
|
-
|
|
45
|
-
pnpm build
|
|
56
|
+
To build your project for production, use:
|
|
46
57
|
|
|
47
|
-
|
|
48
|
-
|
|
58
|
+
```bash
|
|
59
|
+
yarn build
|
|
49
60
|
```
|
|
50
61
|
|
|
51
|
-
|
|
62
|
+
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
63
|
+
|
|
64
|
+
Once the build process is completed, your application will be ready for deployment in a production environment.
|
|
65
|
+
|
|
66
|
+
## 💪 Support Vuetify Development
|
|
67
|
+
|
|
68
|
+
This project is built with [Vuetify](https://vuetifyjs.com/en/), a UI Library with a comprehensive collection of Vue components. Vuetify is an MIT licensed Open Source project that has been made possible due to the generous contributions by our [sponsors and backers](https://vuetifyjs.com/introduction/sponsors-and-backers/). If you are interested in supporting this project, please consider:
|
|
69
|
+
|
|
70
|
+
- [Requesting Enterprise Support](https://support.vuetifyjs.com/)
|
|
71
|
+
- [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
|
|
72
|
+
- [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
|
|
73
|
+
- [Supporting the team on Open Collective](https://opencollective.com/vuetify)
|
|
74
|
+
- [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
|
|
75
|
+
- [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
|
|
76
|
+
- [Making a one-time donation with Paypal](https://paypal.me/vuetify)
|
|
77
|
+
|
|
78
|
+
## 📑 License
|
|
79
|
+
[MIT](http://opensource.org/licenses/MIT)
|
|
52
80
|
|
|
53
|
-
|
|
81
|
+
Copyright (c) 2016-present Vuetify, LLC
|
|
@@ -1,24 +1,27 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.0.0",
|
|
3
3
|
"scripts": {
|
|
4
|
-
"dev": "vite",
|
|
4
|
+
"dev": "cross-env NODE_OPTIONS='--no-warnings' vite",
|
|
5
5
|
"build": "vue-tsc --noEmit && vite build",
|
|
6
6
|
"preview": "vite preview"
|
|
7
7
|
},
|
|
8
8
|
"dependencies": {
|
|
9
9
|
"@mdi/font": "7.0.96",
|
|
10
10
|
"roboto-fontface": "*",
|
|
11
|
-
"vue": "^3.
|
|
11
|
+
"vue": "^3.3.0",
|
|
12
12
|
"vuetify": "^3.0.0"
|
|
13
13
|
},
|
|
14
14
|
"devDependencies": {
|
|
15
|
-
"@babel/types": "^7.
|
|
16
|
-
"@types/node": "^
|
|
17
|
-
"@vitejs/plugin-vue": "^4.
|
|
18
|
-
"
|
|
19
|
-
"
|
|
20
|
-
"
|
|
21
|
-
"
|
|
22
|
-
"
|
|
15
|
+
"@babel/types": "^7.23.0",
|
|
16
|
+
"@types/node": "^20.10.0",
|
|
17
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
18
|
+
"cross-env": "^7.0.3",
|
|
19
|
+
"sass": "^1.69.0",
|
|
20
|
+
"typescript": "^5.3.0",
|
|
21
|
+
"vite": "^5.0.0",
|
|
22
|
+
"vite-plugin-vuetify": "^2.0.0",
|
|
23
|
+
"vue-tsc": "^1.8.0",
|
|
24
|
+
"unplugin-vue-components": "^0.26.0",
|
|
25
|
+
"unplugin-fonts": "^1.1.0"
|
|
23
26
|
}
|
|
24
27
|
}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
# Components
|
|
2
|
+
|
|
3
|
+
Vue template files in this folder are automatically imported.
|
|
4
|
+
|
|
5
|
+
## 🚀 Usage
|
|
6
|
+
|
|
7
|
+
Importing is handled by [unplugin-vue-components](https://github.com/unplugin/unplugin-vue-components). This plugin automatically imports `.vue` files created in the `src/components` directory, and registers them as global components. This means that you can use any component in your application without having to manually import it.
|
|
8
|
+
|
|
9
|
+
The following example assumes a component located at `src/components/MyComponent.vue`:
|
|
10
|
+
|
|
11
|
+
```vue
|
|
12
|
+
<template>
|
|
13
|
+
<div>
|
|
14
|
+
<MyComponent />
|
|
15
|
+
</div>
|
|
16
|
+
</template>
|
|
17
|
+
|
|
18
|
+
<script lang="ts" setup>
|
|
19
|
+
//
|
|
20
|
+
</script>
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
When your template is rendered, the component's import will automatically be inlined, which renders to this:
|
|
24
|
+
|
|
25
|
+
```vue
|
|
26
|
+
<template>
|
|
27
|
+
<div>
|
|
28
|
+
<MyComponent />
|
|
29
|
+
</div>
|
|
30
|
+
</template>
|
|
31
|
+
|
|
32
|
+
<script lang="ts" setup>
|
|
33
|
+
import MyComponent from '@/components/MyComponent.vue'
|
|
34
|
+
</script>
|
|
35
|
+
```
|
|
@@ -13,14 +13,5 @@ import { createVuetify } from 'vuetify'
|
|
|
13
13
|
|
|
14
14
|
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
|
15
15
|
export default createVuetify({
|
|
16
|
-
|
|
17
|
-
themes: {
|
|
18
|
-
light: {
|
|
19
|
-
colors: {
|
|
20
|
-
primary: '#1867C0',
|
|
21
|
-
secondary: '#5CBBF6',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
16
|
+
//
|
|
26
17
|
})
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
// Plugins
|
|
2
|
-
import
|
|
3
|
-
import
|
|
2
|
+
import Components from 'unplugin-vue-components/vite'
|
|
3
|
+
import Vue from '@vitejs/plugin-vue'
|
|
4
|
+
import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
4
5
|
import ViteFonts from 'unplugin-fonts/vite'
|
|
5
6
|
|
|
6
7
|
// Utilities
|
|
@@ -10,16 +11,12 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
10
11
|
// https://vitejs.dev/config/
|
|
11
12
|
export default defineConfig({
|
|
12
13
|
plugins: [
|
|
13
|
-
|
|
14
|
-
template: { transformAssetUrls }
|
|
14
|
+
Vue({
|
|
15
|
+
template: { transformAssetUrls },
|
|
15
16
|
}),
|
|
16
17
|
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
styles: {
|
|
20
|
-
configFile: 'src/styles/settings.scss',
|
|
21
|
-
},
|
|
22
|
-
}),
|
|
18
|
+
Vuetify(),
|
|
19
|
+
Components(),
|
|
23
20
|
ViteFonts({
|
|
24
21
|
google: {
|
|
25
22
|
families: [{
|
|
@@ -32,7 +29,7 @@ export default defineConfig({
|
|
|
32
29
|
define: { 'process.env': {} },
|
|
33
30
|
resolve: {
|
|
34
31
|
alias: {
|
|
35
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
32
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
36
33
|
},
|
|
37
34
|
extensions: [
|
|
38
35
|
'.js',
|