create-vuetify 1.1.0 → 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.
Files changed (148) hide show
  1. package/README.md +75 -38
  2. package/dist/output.cjs +11 -53
  3. package/package.json +2 -2
  4. package/template/javascript/base/package.json +10 -18
  5. package/template/javascript/base/src/App.vue +5 -1
  6. package/template/javascript/base/src/pages/README.md +5 -0
  7. package/template/javascript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
  8. package/template/javascript/base/src/plugins/index.js +1 -1
  9. package/template/javascript/base/src/router/index.js +9 -19
  10. package/template/javascript/base/src/styles/README.md +3 -0
  11. package/template/javascript/{essentials/vite.config.js → base/vite.config.mjs} +9 -5
  12. package/template/javascript/default/README.md +58 -34
  13. package/template/javascript/default/_gitignore +0 -1
  14. package/template/javascript/default/jsconfig.json +1 -0
  15. package/template/javascript/default/package.json +9 -7
  16. package/template/javascript/default/src/App.vue +1 -1
  17. package/template/javascript/default/src/components/README.md +35 -0
  18. package/template/javascript/default/src/main.js +3 -3
  19. package/template/javascript/default/src/plugins/README.md +3 -0
  20. package/template/javascript/default/src/plugins/vuetify.js +1 -10
  21. package/template/{typescript/default/vite.config.ts → javascript/default/vite.config.mjs} +7 -7
  22. package/template/javascript/essentials/package.json +2 -24
  23. package/template/javascript/essentials/src/layouts/README.md +5 -0
  24. package/template/javascript/essentials/src/layouts/default.vue +12 -0
  25. package/template/javascript/essentials/src/plugins/index.js +2 -2
  26. package/template/javascript/essentials/src/router/index.js +7 -19
  27. package/template/javascript/essentials/src/store/README.md +5 -0
  28. package/template/javascript/{base/vite.config.js → essentials/vite.config.mjs} +11 -5
  29. package/template/typescript/base/_eslintrc.js +6 -0
  30. package/template/typescript/base/package.json +11 -23
  31. package/template/typescript/base/src/App.vue +5 -1
  32. package/template/typescript/base/src/pages/README.md +5 -0
  33. package/template/typescript/{essentials/src/App.vue → base/src/pages/index.vue} +1 -1
  34. package/template/typescript/base/src/router/index.ts +7 -19
  35. package/template/typescript/base/src/styles/README.md +3 -0
  36. package/template/typescript/base/{vite.config.ts → vite.config.mts} +12 -8
  37. package/template/typescript/default/README.md +60 -34
  38. package/template/typescript/default/_gitignore +0 -1
  39. package/template/typescript/default/index.html +1 -1
  40. package/template/typescript/default/package.json +12 -10
  41. package/template/typescript/default/src/App.vue +1 -1
  42. package/template/typescript/default/src/components/README.md +35 -0
  43. package/template/typescript/default/src/main.ts +3 -3
  44. package/template/typescript/default/src/plugins/README.md +3 -0
  45. package/template/typescript/default/src/plugins/vuetify.ts +1 -10
  46. package/template/typescript/default/tsconfig.node.json +1 -1
  47. package/template/{javascript/default/vite.config.js → typescript/default/vite.config.mts} +9 -9
  48. package/template/typescript/essentials/package.json +2 -29
  49. package/template/typescript/essentials/src/layouts/README.md +5 -0
  50. package/template/typescript/essentials/src/layouts/default.vue +12 -0
  51. package/template/typescript/essentials/src/router/index.ts +9 -19
  52. package/template/typescript/essentials/src/store/README.md +5 -0
  53. package/template/typescript/essentials/{vite.config.ts → vite.config.mts} +14 -8
  54. package/template/javascript/base/README.md +0 -69
  55. package/template/javascript/base/_browserslistrc +0 -4
  56. package/template/javascript/base/_editorconfig +0 -5
  57. package/template/javascript/base/_gitignore +0 -22
  58. package/template/javascript/base/index.html +0 -16
  59. package/template/javascript/base/jsconfig.json +0 -19
  60. package/template/javascript/base/public/favicon.ico +0 -0
  61. package/template/javascript/base/src/assets/logo.png +0 -0
  62. package/template/javascript/base/src/assets/logo.svg +0 -6
  63. package/template/javascript/base/src/components/HelloWorld.vue +0 -75
  64. package/template/javascript/base/src/layouts/default/AppBar.vue +0 -13
  65. package/template/javascript/base/src/layouts/default/Default.vue +0 -12
  66. package/template/javascript/base/src/layouts/default/View.vue +0 -9
  67. package/template/javascript/base/src/main.js +0 -20
  68. package/template/javascript/base/src/plugins/vuetify.js +0 -26
  69. package/template/javascript/base/src/views/Home.vue +0 -7
  70. package/template/javascript/custom/eslint/_eslintrc.js +0 -10
  71. package/template/javascript/custom/eslint/package.json +0 -9
  72. package/template/javascript/custom/router/package.json +0 -5
  73. package/template/javascript/custom/router/src/App.vue +0 -7
  74. package/template/javascript/custom/router/src/layouts/default/Default.vue +0 -9
  75. package/template/javascript/custom/router/src/layouts/default/View.vue +0 -9
  76. package/template/javascript/custom/router/src/plugins/index.js +0 -15
  77. package/template/javascript/custom/router/src/router/index.js +0 -26
  78. package/template/javascript/custom/router/src/views/Home.vue +0 -7
  79. package/template/javascript/custom/router-pinia/src/plugins/index.js +0 -17
  80. package/template/javascript/custom/store/package.json +0 -5
  81. package/template/javascript/custom/store/src/plugins/index.js +0 -15
  82. package/template/javascript/custom/store/src/store/app.js +0 -8
  83. package/template/javascript/custom/store/src/store/index.js +0 -4
  84. package/template/javascript/essentials/README.md +0 -69
  85. package/template/javascript/essentials/_browserslistrc +0 -4
  86. package/template/javascript/essentials/_editorconfig +0 -5
  87. package/template/javascript/essentials/_eslintrc.js +0 -10
  88. package/template/javascript/essentials/_gitignore +0 -22
  89. package/template/javascript/essentials/index.html +0 -16
  90. package/template/javascript/essentials/jsconfig.json +0 -19
  91. package/template/javascript/essentials/public/favicon.ico +0 -0
  92. package/template/javascript/essentials/src/assets/logo.png +0 -0
  93. package/template/javascript/essentials/src/assets/logo.svg +0 -6
  94. package/template/javascript/essentials/src/components/HelloWorld.vue +0 -75
  95. package/template/javascript/essentials/src/layouts/default/Default.vue +0 -12
  96. package/template/javascript/essentials/src/main.js +0 -20
  97. package/template/javascript/essentials/src/plugins/vuetify.js +0 -26
  98. package/template/javascript/essentials/src/styles/settings.scss +0 -10
  99. package/template/javascript/essentials/src/views/Home.vue +0 -7
  100. package/template/typescript/base/README.md +0 -69
  101. package/template/typescript/base/_browserslistrc +0 -4
  102. package/template/typescript/base/_editorconfig +0 -5
  103. package/template/typescript/base/_gitignore +0 -22
  104. package/template/typescript/base/index.html +0 -16
  105. package/template/typescript/base/public/favicon.ico +0 -0
  106. package/template/typescript/base/src/assets/logo.png +0 -0
  107. package/template/typescript/base/src/assets/logo.svg +0 -6
  108. package/template/typescript/base/src/components/HelloWorld.vue +0 -75
  109. package/template/typescript/base/src/layouts/default/AppBar.vue +0 -13
  110. package/template/typescript/base/src/layouts/default/Default.vue +0 -12
  111. package/template/typescript/base/src/layouts/default/View.vue +0 -9
  112. package/template/typescript/base/src/main.ts +0 -20
  113. package/template/typescript/base/src/plugins/vuetify.ts +0 -26
  114. package/template/typescript/base/src/views/Home.vue +0 -7
  115. package/template/typescript/base/src/vite-env.d.ts +0 -7
  116. package/template/typescript/base/tsconfig.json +0 -25
  117. package/template/typescript/base/tsconfig.node.json +0 -9
  118. package/template/typescript/custom/eslint/_eslintrc.js +0 -14
  119. package/template/typescript/custom/eslint/package.json +0 -10
  120. package/template/typescript/custom/router/package.json +0 -5
  121. package/template/typescript/custom/router/src/layouts/default/Default.vue +0 -9
  122. package/template/typescript/custom/router/src/layouts/default/View.vue +0 -9
  123. package/template/typescript/custom/router/src/plugins/index.ts +0 -18
  124. package/template/typescript/custom/router/src/router/index.ts +0 -26
  125. package/template/typescript/custom/router/src/views/Home.vue +0 -7
  126. package/template/typescript/custom/router-pinia/src/plugins/index.ts +0 -20
  127. package/template/typescript/custom/store/package.json +0 -5
  128. package/template/typescript/custom/store/src/plugins/index.ts +0 -18
  129. package/template/typescript/custom/store/src/store/app.ts +0 -8
  130. package/template/typescript/custom/store/src/store/index.ts +0 -4
  131. package/template/typescript/essentials/README.md +0 -69
  132. package/template/typescript/essentials/_browserslistrc +0 -4
  133. package/template/typescript/essentials/_editorconfig +0 -5
  134. package/template/typescript/essentials/_eslintrc.js +0 -14
  135. package/template/typescript/essentials/_gitignore +0 -22
  136. package/template/typescript/essentials/index.html +0 -16
  137. package/template/typescript/essentials/public/favicon.ico +0 -0
  138. package/template/typescript/essentials/src/assets/logo.png +0 -0
  139. package/template/typescript/essentials/src/assets/logo.svg +0 -6
  140. package/template/typescript/essentials/src/components/HelloWorld.vue +0 -75
  141. package/template/typescript/essentials/src/layouts/default/Default.vue +0 -12
  142. package/template/typescript/essentials/src/main.ts +0 -20
  143. package/template/typescript/essentials/src/plugins/vuetify.ts +0 -26
  144. package/template/typescript/essentials/src/styles/settings.scss +0 -10
  145. package/template/typescript/essentials/src/views/Home.vue +0 -7
  146. package/template/typescript/essentials/src/vite-env.d.ts +0 -7
  147. package/template/typescript/essentials/tsconfig.json +0 -31
  148. package/template/typescript/essentials/tsconfig.node.json +0 -9
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- extends: [
7
- 'plugin:vue/vue3-essential',
8
- 'eslint:recommended',
9
- '@vue/eslint-config-typescript',
10
- ],
11
- rules: {
12
- 'vue/multi-word-component-names': 'off',
13
- },
14
- }
@@ -1,10 +0,0 @@
1
- {
2
- "scripts": {
3
- "lint": "eslint . --fix --ignore-path .gitignore"
4
- },
5
- "devDependencies": {
6
- "@vue/eslint-config-typescript": "^11.0.0",
7
- "eslint": "^8.0.0",
8
- "eslint-plugin-vue": "^9.0.0"
9
- }
10
- }
@@ -1,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "vue-router": "^4.0.0"
4
- }
5
- }
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-app>
3
- <default-view />
4
- </v-app>
5
- </template>
6
-
7
- <script lang="ts" setup>
8
- import DefaultView from './View.vue'
9
- </script>
@@ -1,9 +0,0 @@
1
- <template>
2
- <v-main>
3
- <router-view />
4
- </v-main>
5
- </template>
6
-
7
- <script lang="ts" setup>
8
- //
9
- </script>
@@ -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 (about.[hash].js) for this route
14
- // which is lazy-loaded when the route is visited.
15
- component: () => import(/* webpackChunkName: "home" */ '@/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,7 +0,0 @@
1
- <template>
2
- <HelloWorld />
3
- </template>
4
-
5
- <script lang="ts" setup>
6
- import HelloWorld from '@/components/HelloWorld.vue'
7
- </script>
@@ -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,5 +0,0 @@
1
- {
2
- "dependencies": {
3
- "pinia": "^2.0.23"
4
- }
5
- }
@@ -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,8 +0,0 @@
1
- // Utilities
2
- import { defineStore } from 'pinia'
3
-
4
- export const useAppStore = defineStore('app', {
5
- state: () => ({
6
- //
7
- }),
8
- })
@@ -1,4 +0,0 @@
1
- // Utilities
2
- import { createPinia } from 'pinia'
3
-
4
- export default createPinia()
@@ -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,4 +0,0 @@
1
- > 1%
2
- last 2 versions
3
- not dead
4
- not ie 11
@@ -1,5 +0,0 @@
1
- [*.{js,jsx,ts,tsx,vue}]
2
- indent_style = space
3
- indent_size = 2
4
- trim_trailing_whitespace = true
5
- insert_final_newline = true
@@ -1,14 +0,0 @@
1
- module.exports = {
2
- root: true,
3
- env: {
4
- node: true,
5
- },
6
- extends: [
7
- 'plugin:vue/vue3-essential',
8
- 'eslint:recommended',
9
- '@vue/eslint-config-typescript',
10
- ],
11
- rules: {
12
- 'vue/multi-word-component-names': 'off',
13
- },
14
- }
@@ -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>
@@ -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,12 +0,0 @@
1
- <template>
2
- <v-app>
3
- <default-bar />
4
-
5
- <default-view />
6
- </v-app>
7
- </template>
8
-
9
- <script lang="ts" setup>
10
- import DefaultBar from './AppBar.vue'
11
- import DefaultView from './View.vue'
12
- </script>
@@ -1,20 +0,0 @@
1
- /**
2
- * main.ts
3
- *
4
- * Bootstraps Vuetify and other plugins then mounts the App`
5
- */
6
-
7
- // Components
8
- import App from './App.vue'
9
-
10
- // Composables
11
- import { createApp } from 'vue'
12
-
13
- // Plugins
14
- import { registerPlugins } from '@/plugins'
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,10 +0,0 @@
1
- /**
2
- * src/styles/settings.scss
3
- *
4
- * Configures SASS variables and Vuetify overwrites
5
- */
6
-
7
- // https://vuetifyjs.com/features/sass-variables/`
8
- // @use 'vuetify/settings' with (
9
- // $color-pack: false
10
- // );
@@ -1,7 +0,0 @@
1
- <template>
2
- <HelloWorld />
3
- </template>
4
-
5
- <script lang="ts" setup>
6
- import HelloWorld from '@/components/HelloWorld.vue'
7
- </script>
@@ -1,7 +0,0 @@
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
- }
@@ -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,9 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "composite": true,
4
- "module": "ESNext",
5
- "moduleResolution": "Node",
6
- "allowSyntheticDefaultImports": true
7
- },
8
- "include": ["vite.config.ts"]
9
- }