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.
Files changed (72) hide show
  1. package/README.md +4 -5
  2. package/dist/output.cjs +187 -84
  3. package/package.json +1 -1
  4. package/template/javascript/base/package.json +4 -4
  5. package/template/javascript/base/src/components/HelloWorld.vue +1 -1
  6. package/template/javascript/base/src/main.js +1 -6
  7. package/template/javascript/base/src/plugins/index.js +7 -1
  8. package/template/javascript/base/vite.config.js +4 -2
  9. package/template/javascript/custom/eslint/_eslintrc.js +10 -0
  10. package/template/javascript/custom/eslint/package.json +9 -0
  11. package/template/javascript/custom/router/package.json +5 -0
  12. package/template/javascript/custom/router/src/App.vue +7 -0
  13. package/template/javascript/custom/router/src/layouts/default/Default.vue +9 -0
  14. package/template/javascript/custom/router/src/layouts/default/View.vue +9 -0
  15. package/template/javascript/custom/router/src/plugins/index.js +17 -0
  16. package/template/javascript/custom/router/src/router/index.js +26 -0
  17. package/template/javascript/custom/router/src/views/Home.vue +7 -0
  18. package/template/javascript/custom/router-pinia/src/plugins/index.js +19 -0
  19. package/template/javascript/custom/store/package.json +5 -0
  20. package/template/javascript/custom/store/src/plugins/index.js +17 -0
  21. package/template/javascript/custom/store/src/store/app.js +8 -0
  22. package/template/javascript/custom/store/src/store/index.js +4 -0
  23. package/template/javascript/default/package.json +2 -2
  24. package/template/javascript/default/src/components/HelloWorld.vue +1 -1
  25. package/template/javascript/default/src/main.js +1 -4
  26. package/template/javascript/default/src/plugins/index.js +4 -2
  27. package/template/javascript/default/vite.config.js +4 -2
  28. package/template/javascript/essentials/package.json +4 -4
  29. package/template/javascript/essentials/src/components/HelloWorld.vue +1 -1
  30. package/template/javascript/essentials/src/main.js +1 -8
  31. package/template/javascript/essentials/src/plugins/index.js +9 -1
  32. package/template/javascript/essentials/vite.config.js +4 -2
  33. package/template/typescript/base/package.json +6 -3
  34. package/template/typescript/base/src/components/HelloWorld.vue +1 -1
  35. package/template/typescript/base/src/main.ts +1 -6
  36. package/template/typescript/base/src/plugins/index.ts +10 -1
  37. package/template/typescript/base/src/vite-env.d.ts +7 -0
  38. package/template/typescript/base/tsconfig.json +14 -17
  39. package/template/typescript/base/tsconfig.node.json +9 -0
  40. package/template/typescript/base/vite.config.ts +4 -2
  41. package/template/typescript/custom/eslint/_eslintrc.js +14 -0
  42. package/template/typescript/custom/eslint/package.json +10 -0
  43. package/template/typescript/custom/router/package.json +5 -0
  44. package/template/typescript/custom/router/src/layouts/default/Default.vue +9 -0
  45. package/template/typescript/custom/router/src/layouts/default/View.vue +9 -0
  46. package/template/typescript/custom/router/src/plugins/index.ts +20 -0
  47. package/template/typescript/custom/router/src/router/index.ts +26 -0
  48. package/template/typescript/custom/router/src/views/Home.vue +7 -0
  49. package/template/typescript/custom/router-pinia/src/plugins/index.ts +22 -0
  50. package/template/typescript/custom/store/package.json +5 -0
  51. package/template/typescript/custom/store/src/plugins/index.ts +20 -0
  52. package/template/typescript/custom/store/src/store/app.ts +8 -0
  53. package/template/typescript/custom/store/src/store/index.ts +4 -0
  54. package/template/typescript/default/package.json +3 -1
  55. package/template/typescript/default/src/components/HelloWorld.vue +1 -1
  56. package/template/typescript/default/src/main.ts +1 -4
  57. package/template/typescript/default/src/plugins/index.ts +7 -2
  58. package/template/typescript/default/src/vite-env.d.ts +7 -0
  59. package/template/typescript/default/tsconfig.json +14 -17
  60. package/template/typescript/default/tsconfig.node.json +9 -0
  61. package/template/typescript/default/vite.config.ts +4 -2
  62. package/template/typescript/essentials/package.json +6 -4
  63. package/template/typescript/essentials/src/components/HelloWorld.vue +1 -1
  64. package/template/typescript/essentials/src/main.ts +1 -8
  65. package/template/typescript/essentials/src/plugins/index.ts +12 -1
  66. package/template/typescript/essentials/src/vite-env.d.ts +7 -0
  67. package/template/typescript/essentials/tsconfig.json +4 -1
  68. package/template/typescript/essentials/tsconfig.node.json +9 -0
  69. package/template/typescript/essentials/vite.config.ts +4 -2
  70. package/template/typescript/base/env.d.ts +0 -1
  71. package/template/typescript/default/env.d.ts +0 -1
  72. package/template/typescript/essentials/env.d.ts +0 -1
@@ -4,7 +4,7 @@
4
4
  <v-img
5
5
  contain
6
6
  height="300"
7
- src="src/assets/logo.svg"
7
+ src="@/assets/logo.svg"
8
8
  />
9
9
 
10
10
  <div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
@@ -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
- export function registerPlugins () {
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
  }
@@ -0,0 +1,7 @@
1
+ /// <reference types="vite/client" />
2
+
3
+ declare module '*.vue' {
4
+ import type { DefineComponent } from 'vue'
5
+ const component: DefineComponent<{}, {}, any>
6
+ export default component
7
+ }
@@ -13,7 +13,10 @@
13
13
  "resolveJsonModule": true,
14
14
  "esModuleInterop": true,
15
15
  "lib": ["esnext", "dom"],
16
- "types": ["vuetify"],
16
+ "types": [
17
+ "node",
18
+ "vuetify"
19
+ ],
17
20
  "paths": {
18
21
  "@/*": ["src/*"]
19
22
  },
@@ -0,0 +1,9 @@
1
+ {
2
+ "compilerOptions": {
3
+ "composite": true,
4
+ "module": "ESNext",
5
+ "moduleResolution": "Node",
6
+ "allowSyntheticDefaultImports": true
7
+ },
8
+ "include": ["vite.config.ts"]
9
+ }
@@ -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" />