create-vuetify 1.1.0 → 1.1.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.
- package/dist/output.cjs +1 -4
- package/package.json +1 -1
- package/template/javascript/base/src/main.js +3 -3
- package/template/javascript/base/src/router/index.js +2 -2
- package/template/javascript/base/vite.config.js +1 -1
- package/template/javascript/custom/router/src/router/index.js +2 -2
- package/template/javascript/default/package.json +1 -1
- package/template/javascript/default/src/main.js +3 -3
- package/template/javascript/default/vite.config.js +1 -1
- package/template/javascript/essentials/src/main.js +3 -3
- package/template/javascript/essentials/src/router/index.js +2 -2
- package/template/javascript/essentials/vite.config.js +1 -1
- package/template/typescript/base/src/main.ts +3 -3
- package/template/typescript/base/src/router/index.ts +2 -2
- package/template/typescript/base/vite.config.ts +10 -16
- package/template/typescript/custom/router/src/router/index.ts +2 -2
- package/template/typescript/default/src/main.ts +3 -3
- package/template/typescript/default/vite.config.ts +10 -16
- package/template/typescript/essentials/src/main.ts +3 -3
- package/template/typescript/essentials/src/router/index.ts +2 -2
- package/template/typescript/essentials/tsconfig.json +1 -1
- package/template/typescript/essentials/vite.config.ts +10 -16
package/dist/output.cjs
CHANGED
|
@@ -14,10 +14,7 @@ var __copyProps = (to, from, except, desc) => {
|
|
|
14
14
|
}
|
|
15
15
|
return to;
|
|
16
16
|
};
|
|
17
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
18
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
19
|
-
mod
|
|
20
|
-
));
|
|
17
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target, mod));
|
|
21
18
|
|
|
22
19
|
// src/index.ts
|
|
23
20
|
var import_path3 = require("path");
|
package/package.json
CHANGED
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -13,7 +13,7 @@ export default defineConfig({
|
|
|
13
13
|
vue({
|
|
14
14
|
template: { transformAssetUrls }
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
styles: {
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -13,7 +13,7 @@ export default defineConfig({
|
|
|
13
13
|
vue({
|
|
14
14
|
template: { transformAssetUrls }
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
}),
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -13,7 +13,7 @@ export default defineConfig({
|
|
|
13
13
|
vue({
|
|
14
14
|
template: { transformAssetUrls }
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
styles: {
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -11,9 +11,9 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
11
11
|
export default defineConfig({
|
|
12
12
|
plugins: [
|
|
13
13
|
vue({
|
|
14
|
-
template: { transformAssetUrls }
|
|
14
|
+
template: { transformAssetUrls },
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
styles: {
|
|
@@ -22,27 +22,21 @@ export default defineConfig({
|
|
|
22
22
|
}),
|
|
23
23
|
ViteFonts({
|
|
24
24
|
google: {
|
|
25
|
-
families: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
families: [
|
|
26
|
+
{
|
|
27
|
+
name: 'Roboto',
|
|
28
|
+
styles: 'wght@100;300;400;500;700;900',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
29
31
|
},
|
|
30
32
|
}),
|
|
31
33
|
],
|
|
32
34
|
define: { 'process.env': {} },
|
|
33
35
|
resolve: {
|
|
34
36
|
alias: {
|
|
35
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
37
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
36
38
|
},
|
|
37
|
-
extensions: [
|
|
38
|
-
'.js',
|
|
39
|
-
'.json',
|
|
40
|
-
'.jsx',
|
|
41
|
-
'.mjs',
|
|
42
|
-
'.ts',
|
|
43
|
-
'.tsx',
|
|
44
|
-
'.vue',
|
|
45
|
-
],
|
|
39
|
+
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
|
|
46
40
|
},
|
|
47
41
|
server: {
|
|
48
42
|
port: 3000,
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -11,35 +11,29 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
11
11
|
export default defineConfig({
|
|
12
12
|
plugins: [
|
|
13
13
|
vue({
|
|
14
|
-
template: { transformAssetUrls }
|
|
14
|
+
template: { transformAssetUrls },
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
}),
|
|
20
20
|
ViteFonts({
|
|
21
21
|
google: {
|
|
22
|
-
families: [
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
22
|
+
families: [
|
|
23
|
+
{
|
|
24
|
+
name: 'Roboto',
|
|
25
|
+
styles: 'wght@100;300;400;500;700;900',
|
|
26
|
+
},
|
|
27
|
+
],
|
|
26
28
|
},
|
|
27
29
|
}),
|
|
28
30
|
],
|
|
29
31
|
define: { 'process.env': {} },
|
|
30
32
|
resolve: {
|
|
31
33
|
alias: {
|
|
32
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
34
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
33
35
|
},
|
|
34
|
-
extensions: [
|
|
35
|
-
'.js',
|
|
36
|
-
'.json',
|
|
37
|
-
'.jsx',
|
|
38
|
-
'.mjs',
|
|
39
|
-
'.ts',
|
|
40
|
-
'.tsx',
|
|
41
|
-
'.vue',
|
|
42
|
-
],
|
|
36
|
+
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
|
|
43
37
|
},
|
|
44
38
|
server: {
|
|
45
39
|
port: 3000,
|
|
@@ -4,15 +4,15 @@
|
|
|
4
4
|
* Bootstraps Vuetify and other plugins then mounts the App`
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
+
// Plugins
|
|
8
|
+
import { registerPlugins } from '@/plugins'
|
|
9
|
+
|
|
7
10
|
// Components
|
|
8
11
|
import App from './App.vue'
|
|
9
12
|
|
|
10
13
|
// Composables
|
|
11
14
|
import { createApp } from 'vue'
|
|
12
15
|
|
|
13
|
-
// Plugins
|
|
14
|
-
import { registerPlugins } from '@/plugins'
|
|
15
|
-
|
|
16
16
|
const app = createApp(App)
|
|
17
17
|
|
|
18
18
|
registerPlugins(app)
|
|
@@ -10,9 +10,9 @@ const routes = [
|
|
|
10
10
|
path: '',
|
|
11
11
|
name: 'Home',
|
|
12
12
|
// route level code-splitting
|
|
13
|
-
// this generates a separate chunk (
|
|
13
|
+
// this generates a separate chunk (Home-[hash].js) for this route
|
|
14
14
|
// which is lazy-loaded when the route is visited.
|
|
15
|
-
component: () => import(
|
|
15
|
+
component: () => import('@/views/Home.vue'),
|
|
16
16
|
},
|
|
17
17
|
],
|
|
18
18
|
},
|
|
@@ -11,9 +11,9 @@ import { fileURLToPath, URL } from 'node:url'
|
|
|
11
11
|
export default defineConfig({
|
|
12
12
|
plugins: [
|
|
13
13
|
vue({
|
|
14
|
-
template: { transformAssetUrls }
|
|
14
|
+
template: { transformAssetUrls },
|
|
15
15
|
}),
|
|
16
|
-
// https://github.com/vuetifyjs/vuetify-loader/tree/
|
|
16
|
+
// https://github.com/vuetifyjs/vuetify-loader/tree/master/packages/vite-plugin#readme
|
|
17
17
|
vuetify({
|
|
18
18
|
autoImport: true,
|
|
19
19
|
styles: {
|
|
@@ -22,27 +22,21 @@ export default defineConfig({
|
|
|
22
22
|
}),
|
|
23
23
|
ViteFonts({
|
|
24
24
|
google: {
|
|
25
|
-
families: [
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
25
|
+
families: [
|
|
26
|
+
{
|
|
27
|
+
name: 'Roboto',
|
|
28
|
+
styles: 'wght@100;300;400;500;700;900',
|
|
29
|
+
},
|
|
30
|
+
],
|
|
29
31
|
},
|
|
30
32
|
}),
|
|
31
33
|
],
|
|
32
34
|
define: { 'process.env': {} },
|
|
33
35
|
resolve: {
|
|
34
36
|
alias: {
|
|
35
|
-
'@': fileURLToPath(new URL('./src', import.meta.url))
|
|
37
|
+
'@': fileURLToPath(new URL('./src', import.meta.url)),
|
|
36
38
|
},
|
|
37
|
-
extensions: [
|
|
38
|
-
'.js',
|
|
39
|
-
'.json',
|
|
40
|
-
'.jsx',
|
|
41
|
-
'.mjs',
|
|
42
|
-
'.ts',
|
|
43
|
-
'.tsx',
|
|
44
|
-
'.vue',
|
|
45
|
-
],
|
|
39
|
+
extensions: ['.js', '.json', '.jsx', '.mjs', '.ts', '.tsx', '.vue'],
|
|
46
40
|
},
|
|
47
41
|
server: {
|
|
48
42
|
port: 3000,
|