create-vue 2.0.6 → 2.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.
Files changed (84) hide show
  1. package/LICENSE +153 -1
  2. package/outfile.cjs +498 -2942
  3. package/package.json +15 -10
  4. package/template/base/.vscode/extensions.json +1 -1
  5. package/template/base/node_modules/.bin/vite +17 -0
  6. package/template/base/package.json +5 -10
  7. package/template/{code/default → base}/src/assets/base.css +0 -0
  8. package/template/{code/default → base}/src/assets/logo.svg +0 -0
  9. package/template/base/src/assets/main.css +35 -0
  10. package/template/base/vite.config.js +2 -11
  11. package/template/code/default/src/App.vue +5 -39
  12. package/template/code/default/src/components/icons/IconTooling.vue +0 -2
  13. package/template/code/router/src/App.vue +6 -40
  14. package/template/code/router/src/components/icons/IconTooling.vue +0 -2
  15. package/template/code/typescript-default/src/App.vue +5 -39
  16. package/template/code/typescript-default/src/components/icons/IconTooling.vue +0 -2
  17. package/template/code/typescript-router/src/App.vue +6 -40
  18. package/template/code/typescript-router/src/components/icons/IconTooling.vue +0 -2
  19. package/template/{code/default/cypress/integration/example.spec.js → config/cypress/cypress/e2e/example.cy.js} +0 -0
  20. package/template/config/cypress/cypress/{jsconfig.json → e2e/jsconfig.json} +1 -1
  21. package/template/config/cypress/cypress/support/commands.ts +37 -0
  22. package/template/config/cypress/cypress/support/{index.js → e2e.js} +0 -0
  23. package/template/config/cypress/cypress.config.js +8 -0
  24. package/template/config/cypress/cypress.config.ts +8 -0
  25. package/template/config/cypress/node_modules/.bin/cypress +17 -0
  26. package/template/config/cypress/node_modules/.bin/server-test +17 -0
  27. package/template/config/cypress/node_modules/.bin/start-server-and-test +17 -0
  28. package/template/config/cypress/node_modules/.bin/start-test +17 -0
  29. package/template/config/cypress/package.json +3 -7
  30. package/template/config/cypress-ct/cypress/support/component-index.html +12 -0
  31. package/template/config/cypress-ct/cypress/support/component.js +30 -0
  32. package/template/config/cypress-ct/cypress/support/component.ts +42 -0
  33. package/template/config/cypress-ct/cypress.config.js +15 -0
  34. package/template/config/cypress-ct/cypress.config.ts +15 -0
  35. package/template/config/cypress-ct/node_modules/.bin/cypress +17 -0
  36. package/template/config/cypress-ct/package.json +12 -0
  37. package/template/{code/typescript-default/src/components/__tests__/HelloWorld.spec.ts → config/cypress-ct/src/components/__tests__/HelloWorld.cy.js} +2 -3
  38. package/template/config/jsx/node_modules/.bin/vite +17 -0
  39. package/template/config/jsx/package.json +9 -0
  40. package/template/config/jsx/vite.config.js +23 -0
  41. package/template/config/pinia/package.json +2 -1
  42. package/template/config/router/package.json +1 -1
  43. package/template/config/typescript/env.d.ts +0 -1
  44. package/template/config/typescript/node_modules/.bin/npm-run-all +17 -0
  45. package/template/config/typescript/node_modules/.bin/run-p +17 -0
  46. package/template/config/typescript/node_modules/.bin/run-s +17 -0
  47. package/template/config/typescript/node_modules/.bin/tsc +17 -0
  48. package/template/config/typescript/node_modules/.bin/tsserver +17 -0
  49. package/template/config/typescript/node_modules/.bin/vue-tsc +17 -0
  50. package/template/config/typescript/package.json +7 -5
  51. package/template/config/vitest/node_modules/.bin/vitest +17 -0
  52. package/template/config/vitest/package.json +14 -0
  53. package/template/config/vitest/src/components/__tests__/HelloWorld.spec.js +11 -0
  54. package/template/entry/default/src/main.js +4 -8
  55. package/template/entry/pinia/src/main.js +6 -8
  56. package/template/entry/router/src/main.js +4 -7
  57. package/template/entry/router-and-pinia/src/main.js +6 -8
  58. package/template/eslint/package.json +11 -0
  59. package/template/tsconfig/base/package.json +5 -0
  60. package/template/tsconfig/base/tsconfig.config.json +8 -0
  61. package/template/tsconfig/base/tsconfig.json +16 -0
  62. package/template/tsconfig/cypress/cypress/e2e/tsconfig.json +10 -0
  63. package/template/tsconfig/cypress-ct/tsconfig.app.json +12 -0
  64. package/template/tsconfig/cypress-ct/tsconfig.cypress-ct.json +8 -0
  65. package/template/tsconfig/cypress-ct/tsconfig.json +14 -0
  66. package/template/tsconfig/vitest/package.json +8 -0
  67. package/template/tsconfig/vitest/tsconfig.app.json +12 -0
  68. package/template/tsconfig/vitest/tsconfig.json +14 -0
  69. package/template/tsconfig/vitest/tsconfig.vitest.json +9 -0
  70. package/template/code/default/src/components/__tests__/HelloWorld.spec.js +0 -13
  71. package/template/code/router/cypress/integration/example.spec.js +0 -13
  72. package/template/code/router/src/assets/base.css +0 -74
  73. package/template/code/router/src/assets/logo.svg +0 -1
  74. package/template/code/router/src/components/__tests__/HelloWorld.spec.js +0 -13
  75. package/template/code/typescript-default/cypress/integration/example.spec.ts +0 -8
  76. package/template/code/typescript-default/src/assets/base.css +0 -74
  77. package/template/code/typescript-default/src/assets/logo.svg +0 -1
  78. package/template/code/typescript-router/cypress/integration/example.spec.ts +0 -13
  79. package/template/code/typescript-router/src/assets/base.css +0 -74
  80. package/template/code/typescript-router/src/assets/logo.svg +0 -1
  81. package/template/code/typescript-router/src/components/__tests__/HelloWorld.spec.ts +0 -13
  82. package/template/config/cypress/cypress/plugins/index.js +0 -28
  83. package/template/config/cypress/cypress.json +0 -7
  84. package/template/config/typescript/tsconfig.json +0 -24
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "create-vue",
3
- "version": "2.0.6",
3
+ "version": "2.1.1",
4
4
  "description": "An easy way to start a Vue project",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,14 +25,19 @@
25
25
  },
26
26
  "homepage": "https://github.com/vuejs/create-vue#readme",
27
27
  "devDependencies": {
28
- "esbuild": "^0.13.15",
29
- "husky": "^7.0.4",
28
+ "@types/eslint": "^8.4.5",
29
+ "@types/prompts": "^2.0.14",
30
+ "@vue/tsconfig": "^0.1.3",
31
+ "esbuild": "^0.14.49",
32
+ "esbuild-plugin-license": "^1.2.2",
33
+ "husky": "^8.0.1",
30
34
  "kolorist": "^1.5.1",
31
- "lint-staged": "^12.3.4",
32
- "minimist": "^1.2.5",
35
+ "lint-staged": "^13.0.3",
36
+ "minimist": "^1.2.6",
33
37
  "npm-run-all": "^4.1.5",
34
- "prettier": "^2.5.1",
35
- "prompts": "^2.4.2"
38
+ "prettier": "^2.7.1",
39
+ "prompts": "^2.4.2",
40
+ "zx": "^4.3.0"
36
41
  },
37
42
  "lint-staged": {
38
43
  "*.{js,ts,vue,json}": [
@@ -41,9 +46,9 @@
41
46
  },
42
47
  "scripts": {
43
48
  "format": "prettier --write .",
44
- "build": "esbuild --bundle index.js --format=cjs --platform=node --outfile=outfile.cjs",
45
- "snapshot": "node snapshot.js",
49
+ "build": "zx ./scripts/build.mjs",
50
+ "snapshot": "zx ./scripts/snapshot.mjs",
46
51
  "pretest": "run-s build snapshot",
47
- "test": "node test.js"
52
+ "test": "zx ./scripts/test.mjs"
48
53
  }
49
54
  }
@@ -1,3 +1,3 @@
1
1
  {
2
- "recommendations": ["johnsoncodehk.volar"]
2
+ "recommendations": ["Vue.volar", "Vue.vscode-typescript-vue-plugin"]
3
3
  }
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../node_modules/.pnpm/vite@2.9.14/node_modules/vite/bin/vite.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../node_modules/.pnpm/vite@2.9.14/node_modules/vite/bin/vite.js" "$@"
17
+ fi
@@ -2,19 +2,14 @@
2
2
  "scripts": {
3
3
  "dev": "vite",
4
4
  "build": "vite build",
5
- "preview": "vite preview --port 5050"
5
+ "preview": "vite preview --port 4173"
6
6
  },
7
7
  "dependencies": {
8
- "@vue/composition-api": "^1.4.6",
9
- "vue": "^2.6.14"
8
+ "vue": "^2.7.4"
10
9
  },
11
10
  "devDependencies": {
12
- "@vitejs/plugin-legacy": "^1.7.1",
13
- "@vue/runtime-dom": "^3.2.31",
14
- "unplugin-vue2-script-setup": "^0.9.3",
15
- "vite": "^2.8.4",
16
- "vite-plugin-vue2": "^1.9.3",
17
- "vue-template-babel-compiler": "^1.2.0",
18
- "vue-template-compiler": "^2.6.14"
11
+ "@vitejs/plugin-legacy": "^1.8.2",
12
+ "@vitejs/plugin-vue2": "^1.1.2",
13
+ "vite": "^2.9.14"
19
14
  }
20
15
  }
@@ -0,0 +1,35 @@
1
+ @import "./base.css";
2
+
3
+ #app {
4
+ max-width: 1280px;
5
+ margin: 0 auto;
6
+ padding: 2rem;
7
+
8
+ font-weight: normal;
9
+ }
10
+
11
+ a,
12
+ .green {
13
+ text-decoration: none;
14
+ color: hsla(160, 100%, 37%, 1);
15
+ transition: 0.4s;
16
+ }
17
+
18
+ @media (hover: hover) {
19
+ a:hover {
20
+ background-color: hsla(160, 100%, 37%, 0.2);
21
+ }
22
+ }
23
+
24
+ @media (min-width: 1024px) {
25
+ body {
26
+ display: flex;
27
+ place-items: center;
28
+ }
29
+
30
+ #app {
31
+ display: grid;
32
+ grid-template-columns: 1fr 1fr;
33
+ padding: 0 2rem;
34
+ }
35
+ }
@@ -2,21 +2,12 @@ import { fileURLToPath } from 'url'
2
2
 
3
3
  import { defineConfig } from 'vite'
4
4
  import legacy from '@vitejs/plugin-legacy'
5
- import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6
- // @ts-ignore
7
- import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
8
- import scriptSetup from 'unplugin-vue2-script-setup/vite'
5
+ import vue2 from '@vitejs/plugin-vue2'
9
6
 
10
7
  // https://vitejs.dev/config/
11
8
  export default defineConfig({
12
9
  plugins: [
13
- vue2({
14
- jsx: true,
15
- vueTemplateOptions: {
16
- compiler: vueTemplateBabelCompiler
17
- }
18
- }),
19
- scriptSetup(),
10
+ vue2(),
20
11
  legacy({
21
12
  targets: ['ie >= 11'],
22
13
  additionalLegacyPolyfills: ['regenerator-runtime/runtime']
@@ -19,17 +19,7 @@ import TheWelcome from './components/TheWelcome.vue'
19
19
  </div>
20
20
  </template>
21
21
 
22
- <style>
23
- @import './assets/base.css';
24
-
25
- #app {
26
- max-width: 1280px;
27
- margin: 0 auto;
28
- padding: 2rem;
29
-
30
- font-weight: normal;
31
- }
32
-
22
+ <style scoped>
33
23
  header {
34
24
  line-height: 1.5;
35
25
  }
@@ -39,45 +29,21 @@ header {
39
29
  margin: 0 auto 2rem;
40
30
  }
41
31
 
42
- a,
43
- .green {
44
- text-decoration: none;
45
- color: hsla(160, 100%, 37%, 1);
46
- transition: 0.4s;
47
- }
48
-
49
- @media (hover: hover) {
50
- a:hover {
51
- background-color: hsla(160, 100%, 37%, 0.2);
52
- }
53
- }
54
-
55
32
  @media (min-width: 1024px) {
56
- body {
57
- display: flex;
58
- place-items: center;
59
- }
60
-
61
- #app {
62
- display: grid;
63
- grid-template-columns: 1fr 1fr;
64
- padding: 0 2rem;
65
- }
66
-
67
33
  header {
68
34
  display: flex;
69
35
  place-items: center;
70
36
  padding-right: calc(var(--section-gap) / 2);
71
37
  }
72
38
 
39
+ .logo {
40
+ margin: 0 2rem 0 0;
41
+ }
42
+
73
43
  header .wrapper {
74
44
  display: flex;
75
45
  place-items: flex-start;
76
46
  flex-wrap: wrap;
77
47
  }
78
-
79
- .logo {
80
- margin: 0 2rem 0 0;
81
- }
82
48
  }
83
49
  </style>
@@ -2,8 +2,6 @@
2
2
  <template>
3
3
  <svg
4
4
  xmlns="http://www.w3.org/2000/svg"
5
- xmlns:xlink="http://www.w3.org/1999/xlink"
6
- aria-hidden="true"
7
5
  role="img"
8
6
  class="iconify iconify--mdi"
9
7
  width="24"
@@ -1,5 +1,5 @@
1
1
  <script setup>
2
- import HelloWorld from '@/components/HelloWorld.vue'
2
+ import HelloWorld from './components/HelloWorld.vue'
3
3
  </script>
4
4
 
5
5
  <template>
@@ -21,17 +21,7 @@ import HelloWorld from '@/components/HelloWorld.vue'
21
21
  </div>
22
22
  </template>
23
23
 
24
- <style>
25
- @import '@/assets/base.css';
26
-
27
- #app {
28
- max-width: 1280px;
29
- margin: 0 auto;
30
- padding: 2rem;
31
-
32
- font-weight: normal;
33
- }
34
-
24
+ <style scoped>
35
25
  header {
36
26
  line-height: 1.5;
37
27
  max-height: 100vh;
@@ -42,19 +32,6 @@ header {
42
32
  margin: 0 auto 2rem;
43
33
  }
44
34
 
45
- a,
46
- .green {
47
- text-decoration: none;
48
- color: hsla(160, 100%, 37%, 1);
49
- transition: 0.4s;
50
- }
51
-
52
- @media (hover: hover) {
53
- a:hover {
54
- background-color: hsla(160, 100%, 37%, 0.2);
55
- }
56
- }
57
-
58
35
  nav {
59
36
  width: 100%;
60
37
  font-size: 12px;
@@ -81,33 +58,22 @@ nav a:first-of-type {
81
58
  }
82
59
 
83
60
  @media (min-width: 1024px) {
84
- body {
85
- display: flex;
86
- place-items: center;
87
- }
88
-
89
- #app {
90
- display: grid;
91
- grid-template-columns: 1fr 1fr;
92
- padding: 0 2rem;
93
- }
94
-
95
61
  header {
96
62
  display: flex;
97
63
  place-items: center;
98
64
  padding-right: calc(var(--section-gap) / 2);
99
65
  }
100
66
 
67
+ .logo {
68
+ margin: 0 2rem 0 0;
69
+ }
70
+
101
71
  header .wrapper {
102
72
  display: flex;
103
73
  place-items: flex-start;
104
74
  flex-wrap: wrap;
105
75
  }
106
76
 
107
- .logo {
108
- margin: 0 2rem 0 0;
109
- }
110
-
111
77
  nav {
112
78
  text-align: left;
113
79
  margin-left: -1rem;
@@ -2,8 +2,6 @@
2
2
  <template>
3
3
  <svg
4
4
  xmlns="http://www.w3.org/2000/svg"
5
- xmlns:xlink="http://www.w3.org/1999/xlink"
6
- aria-hidden="true"
7
5
  role="img"
8
6
  class="iconify iconify--mdi"
9
7
  width="24"
@@ -19,17 +19,7 @@ import TheWelcome from './components/TheWelcome.vue'
19
19
  </div>
20
20
  </template>
21
21
 
22
- <style>
23
- @import './assets/base.css';
24
-
25
- #app {
26
- max-width: 1280px;
27
- margin: 0 auto;
28
- padding: 2rem;
29
-
30
- font-weight: normal;
31
- }
32
-
22
+ <style scoped>
33
23
  header {
34
24
  line-height: 1.5;
35
25
  }
@@ -39,45 +29,21 @@ header {
39
29
  margin: 0 auto 2rem;
40
30
  }
41
31
 
42
- a,
43
- .green {
44
- text-decoration: none;
45
- color: hsla(160, 100%, 37%, 1);
46
- transition: 0.4s;
47
- }
48
-
49
- @media (hover: hover) {
50
- a:hover {
51
- background-color: hsla(160, 100%, 37%, 0.2);
52
- }
53
- }
54
-
55
32
  @media (min-width: 1024px) {
56
- body {
57
- display: flex;
58
- place-items: center;
59
- }
60
-
61
- #app {
62
- display: grid;
63
- grid-template-columns: 1fr 1fr;
64
- padding: 0 2rem;
65
- }
66
-
67
33
  header {
68
34
  display: flex;
69
35
  place-items: center;
70
36
  padding-right: calc(var(--section-gap) / 2);
71
37
  }
72
38
 
39
+ .logo {
40
+ margin: 0 2rem 0 0;
41
+ }
42
+
73
43
  header .wrapper {
74
44
  display: flex;
75
45
  place-items: flex-start;
76
46
  flex-wrap: wrap;
77
47
  }
78
-
79
- .logo {
80
- margin: 0 2rem 0 0;
81
- }
82
48
  }
83
49
  </style>
@@ -2,8 +2,6 @@
2
2
  <template>
3
3
  <svg
4
4
  xmlns="http://www.w3.org/2000/svg"
5
- xmlns:xlink="http://www.w3.org/1999/xlink"
6
- aria-hidden="true"
7
5
  role="img"
8
6
  class="iconify iconify--mdi"
9
7
  width="24"
@@ -1,5 +1,5 @@
1
1
  <script setup lang="ts">
2
- import HelloWorld from '@/components/HelloWorld.vue'
2
+ import HelloWorld from './components/HelloWorld.vue'
3
3
  </script>
4
4
 
5
5
  <template>
@@ -21,17 +21,7 @@ import HelloWorld from '@/components/HelloWorld.vue'
21
21
  </div>
22
22
  </template>
23
23
 
24
- <style>
25
- @import '@/assets/base.css';
26
-
27
- #app {
28
- max-width: 1280px;
29
- margin: 0 auto;
30
- padding: 2rem;
31
-
32
- font-weight: normal;
33
- }
34
-
24
+ <style scoped>
35
25
  header {
36
26
  line-height: 1.5;
37
27
  max-height: 100vh;
@@ -42,19 +32,6 @@ header {
42
32
  margin: 0 auto 2rem;
43
33
  }
44
34
 
45
- a,
46
- .green {
47
- text-decoration: none;
48
- color: hsla(160, 100%, 37%, 1);
49
- transition: 0.4s;
50
- }
51
-
52
- @media (hover: hover) {
53
- a:hover {
54
- background-color: hsla(160, 100%, 37%, 0.2);
55
- }
56
- }
57
-
58
35
  nav {
59
36
  width: 100%;
60
37
  font-size: 12px;
@@ -81,33 +58,22 @@ nav a:first-of-type {
81
58
  }
82
59
 
83
60
  @media (min-width: 1024px) {
84
- body {
85
- display: flex;
86
- place-items: center;
87
- }
88
-
89
- #app {
90
- display: grid;
91
- grid-template-columns: 1fr 1fr;
92
- padding: 0 2rem;
93
- }
94
-
95
61
  header {
96
62
  display: flex;
97
63
  place-items: center;
98
64
  padding-right: calc(var(--section-gap) / 2);
99
65
  }
100
66
 
67
+ .logo {
68
+ margin: 0 2rem 0 0;
69
+ }
70
+
101
71
  header .wrapper {
102
72
  display: flex;
103
73
  place-items: flex-start;
104
74
  flex-wrap: wrap;
105
75
  }
106
76
 
107
- .logo {
108
- margin: 0 2rem 0 0;
109
- }
110
-
111
77
  nav {
112
78
  text-align: left;
113
79
  margin-left: -1rem;
@@ -2,8 +2,6 @@
2
2
  <template>
3
3
  <svg
4
4
  xmlns="http://www.w3.org/2000/svg"
5
- xmlns:xlink="http://www.w3.org/1999/xlink"
6
- aria-hidden="true"
7
5
  role="img"
8
6
  class="iconify iconify--mdi"
9
7
  width="24"
@@ -4,5 +4,5 @@
4
4
  "lib": ["es5", "dom"],
5
5
  "types": ["cypress"]
6
6
  },
7
- "include": ["./**/*"]
7
+ "include": ["./**/*", "../support/**/*"]
8
8
  }
@@ -0,0 +1,37 @@
1
+ /// <reference types="cypress" />
2
+ // ***********************************************
3
+ // This example commands.ts shows you how to
4
+ // create various custom commands and overwrite
5
+ // existing commands.
6
+ //
7
+ // For more comprehensive examples of custom
8
+ // commands please read more here:
9
+ // https://on.cypress.io/custom-commands
10
+ // ***********************************************
11
+ //
12
+ //
13
+ // -- This is a parent command --
14
+ // Cypress.Commands.add('login', (email, password) => { ... })
15
+ //
16
+ //
17
+ // -- This is a child command --
18
+ // Cypress.Commands.add('drag', { prevSubject: 'element'}, (subject, options) => { ... })
19
+ //
20
+ //
21
+ // -- This is a dual command --
22
+ // Cypress.Commands.add('dismiss', { prevSubject: 'optional'}, (subject, options) => { ... })
23
+ //
24
+ //
25
+ // -- This will overwrite an existing command --
26
+ // Cypress.Commands.overwrite('visit', (originalFn, url, options) => { ... })
27
+ //
28
+ // declare global {
29
+ // namespace Cypress {
30
+ // interface Chainable {
31
+ // login(email: string, password: string): Chainable<void>
32
+ // drag(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
33
+ // dismiss(subject: string, options?: Partial<TypeOptions>): Chainable<Element>
34
+ // visit(originalFn: CommandOriginalFn, url: string, options: Partial<VisitOptions>): Chainable<Element>
35
+ // }
36
+ // }
37
+ // }
@@ -0,0 +1,8 @@
1
+ const { defineConfig } = require('cypress')
2
+
3
+ module.exports = defineConfig({
4
+ e2e: {
5
+ specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
6
+ baseUrl: 'http://localhost:4173'
7
+ }
8
+ })
@@ -0,0 +1,8 @@
1
+ import { defineConfig } from 'cypress'
2
+
3
+ export default defineConfig({
4
+ e2e: {
5
+ specPattern: 'cypress/e2e/**/*.{cy,spec}.{js,jsx,ts,tsx}',
6
+ baseUrl: 'http://localhost:4173'
7
+ }
8
+ })
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/cypress@10.3.0/node_modules/cypress/bin/cypress" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/cypress@10.3.0/node_modules/cypress/bin/cypress" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
17
+ fi
@@ -0,0 +1,17 @@
1
+ #!/bin/sh
2
+ basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
3
+
4
+ case `uname` in
5
+ *CYGWIN*) basedir=`cygpath -w "$basedir"`;;
6
+ esac
7
+
8
+ if [ -z "$NODE_PATH" ]; then
9
+ export NODE_PATH="/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
10
+ else
11
+ export NODE_PATH="$NODE_PATH:/Users/haoqun/Developer/vuejs/vue-2-scaffolder/node_modules/.pnpm/node_modules"
12
+ fi
13
+ if [ -x "$basedir/node" ]; then
14
+ exec "$basedir/node" "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
15
+ else
16
+ exec node "$basedir/../../../../../node_modules/.pnpm/start-server-and-test@1.14.0/node_modules/start-server-and-test/src/bin/start.js" "$@"
17
+ fi
@@ -1,14 +1,10 @@
1
1
  {
2
2
  "scripts": {
3
- "test:unit": "cypress open-ct",
4
- "test:unit:ci": "cypress run-ct --quiet --reporter spec",
5
- "test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
6
- "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
3
+ "test:e2e": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress open --e2e'",
4
+ "test:e2e:ci": "start-server-and-test preview http://127.0.0.1:4173/ 'cypress run --e2e'"
7
5
  },
8
6
  "devDependencies": {
9
- "@cypress/vite-dev-server": "^2.2.2",
10
- "@cypress/vue": "^2.2.4",
11
- "cypress": "^9.5.0",
7
+ "cypress": "^10.3.0",
12
8
  "start-server-and-test": "^1.14.0"
13
9
  }
14
10
  }