create-vuetify 1.0.3 → 1.0.5
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 +4 -5
- package/dist/output.cjs +187 -84
- package/package.json +1 -1
- package/template/javascript/base/package.json +4 -4
- package/template/javascript/base/src/components/HelloWorld.vue +1 -1
- package/template/javascript/base/src/main.js +1 -6
- package/template/javascript/base/src/plugins/index.js +7 -1
- package/template/javascript/base/vite.config.js +4 -2
- package/template/javascript/custom/eslint/_eslintrc.js +10 -0
- package/template/javascript/custom/eslint/package.json +9 -0
- package/template/javascript/custom/router/package.json +5 -0
- package/template/javascript/custom/router/src/App.vue +7 -0
- package/template/javascript/custom/router/src/layouts/default/Default.vue +9 -0
- package/template/javascript/custom/router/src/layouts/default/View.vue +9 -0
- package/template/javascript/custom/router/src/plugins/index.js +17 -0
- package/template/javascript/custom/router/src/router/index.js +26 -0
- package/template/javascript/custom/router/src/views/Home.vue +7 -0
- package/template/javascript/custom/router-pinia/src/plugins/index.js +19 -0
- package/template/javascript/custom/store/package.json +5 -0
- package/template/javascript/custom/store/src/plugins/index.js +17 -0
- package/template/javascript/custom/store/src/store/app.js +8 -0
- package/template/javascript/custom/store/src/store/index.js +4 -0
- package/template/javascript/default/package.json +2 -2
- package/template/javascript/default/src/components/HelloWorld.vue +1 -1
- package/template/javascript/default/src/main.js +1 -4
- package/template/javascript/default/src/plugins/index.js +4 -2
- package/template/javascript/default/vite.config.js +4 -2
- package/template/javascript/essentials/package.json +4 -4
- package/template/javascript/essentials/src/components/HelloWorld.vue +1 -1
- package/template/javascript/essentials/src/main.js +1 -8
- package/template/javascript/essentials/src/plugins/index.js +9 -1
- package/template/javascript/essentials/vite.config.js +4 -2
- package/template/typescript/base/package.json +6 -3
- package/template/typescript/base/src/components/HelloWorld.vue +1 -1
- package/template/typescript/base/src/main.ts +1 -6
- package/template/typescript/base/src/plugins/index.ts +10 -1
- package/template/typescript/base/src/vite-env.d.ts +7 -0
- package/template/typescript/base/tsconfig.json +14 -17
- package/template/typescript/base/tsconfig.node.json +9 -0
- package/template/typescript/base/vite.config.ts +4 -2
- package/template/typescript/custom/eslint/_eslintrc.js +14 -0
- package/template/typescript/custom/eslint/package.json +10 -0
- package/template/typescript/custom/router/package.json +5 -0
- package/template/typescript/custom/router/src/layouts/default/Default.vue +9 -0
- package/template/typescript/custom/router/src/layouts/default/View.vue +9 -0
- package/template/typescript/custom/router/src/plugins/index.ts +20 -0
- package/template/typescript/custom/router/src/router/index.ts +26 -0
- package/template/typescript/custom/router/src/views/Home.vue +7 -0
- package/template/typescript/custom/router-pinia/src/plugins/index.ts +22 -0
- package/template/typescript/custom/store/package.json +5 -0
- package/template/typescript/custom/store/src/plugins/index.ts +20 -0
- package/template/typescript/custom/store/src/store/app.ts +8 -0
- package/template/typescript/custom/store/src/store/index.ts +4 -0
- package/template/typescript/default/package.json +3 -1
- package/template/typescript/default/src/components/HelloWorld.vue +1 -1
- package/template/typescript/default/src/main.ts +1 -4
- package/template/typescript/default/src/plugins/index.ts +7 -2
- package/template/typescript/default/src/vite-env.d.ts +7 -0
- package/template/typescript/default/tsconfig.json +14 -17
- package/template/typescript/default/tsconfig.node.json +9 -0
- package/template/typescript/default/vite.config.ts +4 -2
- package/template/typescript/essentials/package.json +6 -4
- package/template/typescript/essentials/src/components/HelloWorld.vue +1 -1
- package/template/typescript/essentials/src/main.ts +1 -8
- package/template/typescript/essentials/src/plugins/index.ts +12 -1
- package/template/typescript/essentials/src/vite-env.d.ts +7 -0
- package/template/typescript/essentials/tsconfig.json +4 -1
- package/template/typescript/essentials/tsconfig.node.json +9 -0
- package/template/typescript/essentials/vite.config.ts +4 -2
- package/template/typescript/base/env.d.ts +0 -1
- package/template/typescript/default/env.d.ts +0 -1
- package/template/typescript/essentials/env.d.ts +0 -1
|
@@ -12,16 +12,9 @@ import { createApp } from 'vue'
|
|
|
12
12
|
|
|
13
13
|
// Plugins
|
|
14
14
|
import { registerPlugins } from '@/plugins'
|
|
15
|
-
import vuetify from './plugins/vuetify'
|
|
16
|
-
import pinia from './store'
|
|
17
|
-
import router from './router'
|
|
18
15
|
|
|
19
16
|
const app = createApp(App)
|
|
20
17
|
|
|
21
18
|
registerPlugins(app)
|
|
22
19
|
|
|
23
|
-
app
|
|
24
|
-
.use(vuetify)
|
|
25
|
-
.use(router)
|
|
26
|
-
.use(pinia)
|
|
27
|
-
.mount('#app')
|
|
20
|
+
app.mount('#app')
|
|
@@ -4,8 +4,19 @@
|
|
|
4
4
|
* Automatically included in `./src/main.ts`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
7
8
|
import { loadFonts } from './webfontloader'
|
|
9
|
+
import vuetify from './vuetify'
|
|
10
|
+
import pinia from '../store'
|
|
11
|
+
import router from '../router'
|
|
8
12
|
|
|
9
|
-
|
|
13
|
+
// Types
|
|
14
|
+
import type { App } from 'vue'
|
|
15
|
+
|
|
16
|
+
export function registerPlugins (app: App) {
|
|
10
17
|
loadFonts()
|
|
18
|
+
app
|
|
19
|
+
.use(vuetify)
|
|
20
|
+
.use(router)
|
|
21
|
+
.use(pinia)
|
|
11
22
|
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
// Plugins
|
|
2
2
|
import vue from '@vitejs/plugin-vue'
|
|
3
|
-
import vuetify from 'vite-plugin-vuetify'
|
|
3
|
+
import vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
|
|
4
4
|
|
|
5
5
|
// Utilities
|
|
6
6
|
import { defineConfig } from 'vite'
|
|
@@ -9,7 +9,9 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
9
9
|
// https://vitejs.dev/config/
|
|
10
10
|
export default defineConfig({
|
|
11
11
|
plugins: [
|
|
12
|
-
vue(
|
|
12
|
+
vue({
|
|
13
|
+
template: { transformAssetUrls }
|
|
14
|
+
}),
|
|
13
15
|
// https://github.com/vuetifyjs/vuetify-loader/tree/next/packages/vite-plugin
|
|
14
16
|
vuetify({
|
|
15
17
|
autoImport: true,
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
/// <reference types="vite/client" />
|