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
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* plugins/index.ts
|
|
3
|
-
*
|
|
4
|
-
* Automatically included in `./src/main.ts`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Plugins
|
|
8
|
-
import vuetify from './vuetify'
|
|
9
|
-
import router from '../router'
|
|
10
|
-
|
|
11
|
-
// Types
|
|
12
|
-
import type { App } from 'vue'
|
|
13
|
-
|
|
14
|
-
export function registerPlugins (app: App) {
|
|
15
|
-
app
|
|
16
|
-
.use(vuetify)
|
|
17
|
-
.use(router)
|
|
18
|
-
}
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
// Composables
|
|
2
|
-
import { createRouter, createWebHistory } from 'vue-router'
|
|
3
|
-
|
|
4
|
-
const routes = [
|
|
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
|
-
]
|
|
20
|
-
|
|
21
|
-
const router = createRouter({
|
|
22
|
-
history: createWebHistory(process.env.BASE_URL),
|
|
23
|
-
routes,
|
|
24
|
-
})
|
|
25
|
-
|
|
26
|
-
export default router
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* plugins/index.ts
|
|
3
|
-
*
|
|
4
|
-
* Automatically included in `./src/main.ts`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Plugins
|
|
8
|
-
import vuetify from './vuetify'
|
|
9
|
-
import pinia from '../store'
|
|
10
|
-
import router from '../router'
|
|
11
|
-
|
|
12
|
-
// Types
|
|
13
|
-
import type { App } from 'vue'
|
|
14
|
-
|
|
15
|
-
export function registerPlugins (app: App) {
|
|
16
|
-
app
|
|
17
|
-
.use(vuetify)
|
|
18
|
-
.use(router)
|
|
19
|
-
.use(pinia)
|
|
20
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* plugins/index.ts
|
|
3
|
-
*
|
|
4
|
-
* Automatically included in `./src/main.ts`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Plugins
|
|
8
|
-
import vuetify from './vuetify'
|
|
9
|
-
import pinia from '../store'
|
|
10
|
-
|
|
11
|
-
// Types
|
|
12
|
-
import type { App } from 'vue'
|
|
13
|
-
|
|
14
|
-
export function registerPlugins (app: App) {
|
|
15
|
-
app
|
|
16
|
-
.use(vuetify)
|
|
17
|
-
.use(pinia)
|
|
18
|
-
}
|
|
@@ -1,69 +0,0 @@
|
|
|
1
|
-
# essentials
|
|
2
|
-
|
|
3
|
-
## Project setup
|
|
4
|
-
|
|
5
|
-
```
|
|
6
|
-
# yarn
|
|
7
|
-
yarn
|
|
8
|
-
|
|
9
|
-
# npm
|
|
10
|
-
npm install
|
|
11
|
-
|
|
12
|
-
# pnpm
|
|
13
|
-
pnpm install
|
|
14
|
-
|
|
15
|
-
# bun
|
|
16
|
-
bun install
|
|
17
|
-
```
|
|
18
|
-
|
|
19
|
-
### Compiles and hot-reloads for development
|
|
20
|
-
|
|
21
|
-
```
|
|
22
|
-
# yarn
|
|
23
|
-
yarn dev
|
|
24
|
-
|
|
25
|
-
# npm
|
|
26
|
-
npm run dev
|
|
27
|
-
|
|
28
|
-
# pnpm
|
|
29
|
-
pnpm dev
|
|
30
|
-
|
|
31
|
-
# bun
|
|
32
|
-
bun run dev
|
|
33
|
-
```
|
|
34
|
-
|
|
35
|
-
### Compiles and minifies for production
|
|
36
|
-
|
|
37
|
-
```
|
|
38
|
-
# yarn
|
|
39
|
-
yarn build
|
|
40
|
-
|
|
41
|
-
# npm
|
|
42
|
-
npm run build
|
|
43
|
-
|
|
44
|
-
# pnpm
|
|
45
|
-
pnpm build
|
|
46
|
-
|
|
47
|
-
# bun
|
|
48
|
-
bun run build
|
|
49
|
-
```
|
|
50
|
-
|
|
51
|
-
### Lints and fixes files
|
|
52
|
-
|
|
53
|
-
```
|
|
54
|
-
# yarn
|
|
55
|
-
yarn lint
|
|
56
|
-
|
|
57
|
-
# npm
|
|
58
|
-
npm run lint
|
|
59
|
-
|
|
60
|
-
# pnpm
|
|
61
|
-
pnpm lint
|
|
62
|
-
|
|
63
|
-
# bun
|
|
64
|
-
bun run lint
|
|
65
|
-
```
|
|
66
|
-
|
|
67
|
-
### Customize configuration
|
|
68
|
-
|
|
69
|
-
See [Configuration Reference](https://vitejs.dev/config/).
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
.DS_Store
|
|
2
|
-
node_modules
|
|
3
|
-
/dist
|
|
4
|
-
|
|
5
|
-
# local env files
|
|
6
|
-
.env.local
|
|
7
|
-
.env.*.local
|
|
8
|
-
|
|
9
|
-
# Log files
|
|
10
|
-
npm-debug.log*
|
|
11
|
-
yarn-debug.log*
|
|
12
|
-
yarn-error.log*
|
|
13
|
-
pnpm-debug.log*
|
|
14
|
-
|
|
15
|
-
# Editor directories and files
|
|
16
|
-
.idea
|
|
17
|
-
.vscode
|
|
18
|
-
*.suo
|
|
19
|
-
*.ntvs*
|
|
20
|
-
*.njsproj
|
|
21
|
-
*.sln
|
|
22
|
-
*.sw?
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
<!DOCTYPE html>
|
|
2
|
-
<html lang="en">
|
|
3
|
-
|
|
4
|
-
<head>
|
|
5
|
-
<meta charset="UTF-8" />
|
|
6
|
-
<link rel="icon" href="/favicon.ico" />
|
|
7
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
8
|
-
<title>Welcome to Vuetify 3</title>
|
|
9
|
-
</head>
|
|
10
|
-
|
|
11
|
-
<body>
|
|
12
|
-
<div id="app"></div>
|
|
13
|
-
<script type="module" src="/src/main.ts"></script>
|
|
14
|
-
</body>
|
|
15
|
-
|
|
16
|
-
</html>
|
|
Binary file
|
|
Binary file
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
|
|
2
|
-
<path d="M261.126 140.65L164.624 307.732L256.001 466L377.028 256.5L498.001 47H315.192L261.126 140.65Z" fill="#1697F6"/>
|
|
3
|
-
<path d="M135.027 256.5L141.365 267.518L231.64 111.178L268.731 47H256H14L135.027 256.5Z" fill="#AEDDFF"/>
|
|
4
|
-
<path d="M315.191 47C360.935 197.446 256 466 256 466L164.624 307.732L315.191 47Z" fill="#1867C0"/>
|
|
5
|
-
<path d="M268.731 47C76.0026 47 141.366 267.518 141.366 267.518L268.731 47Z" fill="#7BC6FF"/>
|
|
6
|
-
</svg>
|
|
@@ -1,75 +0,0 @@
|
|
|
1
|
-
<template>
|
|
2
|
-
<v-container class="fill-height">
|
|
3
|
-
<v-responsive class="align-center text-center fill-height">
|
|
4
|
-
<v-img height="300" src="@/assets/logo.svg" />
|
|
5
|
-
|
|
6
|
-
<div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
|
|
7
|
-
|
|
8
|
-
<h1 class="text-h2 font-weight-bold">Vuetify</h1>
|
|
9
|
-
|
|
10
|
-
<div class="py-14" />
|
|
11
|
-
|
|
12
|
-
<v-row class="d-flex align-center justify-center">
|
|
13
|
-
<v-col cols="auto">
|
|
14
|
-
<v-btn
|
|
15
|
-
href="https://vuetifyjs.com/components/all/"
|
|
16
|
-
min-width="164"
|
|
17
|
-
rel="noopener noreferrer"
|
|
18
|
-
target="_blank"
|
|
19
|
-
variant="text"
|
|
20
|
-
>
|
|
21
|
-
<v-icon
|
|
22
|
-
icon="mdi-view-dashboard"
|
|
23
|
-
size="large"
|
|
24
|
-
start
|
|
25
|
-
/>
|
|
26
|
-
|
|
27
|
-
Components
|
|
28
|
-
</v-btn>
|
|
29
|
-
</v-col>
|
|
30
|
-
|
|
31
|
-
<v-col cols="auto">
|
|
32
|
-
<v-btn
|
|
33
|
-
color="primary"
|
|
34
|
-
href="https://vuetifyjs.com/introduction/why-vuetify/#feature-guides"
|
|
35
|
-
min-width="228"
|
|
36
|
-
rel="noopener noreferrer"
|
|
37
|
-
size="x-large"
|
|
38
|
-
target="_blank"
|
|
39
|
-
variant="flat"
|
|
40
|
-
>
|
|
41
|
-
<v-icon
|
|
42
|
-
icon="mdi-speedometer"
|
|
43
|
-
size="large"
|
|
44
|
-
start
|
|
45
|
-
/>
|
|
46
|
-
|
|
47
|
-
Get Started
|
|
48
|
-
</v-btn>
|
|
49
|
-
</v-col>
|
|
50
|
-
|
|
51
|
-
<v-col cols="auto">
|
|
52
|
-
<v-btn
|
|
53
|
-
href="https://community.vuetifyjs.com/"
|
|
54
|
-
min-width="164"
|
|
55
|
-
rel="noopener noreferrer"
|
|
56
|
-
target="_blank"
|
|
57
|
-
variant="text"
|
|
58
|
-
>
|
|
59
|
-
<v-icon
|
|
60
|
-
icon="mdi-account-group"
|
|
61
|
-
size="large"
|
|
62
|
-
start
|
|
63
|
-
/>
|
|
64
|
-
|
|
65
|
-
Community
|
|
66
|
-
</v-btn>
|
|
67
|
-
</v-col>
|
|
68
|
-
</v-row>
|
|
69
|
-
</v-responsive>
|
|
70
|
-
</v-container>
|
|
71
|
-
</template>
|
|
72
|
-
|
|
73
|
-
<script lang="ts" setup>
|
|
74
|
-
//
|
|
75
|
-
</script>
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* main.ts
|
|
3
|
-
*
|
|
4
|
-
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Plugins
|
|
8
|
-
import { registerPlugins } from '@/plugins'
|
|
9
|
-
|
|
10
|
-
// Components
|
|
11
|
-
import App from './App.vue'
|
|
12
|
-
|
|
13
|
-
// Composables
|
|
14
|
-
import { createApp } from 'vue'
|
|
15
|
-
|
|
16
|
-
const app = createApp(App)
|
|
17
|
-
|
|
18
|
-
registerPlugins(app)
|
|
19
|
-
|
|
20
|
-
app.mount('#app')
|
|
@@ -1,26 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* plugins/vuetify.ts
|
|
3
|
-
*
|
|
4
|
-
* Framework documentation: https://vuetifyjs.com`
|
|
5
|
-
*/
|
|
6
|
-
|
|
7
|
-
// Styles
|
|
8
|
-
import '@mdi/font/css/materialdesignicons.css'
|
|
9
|
-
import 'vuetify/styles'
|
|
10
|
-
|
|
11
|
-
// Composables
|
|
12
|
-
import { createVuetify } from 'vuetify'
|
|
13
|
-
|
|
14
|
-
// https://vuetifyjs.com/en/introduction/why-vuetify/#feature-guides
|
|
15
|
-
export default createVuetify({
|
|
16
|
-
theme: {
|
|
17
|
-
themes: {
|
|
18
|
-
light: {
|
|
19
|
-
colors: {
|
|
20
|
-
primary: '#1867C0',
|
|
21
|
-
secondary: '#5CBBF6',
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
},
|
|
25
|
-
},
|
|
26
|
-
})
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
"baseUrl": ".",
|
|
4
|
-
"target": "esnext",
|
|
5
|
-
"useDefineForClassFields": true,
|
|
6
|
-
"allowSyntheticDefaultImports": true,
|
|
7
|
-
"composite": true,
|
|
8
|
-
"module": "esnext",
|
|
9
|
-
"moduleResolution": "node",
|
|
10
|
-
"strict": true,
|
|
11
|
-
"jsx": "preserve",
|
|
12
|
-
"sourceMap": false,
|
|
13
|
-
"resolveJsonModule": true,
|
|
14
|
-
"esModuleInterop": true,
|
|
15
|
-
"lib": ["esnext", "dom"],
|
|
16
|
-
"types": [
|
|
17
|
-
"node",
|
|
18
|
-
"vuetify"
|
|
19
|
-
],
|
|
20
|
-
"paths": {
|
|
21
|
-
"@/*": ["src/*"]
|
|
22
|
-
}
|
|
23
|
-
},
|
|
24
|
-
"include": [
|
|
25
|
-
"src/**/*.ts",
|
|
26
|
-
"src/**/*.d.ts",
|
|
27
|
-
"src/**/*.tsx",
|
|
28
|
-
"src/**/*.vue",
|
|
29
|
-
"vite.config.ts"
|
|
30
|
-
]
|
|
31
|
-
}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
// Plugins
|
|
2
|
-
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
4
|
-
import ViteFonts from 'unplugin-fonts/vite'
|
|
5
|
-
|
|
6
|
-
// Utilities
|
|
7
|
-
import { defineConfig } from 'vite'
|
|
8
|
-
import { fileURLToPath, URL } from 'node:url'
|
|
9
|
-
|
|
10
|
-
// https://vitejs.dev/config/
|
|
11
|
-
export default defineConfig({
|
|
12
|
-
plugins: [
|
|
13
|
-
vue({
|
|
14
|
-
template: { transformAssetUrls },
|
|
15
|
-
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
|
-
vuetify({
|
|
18
|
-
autoImport: true,
|
|
19
|
-
styles: {
|
|
20
|
-
configFile: 'src/styles/settings.scss',
|
|
21
|
-
},
|
|
22
|
-
}),
|
|
23
|
-
ViteFonts({
|
|
24
|
-
google: {
|
|
25
|
-
families: [
|
|
26
|
-
{
|
|
27
|
-
name: 'Roboto',
|
|
28
|
-
styles: 'wght@100;300;400;500;700;900',
|
|
29
|
-
},
|
|
30
|
-
],
|
|
31
|
-
},
|
|
32
|
-
}),
|
|
33
|
-
],
|
|
34
|
-
define: { 'process.env': {} },
|
|
35
|
-
resolve: {
|
|
36
|
-
alias: {
|
|
37
|
-
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
38
|
-
},
|
|
39
|
-
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
|
|
40
|
-
},
|
|
41
|
-
server: {
|
|
42
|
-
port: 3000,
|
|
43
|
-
},
|
|
44
|
-
})
|