create-vuetify 1.1.1 → 2.0.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 +2 -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 +58 -34
- package/template/javascript/default/_gitignore +0 -1
- package/template/javascript/default/jsconfig.json +1 -0
- package/template/javascript/default/package.json +8 -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 +2 -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/{base/vite.config.js → essentials/vite.config.mjs} +10 -4
- 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 +60 -34
- package/template/typescript/default/_gitignore +0 -1
- package/template/typescript/default/index.html +1 -1
- package/template/typescript/default/package.json +12 -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/typescript/default/{vite.config.ts → vite.config.mts} +19 -13
- package/template/typescript/essentials/package.json +2 -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 +56 -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/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
package/README.md
CHANGED
|
@@ -1,40 +1,77 @@
|
|
|
1
1
|
# create-vuetify
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
3
|
+
<p align="center">
|
|
4
|
+
<img src="https://cdn.vuetifyjs.com/docs/images/logos/v.png" height="128">
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
## Getting Started
|
|
8
|
+
|
|
9
|
+
Using your terminal, navigate to your sites directory and run the following command:
|
|
10
|
+
|
|
11
|
+
**Using Yarn:**
|
|
12
|
+
```bash
|
|
13
|
+
yarn create vuetify
|
|
14
|
+
```
|
|
15
|
+
|
|
16
|
+
**Using NPM:**
|
|
17
|
+
```bash
|
|
18
|
+
npm create vuetify
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
**Using PNPM:**
|
|
22
|
+
```bash
|
|
23
|
+
pnpm create vuetify
|
|
24
|
+
```
|
|
25
|
+
|
|
26
|
+
**Using Bun:**
|
|
27
|
+
```bash
|
|
28
|
+
bun create vuetify
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
## Vuetify
|
|
32
|
+
|
|
33
|
+
Vuetify is an Open Source UI Library that is developed exactly according to Material Design spec. Every component is handcrafted to bring you the best possible UI tools to your next great app. The development doesn't stop at the core components outlined in Google's spec. Through the support of community members and sponsors, additional components will be designed and made available for everyone to enjoy.
|
|
34
|
+
|
|
35
|
+
The documentation for **Vuetify** is hosted [here](https://vuetifyjs.com/).
|
|
36
|
+
|
|
37
|
+
### Support Development
|
|
38
|
+
|
|
39
|
+
Vuetify is an open source MIT 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:
|
|
40
|
+
|
|
41
|
+
- [Requesting Enterprise Support](https://support.vuetifyjs.com/)
|
|
42
|
+
- [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
|
|
43
|
+
- [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
|
|
44
|
+
- [Supporting the team on Open Collective](https://opencollective.com/vuetify)
|
|
45
|
+
- [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
|
|
46
|
+
- [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
|
|
47
|
+
- [Making a one-time donation with Paypal](https://paypal.me/vuetify)
|
|
48
|
+
|
|
49
|
+
## Vite
|
|
50
|
+
|
|
51
|
+
Vite is a build tool that significantly improves the front-end development experience. You can use Vite to set up a development environment for frameworks like Vue and React, and even for a vanilla JavaScript app with a dev server and hot reloading in just three commands. It also easily integrates with [TypeScript](https://vitejs.dev/guide/features.html#typescript).
|
|
52
|
+
|
|
53
|
+
## Browser Support
|
|
54
|
+
|
|
55
|
+
| Browser | Status |
|
|
56
|
+
| - | - |
|
|
57
|
+
| Chromium (Chrome, Edge) | ✅ Supported * |
|
|
58
|
+
| Firefox | ✅ Supported * |
|
|
59
|
+
| Safari 15.4+ | ✅ Supported |
|
|
60
|
+
| Safari 13. | ❗ Requires polyfill |
|
|
61
|
+
| Edge <79 | ⛔ Not supported |
|
|
62
|
+
| Internet Explorer | ⛔ Not supported |
|
|
63
|
+
|
|
64
|
+
## Resources
|
|
65
|
+
|
|
66
|
+
- 📄 [Documentation](https://vuetifyjs.com/)
|
|
67
|
+
- 🚨 [Report an Issue](https://issues.vuetifyjs.com/)
|
|
68
|
+
- 🏬 [Vuetify Store](https://store.vuetifyjs.com/)
|
|
69
|
+
- 🎮 [Vuetify Playground](https://play.vuetifyjs.com/)
|
|
70
|
+
- 💬 [Discord](https://community.vuetifyjs.com)
|
|
71
|
+
|
|
72
|
+
## Licensing
|
|
73
|
+
|
|
74
|
+
- Copyright 2023 Vuetify <https://vuetifyjs.com/>
|
|
75
|
+
- Vuetify [License Information](https://github.com/vuetifyjs/vuetify/blob/master/LICENSE.md)
|
|
76
|
+
|
|
77
|
+
<br>
|
package/dist/output.cjs
CHANGED
|
@@ -75,12 +75,11 @@ var promptQuestions = (context) => [
|
|
|
75
75
|
name: "usePreset",
|
|
76
76
|
type: context.usePreset ? null : "select",
|
|
77
77
|
message: "Which preset would you like to install?",
|
|
78
|
-
initial:
|
|
78
|
+
initial: 0,
|
|
79
79
|
choices: [
|
|
80
80
|
{ title: "Default (Vuetify)", value: "default" },
|
|
81
|
-
{ title: "Base (
|
|
82
|
-
{ title: "Essentials (
|
|
83
|
-
{ title: "Custom (Choose your features)", value: "custom" }
|
|
81
|
+
{ title: "Base (Default, Routing)", value: "base" },
|
|
82
|
+
{ title: "Essentials (Base, Layouts, Pinia)", value: "essentials" }
|
|
84
83
|
]
|
|
85
84
|
},
|
|
86
85
|
{
|
|
@@ -91,30 +90,6 @@ var promptQuestions = (context) => [
|
|
|
91
90
|
inactive: "No",
|
|
92
91
|
initial: false
|
|
93
92
|
},
|
|
94
|
-
{
|
|
95
|
-
name: "useRouter",
|
|
96
|
-
type: (_, { usePreset }) => usePreset !== "custom" && context.usePreset !== "custom" ? null : "toggle",
|
|
97
|
-
message: "Use Vue Router?",
|
|
98
|
-
active: "Yes",
|
|
99
|
-
inactive: "No",
|
|
100
|
-
initial: false
|
|
101
|
-
},
|
|
102
|
-
{
|
|
103
|
-
name: "useStore",
|
|
104
|
-
type: (_, { usePreset }) => usePreset !== "custom" && context.usePreset !== "custom" ? null : "toggle",
|
|
105
|
-
message: "Use Pinia?",
|
|
106
|
-
active: "Yes",
|
|
107
|
-
inactive: "No",
|
|
108
|
-
initial: false
|
|
109
|
-
},
|
|
110
|
-
{
|
|
111
|
-
name: "useEslint",
|
|
112
|
-
type: (_, { usePreset }) => usePreset !== "custom" && context.usePreset !== "custom" ? null : "toggle",
|
|
113
|
-
message: "Use ESLint?",
|
|
114
|
-
active: "Yes",
|
|
115
|
-
inactive: "No",
|
|
116
|
-
initial: false
|
|
117
|
-
},
|
|
118
93
|
{
|
|
119
94
|
name: "usePackageManager",
|
|
120
95
|
type: "select",
|
|
@@ -250,10 +225,7 @@ ${banner}
|
|
|
250
225
|
projectName,
|
|
251
226
|
useTypeScript,
|
|
252
227
|
usePackageManager,
|
|
253
|
-
usePreset
|
|
254
|
-
useStore,
|
|
255
|
-
useEslint,
|
|
256
|
-
useRouter
|
|
228
|
+
usePreset
|
|
257
229
|
} = await initPrompts(context);
|
|
258
230
|
const projectRoot = (0, import_path3.join)(cwd, projectName);
|
|
259
231
|
if (canOverwrite) {
|
|
@@ -264,23 +236,12 @@ ${banner}
|
|
|
264
236
|
const jsOrTs = useTypeScript ? "typescript" : "javascript";
|
|
265
237
|
let templatePath = (0, import_path3.resolve)(__dirname, "../template", jsOrTs);
|
|
266
238
|
console.log("\n\u25CC Generating scaffold...");
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
renderTemplate((0, import_path3.resolve)(templatePath, "eslint"), projectRoot);
|
|
274
|
-
}
|
|
275
|
-
if (useRouter) {
|
|
276
|
-
renderTemplate((0, import_path3.resolve)(templatePath, "router"), projectRoot);
|
|
277
|
-
}
|
|
278
|
-
if (useStore) {
|
|
279
|
-
renderTemplate((0, import_path3.resolve)(templatePath, "store"), projectRoot);
|
|
280
|
-
if (useRouter) {
|
|
281
|
-
renderTemplate((0, import_path3.resolve)(templatePath, "router-pinia"), projectRoot);
|
|
282
|
-
}
|
|
283
|
-
}
|
|
239
|
+
renderTemplate((0, import_path3.resolve)(templatePath, "default"), projectRoot);
|
|
240
|
+
if (["base", "essentials"].includes(usePreset)) {
|
|
241
|
+
renderTemplate((0, import_path3.resolve)(templatePath, "base"), projectRoot);
|
|
242
|
+
}
|
|
243
|
+
if (["essentials", "recommended"].includes(usePreset)) {
|
|
244
|
+
renderTemplate((0, import_path3.resolve)(templatePath, "essentials"), projectRoot);
|
|
284
245
|
}
|
|
285
246
|
if (usePackageManager) {
|
|
286
247
|
console.log(`\u25CC Installing dependencies with ${usePackageManager}...
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vuetify",
|
|
3
|
-
"version": "
|
|
3
|
+
"version": "2.0.0",
|
|
4
4
|
"main": "dist/output.cjs",
|
|
5
5
|
"author": "Elijah Kotyluk <elijah@elijahkotyluk.com>",
|
|
6
6
|
"license": "MIT",
|
|
@@ -39,7 +39,7 @@
|
|
|
39
39
|
"@typescript-eslint/parser": "^5.30.6",
|
|
40
40
|
"esbuild": "^0.14.47",
|
|
41
41
|
"esbuild-jest": "^0.5.0",
|
|
42
|
-
"eslint": "^8.
|
|
42
|
+
"eslint": "^8.41.0",
|
|
43
43
|
"eslint-plugin-jest": "^26.5.3",
|
|
44
44
|
"eslint-plugin-local-rules": "^1.3.0",
|
|
45
45
|
"eslint-plugin-lodash-template": "^0.21.0",
|
|
@@ -1,27 +1,19 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "0.0.0",
|
|
3
|
-
"private": true,
|
|
4
2
|
"scripts": {
|
|
5
|
-
"dev": "vite",
|
|
6
|
-
"build": "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
|
-
"eslint": "^
|
|
21
|
-
"eslint-plugin-
|
|
22
|
-
"
|
|
23
|
-
"
|
|
24
|
-
"
|
|
25
|
-
"
|
|
9
|
+
"eslint": "^8.56.0",
|
|
10
|
+
"eslint-config-standard": "^17.1.0",
|
|
11
|
+
"eslint-plugin-import": "^2.29.0",
|
|
12
|
+
"eslint-plugin-n": "^16.4.0",
|
|
13
|
+
"eslint-plugin-node": "^11.1.0",
|
|
14
|
+
"eslint-plugin-promise": "^6.1.1",
|
|
15
|
+
"eslint-plugin-vue": "^9.19.0",
|
|
16
|
+
"vue-router": "^4.2.0",
|
|
17
|
+
"unplugin-vue-router": "^0.7.0"
|
|
26
18
|
}
|
|
27
19
|
}
|
|
@@ -1,26 +1,16 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
/**
|
|
2
|
+
* router/index.ts
|
|
3
|
+
*
|
|
4
|
+
* Automatic routes for `./src/pages/*.vue`
|
|
5
|
+
*/
|
|
3
6
|
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
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'
|
|
9
|
+
import { setupLayouts } from 'virtual:generated-layouts'
|
|
20
10
|
|
|
21
11
|
const router = createRouter({
|
|
22
12
|
history: createWebHistory(process.env.BASE_URL),
|
|
23
|
-
|
|
13
|
+
extendRoutes: setupLayouts,
|
|
24
14
|
})
|
|
25
15
|
|
|
26
16
|
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,16 +12,18 @@ 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
29
|
families: [{
|
|
@@ -1,53 +1,77 @@
|
|
|
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
|
+
- ⚡ **Next-Gen Tooling**: Powered by Vite, experience fast cold starts and instant HMR (Hot Module Replacement). [Vite](https://vitejs.dev/)
|
|
32
|
+
- 🧩 **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)
|
|
30
33
|
|
|
31
|
-
|
|
32
|
-
bun run dev
|
|
33
|
-
```
|
|
34
|
+
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
35
|
|
|
35
|
-
|
|
36
|
+
## 💡 Usage
|
|
36
37
|
|
|
38
|
+
This section covers how to start the development server and build your project for production.
|
|
39
|
+
|
|
40
|
+
### Starting the Development Server
|
|
41
|
+
|
|
42
|
+
To start the development server with hot-reload, run the following command. The server will be accessible at [http://localhost:3000](http://localhost:3000):
|
|
43
|
+
|
|
44
|
+
```bash
|
|
45
|
+
yarn dev
|
|
37
46
|
```
|
|
38
|
-
# yarn
|
|
39
|
-
yarn build
|
|
40
47
|
|
|
41
|
-
|
|
42
|
-
|
|
48
|
+
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
49
|
+
|
|
50
|
+
### Building for Production
|
|
43
51
|
|
|
44
|
-
|
|
45
|
-
pnpm build
|
|
52
|
+
To build your project for production, use:
|
|
46
53
|
|
|
47
|
-
|
|
48
|
-
|
|
54
|
+
```bash
|
|
55
|
+
yarn build
|
|
49
56
|
```
|
|
50
57
|
|
|
51
|
-
|
|
58
|
+
(Repeat for npm, pnpm, and bun with respective commands.)
|
|
59
|
+
|
|
60
|
+
Once the build process is completed, your application will be ready for deployment in a production environment.
|
|
61
|
+
|
|
62
|
+
## 💪 Support Vuetify Development
|
|
63
|
+
|
|
64
|
+
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:
|
|
65
|
+
|
|
66
|
+
- [Requesting Enterprise Support](https://support.vuetifyjs.com/)
|
|
67
|
+
- [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
|
|
68
|
+
- [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
|
|
69
|
+
- [Supporting the team on Open Collective](https://opencollective.com/vuetify)
|
|
70
|
+
- [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
|
|
71
|
+
- [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
|
|
72
|
+
- [Making a one-time donation with Paypal](https://paypal.me/vuetify)
|
|
73
|
+
|
|
74
|
+
## 📑 License
|
|
75
|
+
[MIT](http://opensource.org/licenses/MIT)
|
|
52
76
|
|
|
53
|
-
|
|
77
|
+
Copyright (c) 2016-present Vuetify, LLC
|
|
@@ -1,20 +1,22 @@
|
|
|
1
1
|
{
|
|
2
2
|
"version": "0.0.0",
|
|
3
3
|
"scripts": {
|
|
4
|
-
"dev": "vite",
|
|
4
|
+
"dev": "node --no-warnings ./node_modules/.bin/vite",
|
|
5
5
|
"build": "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
|
-
"@vitejs/plugin-vue": "^4.
|
|
16
|
-
"
|
|
17
|
-
"vite": "^
|
|
18
|
-
"
|
|
15
|
+
"@vitejs/plugin-vue": "^4.5.0",
|
|
16
|
+
"sass": "^1.69.0",
|
|
17
|
+
"vite-plugin-vuetify": "^2.0.0",
|
|
18
|
+
"vite": "^5.0.0",
|
|
19
|
+
"unplugin-vue-components": "^0.26.0",
|
|
20
|
+
"unplugin-fonts": "^1.1.0"
|
|
19
21
|
}
|
|
20
22
|
}
|
|
@@ -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,13 +11,12 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
10
11
|
// https://vitejs.dev/config/
|
|
11
12
|
export default defineConfig({
|
|
12
13
|
plugins: [
|
|
13
|
-
|
|
14
|
+
Vue({
|
|
14
15
|
template: { transformAssetUrls }
|
|
15
16
|
}),
|
|
16
17
|
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
}),
|
|
18
|
+
Vuetify(),
|
|
19
|
+
Components(),
|
|
20
20
|
ViteFonts({
|
|
21
21
|
google: {
|
|
22
22
|
families: [{
|