create-vuetify 2.8.0-beta.1 → 3.0.12-beta-next.1

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 (117) hide show
  1. package/README.md +21 -65
  2. package/dist/index.mjs +32794 -2210
  3. package/dist/multipart-parser-BDbtnXsM.mjs +175 -0
  4. package/dist/node-CLMJD8D0.mjs +4005 -0
  5. package/dist/prompt-C6GjoyNB.mjs +848 -0
  6. package/package.json +29 -59
  7. package/src/commands/upgrade.ts +5 -0
  8. package/src/index.ts +40 -0
  9. package/test/index.test.ts +117 -0
  10. package/tsdown.config.ts +7 -0
  11. package/bin/index.js +0 -3
  12. package/template/javascript/base/eslint.config.js +0 -3
  13. package/template/javascript/base/package.json +0 -13
  14. package/template/javascript/base/src/App.vue +0 -11
  15. package/template/javascript/base/src/components/HelloWorld.vue +0 -90
  16. package/template/javascript/base/src/pages/README.md +0 -5
  17. package/template/javascript/base/src/pages/index.vue +0 -7
  18. package/template/javascript/base/src/plugins/index.js +0 -15
  19. package/template/javascript/base/src/router/index.js +0 -35
  20. package/template/javascript/base/src/styles/README.md +0 -3
  21. package/template/javascript/base/src/styles/settings.scss +0 -10
  22. package/template/javascript/base/vite.config.mjs +0 -66
  23. package/template/javascript/default/.vscode/extensions.json +0 -3
  24. package/template/javascript/default/.vscode/settings.json +0 -3
  25. package/template/javascript/default/README.md +0 -79
  26. package/template/javascript/default/_browserslistrc +0 -4
  27. package/template/javascript/default/_editorconfig +0 -5
  28. package/template/javascript/default/_gitignore +0 -22
  29. package/template/javascript/default/index.html +0 -13
  30. package/template/javascript/default/jsconfig.json +0 -20
  31. package/template/javascript/default/package.json +0 -24
  32. package/template/javascript/default/public/favicon.ico +0 -0
  33. package/template/javascript/default/src/App.vue +0 -13
  34. package/template/javascript/default/src/assets/logo.png +0 -0
  35. package/template/javascript/default/src/assets/logo.svg +0 -6
  36. package/template/javascript/default/src/components/AppFooter.vue +0 -82
  37. package/template/javascript/default/src/components/HelloWorld.vue +0 -90
  38. package/template/javascript/default/src/components/README.md +0 -35
  39. package/template/javascript/default/src/main.js +0 -23
  40. package/template/javascript/default/src/plugins/README.md +0 -3
  41. package/template/javascript/default/src/plugins/index.js +0 -12
  42. package/template/javascript/default/src/plugins/vuetify.js +0 -19
  43. package/template/javascript/default/vite.config.mjs +0 -53
  44. package/template/javascript/essentials/_eslintrc-auto-import.json +0 -82
  45. package/template/javascript/essentials/package.json +0 -9
  46. package/template/javascript/essentials/src/App.vue +0 -9
  47. package/template/javascript/essentials/src/layouts/README.md +0 -5
  48. package/template/javascript/essentials/src/layouts/default.vue +0 -11
  49. package/template/javascript/essentials/src/plugins/index.js +0 -17
  50. package/template/javascript/essentials/src/router/index.js +0 -36
  51. package/template/javascript/essentials/src/stores/README.md +0 -5
  52. package/template/javascript/essentials/src/stores/app.js +0 -8
  53. package/template/javascript/essentials/src/stores/index.js +0 -4
  54. package/template/javascript/essentials/vite.config.mjs +0 -80
  55. package/template/typescript/base/env.d.ts +0 -2
  56. package/template/typescript/base/eslint.config.js +0 -3
  57. package/template/typescript/base/package.json +0 -13
  58. package/template/typescript/base/src/App.vue +0 -11
  59. package/template/typescript/base/src/components/HelloWorld.vue +0 -90
  60. package/template/typescript/base/src/pages/README.md +0 -5
  61. package/template/typescript/base/src/pages/index.vue +0 -7
  62. package/template/typescript/base/src/plugins/index.ts +0 -18
  63. package/template/typescript/base/src/router/index.ts +0 -35
  64. package/template/typescript/base/src/styles/README.md +0 -3
  65. package/template/typescript/base/src/styles/settings.scss +0 -10
  66. package/template/typescript/base/vite.config.mts +0 -70
  67. package/template/typescript/default/.vscode/extensions.json +0 -3
  68. package/template/typescript/default/.vscode/settings.json +0 -3
  69. package/template/typescript/default/README.md +0 -81
  70. package/template/typescript/default/_browserslistrc +0 -4
  71. package/template/typescript/default/_editorconfig +0 -6
  72. package/template/typescript/default/_gitignore +0 -22
  73. package/template/typescript/default/env.d.ts +0 -1
  74. package/template/typescript/default/index.html +0 -13
  75. package/template/typescript/default/package.json +0 -32
  76. package/template/typescript/default/public/favicon.ico +0 -0
  77. package/template/typescript/default/src/App.vue +0 -11
  78. package/template/typescript/default/src/assets/logo.png +0 -0
  79. package/template/typescript/default/src/assets/logo.svg +0 -6
  80. package/template/typescript/default/src/components/HelloWorld.vue +0 -90
  81. package/template/typescript/default/src/components/README.md +0 -35
  82. package/template/typescript/default/src/main.ts +0 -23
  83. package/template/typescript/default/src/plugins/README.md +0 -3
  84. package/template/typescript/default/src/plugins/index.ts +0 -15
  85. package/template/typescript/default/src/plugins/vuetify.ts +0 -19
  86. package/template/typescript/default/tsconfig.app.json +0 -14
  87. package/template/typescript/default/tsconfig.json +0 -11
  88. package/template/typescript/default/tsconfig.node.json +0 -19
  89. package/template/typescript/default/vite.config.mts +0 -53
  90. package/template/typescript/essentials/_eslintrc-auto-import.json +0 -82
  91. package/template/typescript/essentials/env.d.ts +0 -3
  92. package/template/typescript/essentials/package.json +0 -9
  93. package/template/typescript/essentials/src/App.vue +0 -9
  94. package/template/typescript/essentials/src/auto-imports.d.ts +0 -147
  95. package/template/typescript/essentials/src/components/AppFooter.vue +0 -82
  96. package/template/typescript/essentials/src/components.d.ts +0 -14
  97. package/template/typescript/essentials/src/layouts/README.md +0 -5
  98. package/template/typescript/essentials/src/layouts/default.vue +0 -11
  99. package/template/typescript/essentials/src/plugins/index.ts +0 -20
  100. package/template/typescript/essentials/src/router/index.ts +0 -36
  101. package/template/typescript/essentials/src/stores/README.md +0 -5
  102. package/template/typescript/essentials/src/stores/app.ts +0 -8
  103. package/template/typescript/essentials/src/stores/index.ts +0 -4
  104. package/template/typescript/essentials/src/typed-router.d.ts +0 -23
  105. package/template/typescript/essentials/vite.config.mts +0 -88
  106. package/template/typescript/nuxt/app-layout.vue +0 -5
  107. package/template/typescript/nuxt/app.vue +0 -9
  108. package/template/typescript/nuxt/assets/logo.png +0 -0
  109. package/template/typescript/nuxt/assets/logo.svg +0 -6
  110. package/template/typescript/nuxt/components/AppFooter.vue +0 -82
  111. package/template/typescript/nuxt/components/HelloWorld.vue +0 -90
  112. package/template/typescript/nuxt/layouts/default.vue +0 -9
  113. package/template/typescript/nuxt/modules/vuetify.ts +0 -137
  114. package/template/typescript/nuxt/pages/index.vue +0 -7
  115. package/template/typescript/nuxt/plugins/vuetify-nuxt.ts +0 -8
  116. package/template/typescript/nuxt/plugins/vuetify.ts +0 -14
  117. package/template/typescript/nuxt/vuetify.config.ts +0 -8
package/package.json CHANGED
@@ -1,71 +1,41 @@
1
1
  {
2
2
  "name": "create-vuetify",
3
- "version": "2.8.0-beta.1",
4
- "author": "Elijah Kotyluk <elijah@elijahkotyluk.com>",
5
- "license": "MIT",
3
+ "version": "3.0.12-beta-next.1",
4
+ "description": "Create a new Vuetify project",
6
5
  "type": "module",
7
6
  "bin": {
8
- "create-vuetify": "bin/index.js"
9
- },
10
- "files": [
11
- "bin/index.js",
12
- "template",
13
- "dist"
14
- ],
15
- "repository": {
16
- "type": "git",
17
- "url": "git+https://github.com/vuetifyjs/create.git"
18
- },
19
- "bugs": {
20
- "url": "https://github.com/vuetifyjs/create/issues"
21
- },
22
- "keywords": [
23
- "vuetify",
24
- "vue",
25
- "vue3",
26
- "ui",
27
- "scaffolding",
28
- "cli",
29
- "template",
30
- "create",
31
- "boilerplate",
32
- "starter",
33
- "typescript",
34
- "javascript",
35
- "vite",
36
- "pinia",
37
- "vue-router",
38
- "nuxt",
39
- "material-design",
40
- "material-ui",
41
- "components"
42
- ],
43
- "dependencies": {
44
- "kolorist": "^1.8.0",
45
- "magicast": "^0.3.5",
46
- "minimist": "^1.2.8",
47
- "package-manager-detector": "^1.3.0",
48
- "prompts": "^2.4.2",
49
- "tinyexec": "^1.0.1",
50
- "validate-npm-package-name": "^6.0.2"
7
+ "create-vuetify": "./dist/index.mjs"
51
8
  },
9
+ "keywords": [],
10
+ "author": "Andrey Yolkin <andreyyolkin@gmail.com>",
11
+ "license": "MIT",
52
12
  "devDependencies": {
53
- "@types/minimist": "^1.2.5",
54
- "@types/node": "^22.18.5",
55
- "@types/prompts": "^2.4.9",
13
+ "@bomb.sh/tab": "^0.0.11",
14
+ "@clack/prompts": "^1.0.0-alpha.9",
56
15
  "@types/validate-npm-package-name": "^4.0.2",
57
- "bumpp": "^10.2.3",
58
- "esbuild": "^0.25.9",
59
- "eslint": "^9.35.0",
60
- "eslint-config-vuetify": "^4.2.0",
16
+ "citty": "^0.1.6",
17
+ "giget": "^2.0.0",
18
+ "kolorist": "^1.8.0",
61
19
  "nypm": "^0.6.2",
62
- "typescript": "^5.9.2"
20
+ "pathe": "^2.0.3",
21
+ "tsdown": "^0.16.8",
22
+ "vitest": "^4.0.17",
23
+ "@vuetify/cli-shared": "0.0.12-beta.1"
24
+ },
25
+ "main": "./dist/index.mjs",
26
+ "module": "./dist/index.mjs",
27
+ "exports": {
28
+ ".": "./dist/index.mjs",
29
+ "./package.json": "./package.json"
30
+ },
31
+ "dependencies": {
32
+ "magicast": "^0.5.1",
33
+ "package-manager-detector": "^1.6.0",
34
+ "pkg-types": "^2.3.0",
35
+ "tinyexec": "^1.0.2",
36
+ "validate-npm-package-name": "^7.0.2"
63
37
  },
64
38
  "scripts": {
65
- "build": "node ./scripts/build.js",
66
- "start": "node ./index.js",
67
- "dev": "node --run build && node --run start",
68
- "lint": "eslint --fix .",
69
- "release": "bumpp"
39
+ "build": "tsdown"
70
40
  }
71
41
  }
@@ -0,0 +1,5 @@
1
+ import { commandUpgradeFabric } from '@vuetify/cli-shared'
2
+
3
+ export const upgrade = commandUpgradeFabric('create-vuetify')
4
+
5
+ export default upgrade
package/src/index.ts ADDED
@@ -0,0 +1,40 @@
1
+ import tab from '@bomb.sh/tab/citty'
2
+ import { createVuetify, projectArgs, registerProjectArgsCompletion } from '@vuetify/cli-shared'
3
+ import { i18n } from '@vuetify/cli-shared/i18n'
4
+ import { defineCommand, runMain } from 'citty'
5
+
6
+ import { version } from '../package.json'
7
+ import { upgrade } from './commands/upgrade'
8
+
9
+ export const main = defineCommand({
10
+ meta: {
11
+ name: 'create-vuetify',
12
+ version,
13
+ description: i18n.t('cli.create.description'),
14
+ },
15
+ args: {
16
+ ...projectArgs(),
17
+ cwd: {
18
+ type: 'string',
19
+ description: 'The current working directory',
20
+ },
21
+ },
22
+ run: async ({ args }) => {
23
+ if (args._[0] === 'complete') {
24
+ return
25
+ }
26
+ await createVuetify({
27
+ ...args,
28
+ version,
29
+ })
30
+ },
31
+ subCommands: {
32
+ upgrade,
33
+ },
34
+ })
35
+
36
+ await tab(main).then(completion => {
37
+ registerProjectArgsCompletion(completion)
38
+ })
39
+
40
+ runMain(main)
@@ -0,0 +1,117 @@
1
+ import fs from 'node:fs'
2
+ import { join, resolve } from 'pathe'
3
+ import { x } from 'tinyexec'
4
+ import { afterAll, beforeAll, describe, expect, it } from 'vitest'
5
+
6
+ const CLI_PATH = resolve(__dirname, '../dist/index.mjs')
7
+ // Assuming templates are at the root of the repo
8
+ const TEMPLATES_PATH = resolve(__dirname, '../../../templates')
9
+ const TEMP_DIR = resolve(__dirname, '../.test-tmp')
10
+
11
+ const TIMEOUT = 10_000 // 10s
12
+
13
+ describe('create-vuetify matrix', () => {
14
+ beforeAll(() => {
15
+ if (!fs.existsSync(TEMP_DIR)) {
16
+ fs.mkdirSync(TEMP_DIR)
17
+ }
18
+ })
19
+
20
+ afterAll(() => {
21
+ // fs.rmSync(TEMP_DIR, { recursive: true, force: true })
22
+ })
23
+
24
+ const runCli = async (args: string[], cwd: string) => {
25
+ try {
26
+ const proc = x('node', [CLI_PATH, ...args], {
27
+ nodeOptions: {
28
+ cwd,
29
+ env: {
30
+ ...process.env,
31
+ VUETIFY_CLI_TEMPLATES_PATH: TEMPLATES_PATH,
32
+ },
33
+ },
34
+ throwOnError: true,
35
+ })
36
+
37
+ for await (const line of proc) {
38
+ console.log(line)
39
+ }
40
+
41
+ return await proc
42
+ } catch (error: any) {
43
+ console.error('Command failed:', error.message)
44
+ console.error('STDOUT:', error.stdout)
45
+ console.error('STDERR:', error.stderr)
46
+ throw error
47
+ }
48
+ }
49
+
50
+ const matrix = [
51
+ // Vue + JS
52
+ { name: 'vue-js', args: ['--type=vue', '--no-typescript', '--features='] },
53
+ // Vue + TS
54
+ { name: 'vue-ts', args: ['--type=vue', '--typescript', '--features='] },
55
+ // Vue + TS + Router
56
+ { name: 'vue-ts-router', args: ['--type=vue', '--typescript', '--router=router'] },
57
+ // Vue + TS + Pinia
58
+ { name: 'vue-ts-pinia', args: ['--type=vue', '--typescript', '--features=pinia'] },
59
+ // Vue + TS + ESLint
60
+ { name: 'vue-ts-eslint', args: ['--type=vue', '--typescript', '--features=eslint'] },
61
+ // Vue + TS + All
62
+ { name: 'vue-ts-all', args: ['--type=vue', '--typescript', '--router=router', '--features=pinia,eslint'] },
63
+
64
+ // Nuxt
65
+ { name: 'nuxt', args: ['--type=nuxt', '--features='] },
66
+ // Nuxt + Pinia
67
+ { name: 'nuxt-pinia', args: ['--type=nuxt', '--features=pinia'] },
68
+ // Nuxt + Vuetify Module
69
+ { name: 'nuxt-module', args: ['--type=nuxt', '--features=vuetify-nuxt-module'] },
70
+ // Nuxt + All
71
+ { name: 'nuxt-all', args: ['--type=nuxt', '--features=pinia,eslint,vuetify-nuxt-module'] },
72
+ ]
73
+
74
+ for (const { name, args } of matrix) {
75
+ it(`should create project ${name}`, async () => {
76
+ const projectName = `test-${name}`
77
+ const projectPath = join(TEMP_DIR, projectName)
78
+
79
+ // Clean up previous run
80
+ if (fs.existsSync(projectPath)) {
81
+ fs.rmSync(projectPath, { recursive: true, force: true })
82
+ }
83
+
84
+ const cliArgs = [`--name=${projectName}`, ...args, '--package-manager=pnpm', '--force', '--no-install', '--no-interactive']
85
+
86
+ console.log(`Running: create-vuetify ${cliArgs.join(' ')}`)
87
+ const { stdout, stderr } = await runCli(cliArgs, TEMP_DIR)
88
+ console.log('STDOUT:', stdout)
89
+ if (stderr) {
90
+ console.error('STDERR:', stderr)
91
+ }
92
+
93
+ expect(fs.existsSync(projectPath)).toBe(true)
94
+ expect(fs.existsSync(join(projectPath, 'package.json'))).toBe(true)
95
+
96
+ // Basic check for file structure
97
+ if (args.includes('vue')) {
98
+ expect(fs.existsSync(join(projectPath, 'src/main.ts')) || fs.existsSync(join(projectPath, 'src/main.js'))).toBe(true)
99
+ } else if (args.includes('nuxt')) {
100
+ expect(fs.existsSync(join(projectPath, 'nuxt.config.ts'))).toBe(true)
101
+
102
+ // Check for modules/vuetify.ts and dependencies
103
+ const hasModuleFeature = args.some(arg => arg.includes('vuetify-nuxt-module'))
104
+ if (hasModuleFeature) {
105
+ expect(fs.existsSync(join(projectPath, 'modules/vuetify.ts'))).toBe(false)
106
+ } else {
107
+ expect(fs.existsSync(join(projectPath, 'modules/vuetify.ts'))).toBe(true)
108
+
109
+ const pkg = JSON.parse(fs.readFileSync(join(projectPath, 'package.json'), 'utf8'))
110
+ expect(pkg.devDependencies).toHaveProperty('vite-plugin-vuetify')
111
+ expect(pkg.devDependencies).toHaveProperty('@vuetify/loader-shared')
112
+ expect(pkg.devDependencies).toHaveProperty('pathe')
113
+ }
114
+ }
115
+ }, TIMEOUT)
116
+ }
117
+ })
@@ -0,0 +1,7 @@
1
+ import { defineConfig } from 'tsdown/config'
2
+
3
+ export default defineConfig({
4
+ entry: './src/index.ts',
5
+ banner: `#!/usr/bin/env node`,
6
+ exports: true,
7
+ })
package/bin/index.js DELETED
@@ -1,3 +0,0 @@
1
- #!/usr/bin/env node
2
-
3
- import '../dist/index.mjs'
@@ -1,3 +0,0 @@
1
- import vuetify from 'eslint-config-vuetify'
2
-
3
- export default vuetify()
@@ -1,13 +0,0 @@
1
- {
2
- "scripts": {
3
- "lint": "eslint . --fix"
4
- },
5
- "dependencies": {
6
- "vue-router": "^4.5.1"
7
- },
8
- "devDependencies": {
9
- "eslint": "^9.35.0",
10
- "eslint-config-vuetify": "^4.2.0",
11
- "unplugin-vue-router": "^0.15.0"
12
- }
13
- }
@@ -1,11 +0,0 @@
1
- <template>
2
- <v-app>
3
- <v-main>
4
- <router-view />
5
- </v-main>
6
- </v-app>
7
- </template>
8
-
9
- <script setup>
10
- //
11
- </script>
@@ -1,90 +0,0 @@
1
- <template>
2
- <v-container class="fill-height d-flex align-center" max-width="900">
3
- <div>
4
- <v-img
5
- class="mb-4"
6
- height="150"
7
- src="@/assets/logo.png"
8
- />
9
-
10
- <div class="mb-8 text-center">
11
- <div class="text-body-2 font-weight-light mb-n1">Welcome to</div>
12
- <h1 class="text-h2 my-0 font-weight-bold">Vuetify</h1>
13
- </div>
14
-
15
- <v-row>
16
- <v-col cols="12">
17
- <v-card
18
- class="py-4"
19
- color="surface-variant"
20
- image="https://cdn.vuetifyjs.com/docs/images/one/create/feature.png"
21
- prepend-icon="mdi-rocket-launch-outline"
22
- rounded="lg"
23
- variant="tonal"
24
- >
25
- <template #image>
26
- <v-img position="top right" />
27
- </template>
28
-
29
- <template #title>
30
- <h2 class="text-h5 font-weight-bold">
31
- Get started
32
- </h2>
33
- </template>
34
-
35
- <template #subtitle>
36
- <div class="text-subtitle-1">
37
- Change this page by updating <v-kbd>{{ `<HelloWorld />` }}</v-kbd> in <v-kbd>components/HelloWorld.vue</v-kbd>.
38
- </div>
39
- </template>
40
- </v-card>
41
- </v-col>
42
-
43
- <v-col v-for="link in links" :key="link.href" cols="6">
44
- <v-card
45
- append-icon="mdi-open-in-new"
46
- class="py-4"
47
- color="surface-variant"
48
- :href="link.href"
49
- :prepend-icon="link.icon"
50
- rel="noopener noreferrer"
51
- rounded="lg"
52
- :subtitle="link.subtitle"
53
- target="_blank"
54
- :title="link.title"
55
- variant="tonal"
56
- />
57
- </v-col>
58
- </v-row>
59
- </div>
60
- </v-container>
61
- </template>
62
-
63
- <script setup>
64
- const links = [
65
- {
66
- href: 'https://vuetifyjs.com/',
67
- icon: 'mdi-text-box-outline',
68
- subtitle: 'Learn about all things Vuetify in our documentation.',
69
- title: 'Documentation',
70
- },
71
- {
72
- href: 'https://vuetifyjs.com/introduction/why-vuetify/#feature-guides',
73
- icon: 'mdi-star-circle-outline',
74
- subtitle: 'Explore available framework Features.',
75
- title: 'Features',
76
- },
77
- {
78
- href: 'https://vuetifyjs.com/components/all',
79
- icon: 'mdi-widgets-outline',
80
- subtitle: 'Discover components in the API Explorer.',
81
- title: 'Components',
82
- },
83
- {
84
- href: 'https://discord.vuetifyjs.com',
85
- icon: 'mdi-account-group-outline',
86
- subtitle: 'Connect with Vuetify developers.',
87
- title: 'Community',
88
- },
89
- ]
90
- </script>
@@ -1,5 +0,0 @@
1
- # Pages
2
-
3
- Vue components created in this folder will automatically be converted to navigatable routes.
4
-
5
- Full documentation for this feature can be found in the Official [unplugin-vue-router](https://github.com/posva/unplugin-vue-router) repository.
@@ -1,7 +0,0 @@
1
- <template>
2
- <HelloWorld />
3
- </template>
4
-
5
- <script setup>
6
- //
7
- </script>
@@ -1,15 +0,0 @@
1
- /**
2
- * plugins/index.js
3
- *
4
- * Automatically included in `./src/main.js`
5
- */
6
-
7
- // Plugins
8
- import vuetify from './vuetify'
9
- import router from '@/router'
10
-
11
- export function registerPlugins (app) {
12
- app
13
- .use(vuetify)
14
- .use(router)
15
- }
@@ -1,35 +0,0 @@
1
- /**
2
- * router/index.ts
3
- *
4
- * Automatic routes for `./src/pages/*.vue`
5
- */
6
-
7
- // Composables
8
- import { createRouter, createWebHistory } from 'vue-router'
9
- import { routes } from 'vue-router/auto-routes'
10
-
11
- const router = createRouter({
12
- history: createWebHistory(import.meta.env.BASE_URL),
13
- routes,
14
- })
15
-
16
- // Workaround for https://github.com/vitejs/vite/issues/11804
17
- router.onError((err, to) => {
18
- if (err?.message?.includes?.('Failed to fetch dynamically imported module')) {
19
- if (localStorage.getItem('vuetify:dynamic-reload')) {
20
- console.error('Dynamic import error, reloading page did not fix it', err)
21
- } else {
22
- console.log('Reloading page to fix dynamic import error')
23
- localStorage.setItem('vuetify:dynamic-reload', 'true')
24
- location.assign(to.fullPath)
25
- }
26
- } else {
27
- console.error(err)
28
- }
29
- })
30
-
31
- router.isReady().then(() => {
32
- localStorage.removeItem('vuetify:dynamic-reload')
33
- })
34
-
35
- export default router
@@ -1,3 +0,0 @@
1
- # Styles
2
-
3
- This directory is for configuring the styles of the application.
@@ -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,66 +0,0 @@
1
- // Plugins
2
- import Components from 'unplugin-vue-components/vite'
3
- import Vue from '@vitejs/plugin-vue'
4
- import Vuetify, { transformAssetUrls } from 'vite-plugin-vuetify'
5
- import Fonts from 'unplugin-fonts/vite'
6
- import VueRouter from 'unplugin-vue-router/vite'
7
-
8
- // Utilities
9
- import { defineConfig } from 'vite'
10
- import { fileURLToPath, URL } from 'node:url'
11
-
12
- // https://vitejs.dev/config/
13
- export default defineConfig({
14
- plugins: [
15
- VueRouter(),
16
- Vue({
17
- template: { transformAssetUrls },
18
- }),
19
- // https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
20
- Vuetify({
21
- autoImport: true,
22
- styles: {
23
- configFile: 'src/styles/settings.scss',
24
- },
25
- }),
26
- Components(),
27
- Fonts({
28
- fontsource: {
29
- families: [
30
- {
31
- name: 'Roboto',
32
- weights: [100, 300, 400, 500, 700, 900],
33
- styles: ['normal', 'italic'],
34
- },
35
- ],
36
- },
37
- }),
38
- ],
39
- optimizeDeps: {
40
- exclude: [
41
- 'vuetify',
42
- 'vue-router',
43
- 'unplugin-vue-router/runtime',
44
- 'unplugin-vue-router/data-loaders',
45
- 'unplugin-vue-router/data-loaders/basic',
46
- ],
47
- },
48
- define: { 'process.env': {} },
49
- resolve: {
50
- alias: {
51
- '@': fileURLToPath(new URL('src', import.meta.url)),
52
- },
53
- extensions: [
54
- '.js',
55
- '.json',
56
- '.jsx',
57
- '.mjs',
58
- '.ts',
59
- '.tsx',
60
- '.vue',
61
- ],
62
- },
63
- server: {
64
- port: 3000,
65
- },
66
- })
@@ -1,3 +0,0 @@
1
- {
2
- "recommendations": ["Vue.volar"]
3
- }
@@ -1,3 +0,0 @@
1
- {
2
- "vue.hover.rich": true
3
- }
@@ -1,79 +0,0 @@
1
- # Vuetify (Default)
2
-
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
-
5
- ## ❗️ Important Links
6
-
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)
12
-
13
- ## 💿 Install
14
-
15
- Set up your project using your preferred package manager. Use the corresponding command to install the dependencies:
16
-
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` |
23
-
24
- After completing the installation, your environment is ready for Vuetify development.
25
-
26
- ## ✨ Features
27
-
28
- - 🖼️ **Optimized Front-End Stack**: Leverage the latest Vue 3 and Vuetify {{VUETIFY_VERSION}} for a modern, reactive UI development experience. [Vue 3](https://v3.vuejs.org/) | [Vuetify {{VUETIFY_VERSION}}](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)
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.
35
-
36
- ## 💡 Usage
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
46
- ```
47
-
48
- (Repeat for npm, pnpm, and bun with respective commands.)
49
-
50
- > Add NODE_OPTIONS='--no-warnings' to suppress the JSON import warnings that happen as part of the Vuetify import mapping. If you are on Node [v21.3.0](https://nodejs.org/en/blog/release/v21.3.0) or higher, you can change this to NODE_OPTIONS='--disable-warning=5401'. If you don't mind the warning, you can remove this from your package.json dev script.
51
-
52
- ### Building for Production
53
-
54
- To build your project for production, use:
55
-
56
- ```bash
57
- yarn build
58
- ```
59
-
60
- (Repeat for npm, pnpm, and bun with respective commands.)
61
-
62
- Once the build process is completed, your application will be ready for deployment in a production environment.
63
-
64
- ## 💪 Support Vuetify Development
65
-
66
- 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:
67
-
68
- - [Requesting Enterprise Support](https://support.vuetifyjs.com/)
69
- - [Sponsoring John on Github](https://github.com/users/johnleider/sponsorship)
70
- - [Sponsoring Kael on Github](https://github.com/users/kaelwd/sponsorship)
71
- - [Supporting the team on Open Collective](https://opencollective.com/vuetify)
72
- - [Becoming a sponsor on Patreon](https://www.patreon.com/vuetify)
73
- - [Becoming a subscriber on Tidelift](https://tidelift.com/subscription/npm/vuetify)
74
- - [Making a one-time donation with Paypal](https://paypal.me/vuetify)
75
-
76
- ## 📑 License
77
- [MIT](http://opensource.org/licenses/MIT)
78
-
79
- Copyright (c) 2016-present Vuetify, LLC
@@ -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