create-vue 3.3.0 → 3.3.3
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/LICENSE +58 -0
- package/README.md +17 -1
- package/outfile.cjs +1074 -217
- package/package.json +4 -3
- package/template/base/node_modules/.bin/vite +2 -2
- package/template/base/package.json +3 -3
- package/template/code/default/src/components/HelloWorld.vue +2 -2
- package/template/code/default/src/components/TheWelcome.vue +23 -21
- package/template/code/router/src/components/HelloWorld.vue +2 -2
- package/template/code/router/src/components/TheWelcome.vue +23 -21
- package/template/code/router/src/views/HomeView.vue +1 -1
- package/template/code/typescript-default/src/components/HelloWorld.vue +2 -2
- package/template/code/typescript-default/src/components/TheWelcome.vue +23 -21
- package/template/code/typescript-router/src/components/HelloWorld.vue +2 -2
- package/template/code/typescript-router/src/components/TheWelcome.vue +23 -21
- package/template/code/typescript-router/src/views/HomeView.vue +1 -1
- package/template/config/cypress/cypress/support/commands.ts +2 -0
- package/template/config/cypress/node_modules/.bin/cypress +2 -2
- package/template/config/cypress/package.json +1 -1
- package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
- package/template/config/cypress-ct/package.json +2 -2
- package/template/config/jsx/node_modules/.bin/vite +2 -2
- package/template/config/jsx/package.json +5 -3
- package/template/config/pinia/package.json +2 -2
- package/template/config/pinia/src/stores/counter.js +8 -12
- package/template/config/router/package.json +2 -2
- package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
- package/template/config/typescript/package.json +2 -2
- package/template/config/vitest/node_modules/.bin/vitest +2 -2
- package/template/config/vitest/package.json +2 -2
- package/template/eslint/package.json +1 -7
- package/template/tsconfig/cypress-ct/package.json +5 -0
- package/template/tsconfig/vitest/package.json +1 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "create-vue",
|
|
3
|
-
"version": "3.3.
|
|
3
|
+
"version": "3.3.3",
|
|
4
4
|
"description": "An easy way to start a Vue project",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"bin": {
|
|
@@ -25,10 +25,11 @@
|
|
|
25
25
|
},
|
|
26
26
|
"homepage": "https://github.com/vuejs/create-vue#readme",
|
|
27
27
|
"devDependencies": {
|
|
28
|
-
"@types/eslint": "^8.4.
|
|
28
|
+
"@types/eslint": "^8.4.6",
|
|
29
29
|
"@types/prompts": "^2.0.14",
|
|
30
|
+
"@vue/create-eslint-config": "^0.1.2",
|
|
30
31
|
"@vue/tsconfig": "^0.1.3",
|
|
31
|
-
"esbuild": "^0.14.
|
|
32
|
+
"esbuild": "^0.14.53",
|
|
32
33
|
"esbuild-plugin-license": "^1.2.2",
|
|
33
34
|
"husky": "^8.0.1",
|
|
34
35
|
"kolorist": "^1.5.1",
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@3.0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../node_modules/.pnpm/vite@3.0.
|
|
16
|
+
exec node "$basedir/../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
|
|
17
17
|
fi
|
|
@@ -12,8 +12,8 @@ defineProps({
|
|
|
12
12
|
<h1 class="green">{{ msg }}</h1>
|
|
13
13
|
<h3>
|
|
14
14
|
You’ve successfully created a project with
|
|
15
|
-
<a
|
|
16
|
-
<a
|
|
15
|
+
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
16
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
|
|
17
17
|
</h3>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
15
15
|
<template #heading>Documentation</template>
|
|
16
16
|
|
|
17
17
|
Vue’s
|
|
18
|
-
<a
|
|
18
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
|
|
19
19
|
provides you with all information you need to get started.
|
|
20
20
|
</WelcomeItem>
|
|
21
21
|
|
|
@@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
26
26
|
<template #heading>Tooling</template>
|
|
27
27
|
|
|
28
28
|
This project is served and bundled with
|
|
29
|
-
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The
|
|
30
|
-
setup is
|
|
31
|
-
<a href="https://
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a href="https://
|
|
35
|
-
|
|
36
|
-
>.
|
|
29
|
+
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
|
|
30
|
+
recommended IDE setup is
|
|
31
|
+
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> +
|
|
32
|
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If
|
|
33
|
+
you need to test your components and web pages, check out
|
|
34
|
+
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and
|
|
35
|
+
<a href="https://on.cypress.io/component" target="_blank">Cypress Component Testing</a>.
|
|
37
36
|
|
|
38
37
|
<br />
|
|
39
38
|
|
|
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
47
46
|
<template #heading>Ecosystem</template>
|
|
48
47
|
|
|
49
48
|
Get official tools and libraries for your project:
|
|
50
|
-
<a
|
|
51
|
-
<a
|
|
52
|
-
<a
|
|
53
|
-
<a
|
|
54
|
-
resources, we suggest paying
|
|
55
|
-
<a
|
|
49
|
+
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
|
|
50
|
+
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
|
|
51
|
+
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
|
|
52
|
+
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
|
|
53
|
+
you need more resources, we suggest paying
|
|
54
|
+
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
|
|
56
55
|
a visit.
|
|
57
56
|
</WelcomeItem>
|
|
58
57
|
|
|
@@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
63
62
|
<template #heading>Community</template>
|
|
64
63
|
|
|
65
64
|
Got stuck? Ask your question on
|
|
66
|
-
<a
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
|
|
66
|
+
Discord server, or
|
|
67
|
+
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
|
|
68
|
+
>StackOverflow</a
|
|
69
|
+
>. You should also subscribe to
|
|
70
|
+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow
|
|
71
|
+
the official
|
|
72
|
+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
|
|
71
73
|
twitter account for latest news in the Vue world.
|
|
72
74
|
</WelcomeItem>
|
|
73
75
|
|
|
@@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
79
81
|
|
|
80
82
|
As an independent project, Vue relies on community backing for its sustainability. You can help
|
|
81
83
|
us by
|
|
82
|
-
<a
|
|
84
|
+
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
|
|
83
85
|
</WelcomeItem>
|
|
84
86
|
</template>
|
|
@@ -12,8 +12,8 @@ defineProps({
|
|
|
12
12
|
<h1 class="green">{{ msg }}</h1>
|
|
13
13
|
<h3>
|
|
14
14
|
You’ve successfully created a project with
|
|
15
|
-
<a
|
|
16
|
-
<a
|
|
15
|
+
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
16
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
|
|
17
17
|
</h3>
|
|
18
18
|
</div>
|
|
19
19
|
</template>
|
|
@@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
15
15
|
<template #heading>Documentation</template>
|
|
16
16
|
|
|
17
17
|
Vue’s
|
|
18
|
-
<a
|
|
18
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
|
|
19
19
|
provides you with all information you need to get started.
|
|
20
20
|
</WelcomeItem>
|
|
21
21
|
|
|
@@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
26
26
|
<template #heading>Tooling</template>
|
|
27
27
|
|
|
28
28
|
This project is served and bundled with
|
|
29
|
-
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The
|
|
30
|
-
setup is
|
|
31
|
-
<a href="https://
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a href="https://
|
|
35
|
-
|
|
36
|
-
>.
|
|
29
|
+
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
|
|
30
|
+
recommended IDE setup is
|
|
31
|
+
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> +
|
|
32
|
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If
|
|
33
|
+
you need to test your components and web pages, check out
|
|
34
|
+
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and
|
|
35
|
+
<a href="https://on.cypress.io/component" target="_blank">Cypress Component Testing</a>.
|
|
37
36
|
|
|
38
37
|
<br />
|
|
39
38
|
|
|
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
47
46
|
<template #heading>Ecosystem</template>
|
|
48
47
|
|
|
49
48
|
Get official tools and libraries for your project:
|
|
50
|
-
<a
|
|
51
|
-
<a
|
|
52
|
-
<a
|
|
53
|
-
<a
|
|
54
|
-
resources, we suggest paying
|
|
55
|
-
<a
|
|
49
|
+
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
|
|
50
|
+
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
|
|
51
|
+
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
|
|
52
|
+
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
|
|
53
|
+
you need more resources, we suggest paying
|
|
54
|
+
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
|
|
56
55
|
a visit.
|
|
57
56
|
</WelcomeItem>
|
|
58
57
|
|
|
@@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
63
62
|
<template #heading>Community</template>
|
|
64
63
|
|
|
65
64
|
Got stuck? Ask your question on
|
|
66
|
-
<a
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
|
|
66
|
+
Discord server, or
|
|
67
|
+
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
|
|
68
|
+
>StackOverflow</a
|
|
69
|
+
>. You should also subscribe to
|
|
70
|
+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow
|
|
71
|
+
the official
|
|
72
|
+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
|
|
71
73
|
twitter account for latest news in the Vue world.
|
|
72
74
|
</WelcomeItem>
|
|
73
75
|
|
|
@@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
79
81
|
|
|
80
82
|
As an independent project, Vue relies on community backing for its sustainability. You can help
|
|
81
83
|
us by
|
|
82
|
-
<a
|
|
84
|
+
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
|
|
83
85
|
</WelcomeItem>
|
|
84
86
|
</template>
|
|
@@ -9,8 +9,8 @@ defineProps<{
|
|
|
9
9
|
<h1 class="green">{{ msg }}</h1>
|
|
10
10
|
<h3>
|
|
11
11
|
You’ve successfully created a project with
|
|
12
|
-
<a
|
|
13
|
-
<a
|
|
12
|
+
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
13
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>.
|
|
14
14
|
</h3>
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
@@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
15
15
|
<template #heading>Documentation</template>
|
|
16
16
|
|
|
17
17
|
Vue’s
|
|
18
|
-
<a
|
|
18
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
|
|
19
19
|
provides you with all information you need to get started.
|
|
20
20
|
</WelcomeItem>
|
|
21
21
|
|
|
@@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
26
26
|
<template #heading>Tooling</template>
|
|
27
27
|
|
|
28
28
|
This project is served and bundled with
|
|
29
|
-
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The
|
|
30
|
-
setup is
|
|
31
|
-
<a href="https://
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a href="https://
|
|
35
|
-
|
|
36
|
-
>.
|
|
29
|
+
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
|
|
30
|
+
recommended IDE setup is
|
|
31
|
+
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> +
|
|
32
|
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If
|
|
33
|
+
you need to test your components and web pages, check out
|
|
34
|
+
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and
|
|
35
|
+
<a href="https://on.cypress.io/component" target="_blank">Cypress Component Testing</a>.
|
|
37
36
|
|
|
38
37
|
<br />
|
|
39
38
|
|
|
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
47
46
|
<template #heading>Ecosystem</template>
|
|
48
47
|
|
|
49
48
|
Get official tools and libraries for your project:
|
|
50
|
-
<a
|
|
51
|
-
<a
|
|
52
|
-
<a
|
|
53
|
-
<a
|
|
54
|
-
resources, we suggest paying
|
|
55
|
-
<a
|
|
49
|
+
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
|
|
50
|
+
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
|
|
51
|
+
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
|
|
52
|
+
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
|
|
53
|
+
you need more resources, we suggest paying
|
|
54
|
+
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
|
|
56
55
|
a visit.
|
|
57
56
|
</WelcomeItem>
|
|
58
57
|
|
|
@@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
63
62
|
<template #heading>Community</template>
|
|
64
63
|
|
|
65
64
|
Got stuck? Ask your question on
|
|
66
|
-
<a
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
|
|
66
|
+
Discord server, or
|
|
67
|
+
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
|
|
68
|
+
>StackOverflow</a
|
|
69
|
+
>. You should also subscribe to
|
|
70
|
+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow
|
|
71
|
+
the official
|
|
72
|
+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
|
|
71
73
|
twitter account for latest news in the Vue world.
|
|
72
74
|
</WelcomeItem>
|
|
73
75
|
|
|
@@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
79
81
|
|
|
80
82
|
As an independent project, Vue relies on community backing for its sustainability. You can help
|
|
81
83
|
us by
|
|
82
|
-
<a
|
|
84
|
+
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
|
|
83
85
|
</WelcomeItem>
|
|
84
86
|
</template>
|
|
@@ -9,8 +9,8 @@ defineProps<{
|
|
|
9
9
|
<h1 class="green">{{ msg }}</h1>
|
|
10
10
|
<h3>
|
|
11
11
|
You’ve successfully created a project with
|
|
12
|
-
<a
|
|
13
|
-
<a
|
|
12
|
+
<a href="https://vitejs.dev/" target="_blank" rel="noopener">Vite</a> +
|
|
13
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">Vue 3</a>. What's next?
|
|
14
14
|
</h3>
|
|
15
15
|
</div>
|
|
16
16
|
</template>
|
|
@@ -15,7 +15,7 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
15
15
|
<template #heading>Documentation</template>
|
|
16
16
|
|
|
17
17
|
Vue’s
|
|
18
|
-
<a
|
|
18
|
+
<a href="https://vuejs.org/" target="_blank" rel="noopener">official documentation</a>
|
|
19
19
|
provides you with all information you need to get started.
|
|
20
20
|
</WelcomeItem>
|
|
21
21
|
|
|
@@ -26,14 +26,13 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
26
26
|
<template #heading>Tooling</template>
|
|
27
27
|
|
|
28
28
|
This project is served and bundled with
|
|
29
|
-
<a href="https://vitejs.dev/guide/features.html" target="_blank">Vite</a>. The
|
|
30
|
-
setup is
|
|
31
|
-
<a href="https://
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
<a href="https://
|
|
35
|
-
|
|
36
|
-
>.
|
|
29
|
+
<a href="https://vitejs.dev/guide/features.html" target="_blank" rel="noopener">Vite</a>. The
|
|
30
|
+
recommended IDE setup is
|
|
31
|
+
<a href="https://code.visualstudio.com/" target="_blank" rel="noopener">VSCode</a> +
|
|
32
|
+
<a href="https://github.com/johnsoncodehk/volar" target="_blank" rel="noopener">Volar</a>. If
|
|
33
|
+
you need to test your components and web pages, check out
|
|
34
|
+
<a href="https://www.cypress.io/" target="_blank" rel="noopener">Cypress</a> and
|
|
35
|
+
<a href="https://on.cypress.io/component" target="_blank">Cypress Component Testing</a>.
|
|
37
36
|
|
|
38
37
|
<br />
|
|
39
38
|
|
|
@@ -47,12 +46,12 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
47
46
|
<template #heading>Ecosystem</template>
|
|
48
47
|
|
|
49
48
|
Get official tools and libraries for your project:
|
|
50
|
-
<a
|
|
51
|
-
<a
|
|
52
|
-
<a
|
|
53
|
-
<a
|
|
54
|
-
resources, we suggest paying
|
|
55
|
-
<a
|
|
49
|
+
<a href="https://pinia.vuejs.org/" target="_blank" rel="noopener">Pinia</a>,
|
|
50
|
+
<a href="https://router.vuejs.org/" target="_blank" rel="noopener">Vue Router</a>,
|
|
51
|
+
<a href="https://test-utils.vuejs.org/" target="_blank" rel="noopener">Vue Test Utils</a>, and
|
|
52
|
+
<a href="https://github.com/vuejs/devtools" target="_blank" rel="noopener">Vue Dev Tools</a>. If
|
|
53
|
+
you need more resources, we suggest paying
|
|
54
|
+
<a href="https://github.com/vuejs/awesome-vue" target="_blank" rel="noopener">Awesome Vue</a>
|
|
56
55
|
a visit.
|
|
57
56
|
</WelcomeItem>
|
|
58
57
|
|
|
@@ -63,11 +62,14 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
63
62
|
<template #heading>Community</template>
|
|
64
63
|
|
|
65
64
|
Got stuck? Ask your question on
|
|
66
|
-
<a
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
65
|
+
<a href="https://chat.vuejs.org" target="_blank" rel="noopener">Vue Land</a>, our official
|
|
66
|
+
Discord server, or
|
|
67
|
+
<a href="https://stackoverflow.com/questions/tagged/vue.js" target="_blank" rel="noopener"
|
|
68
|
+
>StackOverflow</a
|
|
69
|
+
>. You should also subscribe to
|
|
70
|
+
<a href="https://news.vuejs.org" target="_blank" rel="noopener">our mailing list</a> and follow
|
|
71
|
+
the official
|
|
72
|
+
<a href="https://twitter.com/vuejs" target="_blank" rel="noopener">@vuejs</a>
|
|
71
73
|
twitter account for latest news in the Vue world.
|
|
72
74
|
</WelcomeItem>
|
|
73
75
|
|
|
@@ -79,6 +81,6 @@ import SupportIcon from './icons/IconSupport.vue'
|
|
|
79
81
|
|
|
80
82
|
As an independent project, Vue relies on community backing for its sustainability. You can help
|
|
81
83
|
us by
|
|
82
|
-
<a
|
|
84
|
+
<a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
|
|
83
85
|
</WelcomeItem>
|
|
84
86
|
</template>
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@3.0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
|
|
17
17
|
fi
|
|
@@ -1,16 +1,12 @@
|
|
|
1
|
+
import { ref, computed } from 'vue'
|
|
1
2
|
import { defineStore } from 'pinia'
|
|
2
3
|
|
|
3
|
-
export const useCounterStore = defineStore({
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
getters: {
|
|
9
|
-
doubleCount: (state) => state.counter * 2
|
|
10
|
-
},
|
|
11
|
-
actions: {
|
|
12
|
-
increment() {
|
|
13
|
-
this.counter++
|
|
14
|
-
}
|
|
4
|
+
export const useCounterStore = defineStore('counter', () => {
|
|
5
|
+
const count = ref(0)
|
|
6
|
+
const doubleCount = computed(() => count.value * 2)
|
|
7
|
+
function increment() {
|
|
8
|
+
count.value++
|
|
15
9
|
}
|
|
10
|
+
|
|
11
|
+
return { count, doubleCount, increment }
|
|
16
12
|
})
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.40.6_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vue-tsc@0.40.6_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
|
|
17
17
|
fi
|
|
@@ -11,7 +11,7 @@ else
|
|
|
11
11
|
export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/create-vue/node_modules/.pnpm/node_modules"
|
|
12
12
|
fi
|
|
13
13
|
if [ -x "$basedir/node" ]; then
|
|
14
|
-
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.
|
|
14
|
+
exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/vitest@0.22.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
|
|
15
15
|
else
|
|
16
|
-
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.
|
|
16
|
+
exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.22.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
|
|
17
17
|
fi
|