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.
Files changed (33) hide show
  1. package/LICENSE +58 -0
  2. package/README.md +17 -1
  3. package/outfile.cjs +1074 -217
  4. package/package.json +4 -3
  5. package/template/base/node_modules/.bin/vite +2 -2
  6. package/template/base/package.json +3 -3
  7. package/template/code/default/src/components/HelloWorld.vue +2 -2
  8. package/template/code/default/src/components/TheWelcome.vue +23 -21
  9. package/template/code/router/src/components/HelloWorld.vue +2 -2
  10. package/template/code/router/src/components/TheWelcome.vue +23 -21
  11. package/template/code/router/src/views/HomeView.vue +1 -1
  12. package/template/code/typescript-default/src/components/HelloWorld.vue +2 -2
  13. package/template/code/typescript-default/src/components/TheWelcome.vue +23 -21
  14. package/template/code/typescript-router/src/components/HelloWorld.vue +2 -2
  15. package/template/code/typescript-router/src/components/TheWelcome.vue +23 -21
  16. package/template/code/typescript-router/src/views/HomeView.vue +1 -1
  17. package/template/config/cypress/cypress/support/commands.ts +2 -0
  18. package/template/config/cypress/node_modules/.bin/cypress +2 -2
  19. package/template/config/cypress/package.json +1 -1
  20. package/template/config/cypress-ct/node_modules/.bin/cypress +2 -2
  21. package/template/config/cypress-ct/package.json +2 -2
  22. package/template/config/jsx/node_modules/.bin/vite +2 -2
  23. package/template/config/jsx/package.json +5 -3
  24. package/template/config/pinia/package.json +2 -2
  25. package/template/config/pinia/src/stores/counter.js +8 -12
  26. package/template/config/router/package.json +2 -2
  27. package/template/config/typescript/node_modules/.bin/vue-tsc +2 -2
  28. package/template/config/typescript/package.json +2 -2
  29. package/template/config/vitest/node_modules/.bin/vitest +2 -2
  30. package/template/config/vitest/package.json +2 -2
  31. package/template/eslint/package.json +1 -7
  32. package/template/tsconfig/cypress-ct/package.json +5 -0
  33. 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.0",
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.5",
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.49",
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.1/node_modules/vite/bin/vite.js" "$@"
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.1/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
17
17
  fi
@@ -5,10 +5,10 @@
5
5
  "preview": "vite preview --port 4173"
6
6
  },
7
7
  "dependencies": {
8
- "vue": "^3.2.37"
8
+ "vue": "^3.2.38"
9
9
  },
10
10
  "devDependencies": {
11
- "@vitejs/plugin-vue": "^3.0.1",
12
- "vite": "^3.0.1"
11
+ "@vitejs/plugin-vue": "^3.0.3",
12
+ "vite": "^3.0.9"
13
13
  }
14
14
  }
@@ -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 target="_blank" href="https://vitejs.dev/">Vite</a> +
16
- <a target="_blank" href="https://vuejs.org/">Vue 3</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 target="_blank" href="https://vuejs.org/">official documentation</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 recommended IDE
30
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
31
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
32
- your components and web pages, check out
33
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
34
- <a href="https://on.cypress.io/component" target="_blank"
35
- >Cypress Component Testing</a
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 target="_blank" href="https://pinia.vuejs.org/">Pinia</a>,
51
- <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
52
- <a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and
53
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
54
- resources, we suggest paying
55
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</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 target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
67
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
68
- You should also subscribe to
69
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
70
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
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 target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</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 target="_blank" href="https://vitejs.dev/">Vite</a> +
16
- <a target="_blank" href="https://vuejs.org/">Vue 3</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 target="_blank" href="https://vuejs.org/">official documentation</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 recommended IDE
30
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
31
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
32
- your components and web pages, check out
33
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
34
- <a href="https://on.cypress.io/component" target="_blank"
35
- >Cypress Component Testing</a
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 target="_blank" href="https://pinia.vuejs.org/">Pinia</a>,
51
- <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
52
- <a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and
53
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
54
- resources, we suggest paying
55
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</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 target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
67
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
68
- You should also subscribe to
69
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
70
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
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 target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>.
84
+ <a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
83
85
  </WelcomeItem>
84
86
  </template>
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import TheWelcome from '@/components/TheWelcome.vue'
2
+ import TheWelcome from '../components/TheWelcome.vue'
3
3
  </script>
4
4
 
5
5
  <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 target="_blank" href="https://vitejs.dev/">Vite</a> +
13
- <a target="_blank" href="https://vuejs.org/">Vue 3</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 target="_blank" href="https://vuejs.org/">official documentation</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 recommended IDE
30
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
31
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
32
- your components and web pages, check out
33
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
34
- <a href="https://on.cypress.io/component" target="_blank"
35
- >Cypress Component Testing</a
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 target="_blank" href="https://pinia.vuejs.org/">Pinia</a>,
51
- <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
52
- <a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and
53
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
54
- resources, we suggest paying
55
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</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 target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
67
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
68
- You should also subscribe to
69
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
70
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
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 target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</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 target="_blank" href="https://vitejs.dev/">Vite</a> +
13
- <a target="_blank" href="https://vuejs.org/">Vue 3</a>. What's next?
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 target="_blank" href="https://vuejs.org/">official documentation</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 recommended IDE
30
- setup is <a href="https://code.visualstudio.com/" target="_blank">VSCode</a> +
31
- <a href="https://github.com/johnsoncodehk/volar" target="_blank">Volar</a>. If you need to test
32
- your components and web pages, check out
33
- <a href="https://www.cypress.io/" target="_blank">Cypress</a> and
34
- <a href="https://on.cypress.io/component" target="_blank"
35
- >Cypress Component Testing</a
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 target="_blank" href="https://pinia.vuejs.org/">Pinia</a>,
51
- <a target="_blank" href="https://router.vuejs.org/">Vue Router</a>,
52
- <a target="_blank" href="https://test-utils.vuejs.org/">Vue Test Utils</a>, and
53
- <a target="_blank" href="https://github.com/vuejs/devtools">Vue Dev Tools</a>. If you need more
54
- resources, we suggest paying
55
- <a target="_blank" href="https://github.com/vuejs/awesome-vue">Awesome Vue</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 target="_blank" href="https://chat.vuejs.org">Vue Land</a>, our official Discord server, or
67
- <a target="_blank" href="https://stackoverflow.com/questions/tagged/vue.js">StackOverflow</a>.
68
- You should also subscribe to
69
- <a target="_blank" href="https://news.vuejs.org">our mailing list</a> and follow the official
70
- <a target="_blank" href="https://twitter.com/vuejs">@vuejs</a>
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 target="_blank" href="https://vuejs.org/sponsor/">becoming a sponsor</a>.
84
+ <a href="https://vuejs.org/sponsor/" target="_blank" rel="noopener">becoming a sponsor</a>.
83
85
  </WelcomeItem>
84
86
  </template>
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import TheWelcome from '@/components/TheWelcome.vue'
2
+ import TheWelcome from '../components/TheWelcome.vue'
3
3
  </script>
4
4
 
5
5
  <template>
@@ -35,3 +35,5 @@
35
35
  // }
36
36
  // }
37
37
  // }
38
+
39
+ export {}
@@ -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.3.0/node_modules/cypress/bin/cypress" "$@"
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.3.0/node_modules/cypress/bin/cypress" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
17
17
  fi
@@ -4,7 +4,7 @@
4
4
  "test:e2e:ci": "start-server-and-test preview http://localhost:4173/ 'cypress run --e2e'"
5
5
  },
6
6
  "devDependencies": {
7
- "cypress": "^10.3.0",
7
+ "cypress": "^10.7.0",
8
8
  "start-server-and-test": "^1.14.0"
9
9
  }
10
10
  }
@@ -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.3.0/node_modules/cypress/bin/cypress" "$@"
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.3.0/node_modules/cypress/bin/cypress" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.7.0/node_modules/cypress/bin/cypress" "$@"
17
17
  fi
@@ -4,9 +4,9 @@
4
4
  "test:unit:ci": "cypress run --component --quiet --reporter spec"
5
5
  },
6
6
  "dependencies": {
7
- "vue": "^3.2.37"
7
+ "vue": "^3.2.38"
8
8
  },
9
9
  "devDependencies": {
10
- "cypress": "^10.3.0"
10
+ "cypress": "^10.7.0"
11
11
  }
12
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/vite@3.0.1/node_modules/vite/bin/vite.js" "$@"
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.1/node_modules/vite/bin/vite.js" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vite@3.0.9/node_modules/vite/bin/vite.js" "$@"
17
17
  fi
@@ -1,7 +1,9 @@
1
1
  {
2
+ "dependencies": {
3
+ "vue": "^3.2.38"
4
+ },
2
5
  "devDependencies": {
3
- "@vitejs/plugin-vue-jsx": "^2.0.0",
4
- "vite": "^3.0.1",
5
- "vue": "^3.2.37"
6
+ "@vitejs/plugin-vue-jsx": "^2.0.1",
7
+ "vite": "^3.0.9"
6
8
  }
7
9
  }
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "pinia": "^2.0.16",
4
- "vue": "^3.2.37"
3
+ "pinia": "^2.0.21",
4
+ "vue": "^3.2.38"
5
5
  }
6
6
  }
@@ -1,16 +1,12 @@
1
+ import { ref, computed } from 'vue'
1
2
  import { defineStore } from 'pinia'
2
3
 
3
- export const useCounterStore = defineStore({
4
- id: 'counter',
5
- state: () => ({
6
- counter: 0
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
  })
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "dependencies": {
3
- "vue": "^3.2.37",
4
- "vue-router": "^4.1.2"
3
+ "vue": "^3.2.38",
4
+ "vue-router": "^4.1.5"
5
5
  }
6
6
  }
@@ -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.38.8_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
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.38.8_typescript@4.7.4/node_modules/vue-tsc/bin/vue-tsc.js" "$@"
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
@@ -5,9 +5,9 @@
5
5
  "type-check": "vue-tsc --noEmit"
6
6
  },
7
7
  "devDependencies": {
8
- "@types/node": "^16.11.45",
8
+ "@types/node": "^16.11.56",
9
9
  "npm-run-all": "^4.1.5",
10
10
  "typescript": "~4.7.4",
11
- "vue-tsc": "^0.38.8"
11
+ "vue-tsc": "^0.40.6"
12
12
  }
13
13
  }
@@ -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.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
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.18.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/vitest@0.22.1_jsdom@20.0.0/node_modules/vitest/vitest.mjs" "$@"
17
17
  fi
@@ -3,11 +3,11 @@
3
3
  "test:unit": "vitest --environment jsdom"
4
4
  },
5
5
  "dependencies": {
6
- "vue": "^3.2.37"
6
+ "vue": "^3.2.38"
7
7
  },
8
8
  "devDependencies": {
9
9
  "@vue/test-utils": "^2.0.2",
10
10
  "jsdom": "^20.0.0",
11
- "vitest": "^0.18.1"
11
+ "vitest": "^0.22.1"
12
12
  }
13
13
  }