Skip to content

Commit 6a78a6d

Browse files
committed
chore: update playground
Next time, dependency maintenance commits should also regenerate the playground packages. Otherwise the CI will fail due to lockfile inconsistencies.
1 parent 1d083ce commit 6a78a6d

File tree

80 files changed

+336
-272
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+336
-272
lines changed

playground/default/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
"vue": "^3.2.22"
1111
},
1212
"devDependencies": {
13-
"@vitejs/plugin-vue": "^1.9.4",
13+
"@vitejs/plugin-vue": "^1.10.0",
1414
"vite": "^2.6.14"
1515
}
1616
}

playground/default/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { fileURLToPath } from 'url'
2+
13
import { defineConfig } from 'vite'
24
import vue from '@vitejs/plugin-vue'
35

@@ -6,7 +8,7 @@ export default defineConfig({
68
plugins: [vue()],
79
resolve: {
810
alias: {
9-
'@/': new URL('./src/', import.meta.url).pathname
11+
'@/': fileURLToPath(new URL('./src/', import.meta.url))
1012
}
1113
}
1214
})

playground/jsx-router-vuex-with-tests/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,19 +7,19 @@
77
"preview": "vite preview --port 5050",
88
"test:unit": "cypress open-ct",
99
"test:unit:ci": "cypress run-ct --quiet --reporter spec",
10-
"test:e2e": "start-server-and-test preview 5050 'cypress open'",
11-
"test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
10+
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
11+
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
1212
},
1313
"dependencies": {
1414
"vue": "^3.2.22",
1515
"vue-router": "^4.0.12",
1616
"vuex": "^4.0.2"
1717
},
1818
"devDependencies": {
19-
"@cypress/vite-dev-server": "^2.2.0",
19+
"@cypress/vite-dev-server": "^2.2.1",
2020
"@cypress/vue": "^3.0.5",
21-
"@vitejs/plugin-vue": "^1.9.4",
22-
"@vitejs/plugin-vue-jsx": "^1.2.0",
21+
"@vitejs/plugin-vue": "^1.10.0",
22+
"@vitejs/plugin-vue-jsx": "^1.3.0",
2323
"cypress": "^8.7.0",
2424
"start-server-and-test": "^1.14.0",
2525
"vite": "^2.6.14"

playground/jsx-router-vuex-with-tests/src/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import HelloWorld from '@/components/HelloWorld.vue'
99
<div class="wrapper">
1010
<HelloWorld msg="You did it!" />
1111

12-
<div id="nav">
12+
<nav>
1313
<router-link to="/">Home</router-link>
1414
<router-link to="/about">About</router-link>
15-
</div>
15+
</nav>
1616
</div>
1717
</header>
1818

@@ -53,28 +53,28 @@ a,
5353
}
5454
}
5555
56-
#nav {
56+
nav {
5757
width: 100%;
5858
font-size: 12px;
5959
text-align: center;
6060
margin-top: 2rem;
6161
}
6262
63-
#nav a.router-link-exact-active {
63+
nav a.router-link-exact-active {
6464
color: var(--color-text);
6565
}
6666
67-
#nav a.router-link-exact-active:hover {
67+
nav a.router-link-exact-active:hover {
6868
background-color: transparent;
6969
}
7070
71-
#nav a {
71+
nav a {
7272
display: inline-block;
7373
padding: 0 1rem;
7474
border-left: 1px solid var(--color-border);
7575
}
7676
77-
#nav a:first-of-type {
77+
nav a:first-of-type {
7878
border: 0;
7979
}
8080
@@ -106,7 +106,7 @@ a,
106106
margin: 0 2rem 0 0;
107107
}
108108
109-
#nav {
109+
nav {
110110
text-align: left;
111111
margin-left: -1rem;
112112
font-size: 1rem;

playground/jsx-router-vuex-with-tests/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { fileURLToPath } from 'url'
2+
13
import { defineConfig } from 'vite'
24
import vue from '@vitejs/plugin-vue'
35
import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -7,7 +9,7 @@ export default defineConfig({
79
plugins: [vue(), vueJsx()],
810
resolve: {
911
alias: {
10-
'@/': new URL('./src/', import.meta.url).pathname
12+
'@/': fileURLToPath(new URL('./src/', import.meta.url))
1113
}
1214
}
1315
})

playground/jsx-router-vuex/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@
1212
"vuex": "^4.0.2"
1313
},
1414
"devDependencies": {
15-
"@vitejs/plugin-vue": "^1.9.4",
16-
"@vitejs/plugin-vue-jsx": "^1.2.0",
15+
"@vitejs/plugin-vue": "^1.10.0",
16+
"@vitejs/plugin-vue-jsx": "^1.3.0",
1717
"vite": "^2.6.14"
1818
}
1919
}

playground/jsx-router-vuex/src/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import HelloWorld from '@/components/HelloWorld.vue'
99
<div class="wrapper">
1010
<HelloWorld msg="You did it!" />
1111

12-
<div id="nav">
12+
<nav>
1313
<router-link to="/">Home</router-link>
1414
<router-link to="/about">About</router-link>
15-
</div>
15+
</nav>
1616
</div>
1717
</header>
1818

@@ -53,28 +53,28 @@ a,
5353
}
5454
}
5555
56-
#nav {
56+
nav {
5757
width: 100%;
5858
font-size: 12px;
5959
text-align: center;
6060
margin-top: 2rem;
6161
}
6262
63-
#nav a.router-link-exact-active {
63+
nav a.router-link-exact-active {
6464
color: var(--color-text);
6565
}
6666
67-
#nav a.router-link-exact-active:hover {
67+
nav a.router-link-exact-active:hover {
6868
background-color: transparent;
6969
}
7070
71-
#nav a {
71+
nav a {
7272
display: inline-block;
7373
padding: 0 1rem;
7474
border-left: 1px solid var(--color-border);
7575
}
7676
77-
#nav a:first-of-type {
77+
nav a:first-of-type {
7878
border: 0;
7979
}
8080
@@ -106,7 +106,7 @@ a,
106106
margin: 0 2rem 0 0;
107107
}
108108
109-
#nav {
109+
nav {
110110
text-align: left;
111111
margin-left: -1rem;
112112
font-size: 1rem;

playground/jsx-router-vuex/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { fileURLToPath } from 'url'
2+
13
import { defineConfig } from 'vite'
24
import vue from '@vitejs/plugin-vue'
35
import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -7,7 +9,7 @@ export default defineConfig({
79
plugins: [vue(), vueJsx()],
810
resolve: {
911
alias: {
10-
'@/': new URL('./src/', import.meta.url).pathname
12+
'@/': fileURLToPath(new URL('./src/', import.meta.url))
1113
}
1214
}
1315
})

playground/jsx-router-with-tests/package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,18 @@
77
"preview": "vite preview --port 5050",
88
"test:unit": "cypress open-ct",
99
"test:unit:ci": "cypress run-ct --quiet --reporter spec",
10-
"test:e2e": "start-server-and-test preview 5050 'cypress open'",
11-
"test:e2e:ci": "start-server-and-test preview 5050 'cypress run'"
10+
"test:e2e": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress open'",
11+
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
1212
},
1313
"dependencies": {
1414
"vue": "^3.2.22",
1515
"vue-router": "^4.0.12"
1616
},
1717
"devDependencies": {
18-
"@cypress/vite-dev-server": "^2.2.0",
18+
"@cypress/vite-dev-server": "^2.2.1",
1919
"@cypress/vue": "^3.0.5",
20-
"@vitejs/plugin-vue": "^1.9.4",
21-
"@vitejs/plugin-vue-jsx": "^1.2.0",
20+
"@vitejs/plugin-vue": "^1.10.0",
21+
"@vitejs/plugin-vue-jsx": "^1.3.0",
2222
"cypress": "^8.7.0",
2323
"start-server-and-test": "^1.14.0",
2424
"vite": "^2.6.14"

playground/jsx-router-with-tests/src/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import HelloWorld from '@/components/HelloWorld.vue'
99
<div class="wrapper">
1010
<HelloWorld msg="You did it!" />
1111

12-
<div id="nav">
12+
<nav>
1313
<router-link to="/">Home</router-link>
1414
<router-link to="/about">About</router-link>
15-
</div>
15+
</nav>
1616
</div>
1717
</header>
1818

@@ -53,28 +53,28 @@ a,
5353
}
5454
}
5555
56-
#nav {
56+
nav {
5757
width: 100%;
5858
font-size: 12px;
5959
text-align: center;
6060
margin-top: 2rem;
6161
}
6262
63-
#nav a.router-link-exact-active {
63+
nav a.router-link-exact-active {
6464
color: var(--color-text);
6565
}
6666
67-
#nav a.router-link-exact-active:hover {
67+
nav a.router-link-exact-active:hover {
6868
background-color: transparent;
6969
}
7070
71-
#nav a {
71+
nav a {
7272
display: inline-block;
7373
padding: 0 1rem;
7474
border-left: 1px solid var(--color-border);
7575
}
7676
77-
#nav a:first-of-type {
77+
nav a:first-of-type {
7878
border: 0;
7979
}
8080
@@ -106,7 +106,7 @@ a,
106106
margin: 0 2rem 0 0;
107107
}
108108
109-
#nav {
109+
nav {
110110
text-align: left;
111111
margin-left: -1rem;
112112
font-size: 1rem;

playground/jsx-router-with-tests/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { fileURLToPath } from 'url'
2+
13
import { defineConfig } from 'vite'
24
import vue from '@vitejs/plugin-vue'
35
import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -7,7 +9,7 @@ export default defineConfig({
79
plugins: [vue(), vueJsx()],
810
resolve: {
911
alias: {
10-
'@/': new URL('./src/', import.meta.url).pathname
12+
'@/': fileURLToPath(new URL('./src/', import.meta.url))
1113
}
1214
}
1315
})

playground/jsx-router/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
"vue-router": "^4.0.12"
1212
},
1313
"devDependencies": {
14-
"@vitejs/plugin-vue": "^1.9.4",
15-
"@vitejs/plugin-vue-jsx": "^1.2.0",
14+
"@vitejs/plugin-vue": "^1.10.0",
15+
"@vitejs/plugin-vue-jsx": "^1.3.0",
1616
"vite": "^2.6.14"
1717
}
1818
}

playground/jsx-router/src/App.vue

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@ import HelloWorld from '@/components/HelloWorld.vue'
99
<div class="wrapper">
1010
<HelloWorld msg="You did it!" />
1111

12-
<div id="nav">
12+
<nav>
1313
<router-link to="/">Home</router-link>
1414
<router-link to="/about">About</router-link>
15-
</div>
15+
</nav>
1616
</div>
1717
</header>
1818

@@ -53,28 +53,28 @@ a,
5353
}
5454
}
5555
56-
#nav {
56+
nav {
5757
width: 100%;
5858
font-size: 12px;
5959
text-align: center;
6060
margin-top: 2rem;
6161
}
6262
63-
#nav a.router-link-exact-active {
63+
nav a.router-link-exact-active {
6464
color: var(--color-text);
6565
}
6666
67-
#nav a.router-link-exact-active:hover {
67+
nav a.router-link-exact-active:hover {
6868
background-color: transparent;
6969
}
7070
71-
#nav a {
71+
nav a {
7272
display: inline-block;
7373
padding: 0 1rem;
7474
border-left: 1px solid var(--color-border);
7575
}
7676
77-
#nav a:first-of-type {
77+
nav a:first-of-type {
7878
border: 0;
7979
}
8080
@@ -106,7 +106,7 @@ a,
106106
margin: 0 2rem 0 0;
107107
}
108108
109-
#nav {
109+
nav {
110110
text-align: left;
111111
margin-left: -1rem;
112112
font-size: 1rem;

playground/jsx-router/vite.config.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import { fileURLToPath } from 'url'
2+
13
import { defineConfig } from 'vite'
24
import vue from '@vitejs/plugin-vue'
35
import vueJsx from '@vitejs/plugin-vue-jsx'
@@ -7,7 +9,7 @@ export default defineConfig({
79
plugins: [vue(), vueJsx()],
810
resolve: {
911
alias: {
10-
'@/': new URL('./src/', import.meta.url).pathname
12+
'@/': fileURLToPath(new URL('./src/', import.meta.url))
1113
}
1214
}
1315
})

0 commit comments

Comments
 (0)