Skip to content

Commit 0a8854c

Browse files
committed
chore: update snapshot
1 parent f6044d2 commit 0a8854c

Some content is hidden

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

72 files changed

+376
-392
lines changed

default/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).
1313
## Project Setup
1414

1515
```sh
16-
pnpm install
16+
npm install
1717
```
1818

1919
### Compile and Hot-Reload for Development
2020

2121
```sh
22-
pnpm dev
22+
npm run dev
2323
```
2424

2525
### Compile and Minify for Production
2626

2727
```sh
28-
pnpm build
28+
npm run build
2929
```

default/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@
77
"preview": "vite preview --port 5050"
88
},
99
"dependencies": {
10-
"@vue/composition-api": "^1.4.0",
10+
"@vue/composition-api": "^1.4.6",
1111
"vue": "^2.6.14"
1212
},
1313
"devDependencies": {
14-
"@vitejs/plugin-legacy": "^1.6.3",
15-
"@vue/runtime-dom": "^3.2.22",
16-
"unplugin-vue2-script-setup": "^0.7.1",
17-
"vite": "^2.6.14",
18-
"vite-plugin-vue2": "^1.9.0",
14+
"@vitejs/plugin-legacy": "^1.7.1",
15+
"@vue/runtime-dom": "^3.2.31",
16+
"unplugin-vue2-script-setup": "^0.9.3",
17+
"vite": "^2.8.3",
18+
"vite-plugin-vue2": "^1.9.3",
19+
"vue-template-babel-compiler": "1.1.3",
1920
"vue-template-compiler": "^2.6.14"
2021
}
2122
}

default/src/main.js

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
import Vue from 'vue'
2-
import VueCompositionAPI from '@vue/composition-api'
2+
import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
33

44
import App from './App.vue'
55

66
Vue.use(VueCompositionAPI)
77

8-
const app = new Vue({
9-
render: (h) => h(App)
8+
const app = createApp({
9+
render: () => h(App)
1010
})
1111

12-
app.$mount('#app')
12+
app.mount('#app')

default/vite.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
33
import { defineConfig } from 'vite'
44
import legacy from '@vitejs/plugin-legacy'
55
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6+
// @ts-ignore
7+
import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
68
import scriptSetup from 'unplugin-vue2-script-setup/vite'
79

810
// https://vitejs.dev/config/
911
export default defineConfig({
1012
plugins: [
1113
vue2({
12-
jsx: true
14+
jsx: true,
15+
vueTemplateOptions: {
16+
compiler: vueTemplateBabelCompiler
17+
}
1318
}),
1419
scriptSetup(),
1520
legacy({

pinia-with-tests/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).
1313
## Project Setup
1414

1515
```sh
16-
pnpm install
16+
npm install
1717
```
1818

1919
### Compile and Hot-Reload for Development
2020

2121
```sh
22-
pnpm dev
22+
npm run dev
2323
```
2424

2525
### Compile and Minify for Production
2626

2727
```sh
28-
pnpm build
28+
npm run build
2929
```
3030

3131
### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
3232

3333
```sh
34-
pnpm test:unit # or `pnpm test:unit:ci` for headless testing
34+
npm run test:unit # or `npm run test:unit:ci` for headless testing
3535
```
3636

3737
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
3838

3939
```sh
40-
pnpm build
41-
pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
40+
npm run build
41+
npm run test:e2e # or `npm run test:e2e:ci` for headless testing
4242
```

pinia-with-tests/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,21 @@
1111
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
1212
},
1313
"dependencies": {
14-
"@vue/composition-api": "^1.4.0",
14+
"@vue/composition-api": "^1.4.6",
1515
"pinia": "^2.0.4",
1616
"vue": "^2.6.14"
1717
},
1818
"devDependencies": {
1919
"@cypress/vite-dev-server": "^2.2.1",
2020
"@cypress/vue": "^2.2.4",
21-
"@vitejs/plugin-legacy": "^1.6.3",
22-
"@vue/runtime-dom": "^3.2.22",
21+
"@vitejs/plugin-legacy": "^1.7.1",
22+
"@vue/runtime-dom": "^3.2.31",
2323
"cypress": "^9.1.0",
2424
"start-server-and-test": "^1.14.0",
25-
"unplugin-vue2-script-setup": "^0.7.1",
26-
"vite": "^2.6.14",
27-
"vite-plugin-vue2": "^1.9.0",
25+
"unplugin-vue2-script-setup": "^0.9.3",
26+
"vite": "^2.8.3",
27+
"vite-plugin-vue2": "^1.9.3",
28+
"vue-template-babel-compiler": "1.1.3",
2829
"vue-template-compiler": "^2.6.14"
2930
}
3031
}

pinia-with-tests/src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import Vue from 'vue'
2-
import VueCompositionAPI from '@vue/composition-api'
2+
import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
33
import { createPinia, PiniaVuePlugin } from 'pinia'
44

55
import App from './App.vue'
66

77
Vue.use(VueCompositionAPI)
8-
Vue.use(PiniaVuePlugin)
98

10-
const app = new Vue({
9+
const app = createApp({
1110
pinia: createPinia(),
12-
render: (h) => h(App)
11+
render: () => h(App)
1312
})
13+
app.use(PiniaVuePlugin)
1414

15-
app.$mount('#app')
15+
app.mount('#app')

pinia-with-tests/vite.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
33
import { defineConfig } from 'vite'
44
import legacy from '@vitejs/plugin-legacy'
55
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6+
// @ts-ignore
7+
import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
68
import scriptSetup from 'unplugin-vue2-script-setup/vite'
79

810
// https://vitejs.dev/config/
911
export default defineConfig({
1012
plugins: [
1113
vue2({
12-
jsx: true
14+
jsx: true,
15+
vueTemplateOptions: {
16+
compiler: vueTemplateBabelCompiler
17+
}
1318
}),
1419
scriptSetup(),
1520
legacy({

pinia/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,17 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).
1313
## Project Setup
1414

1515
```sh
16-
pnpm install
16+
npm install
1717
```
1818

1919
### Compile and Hot-Reload for Development
2020

2121
```sh
22-
pnpm dev
22+
npm run dev
2323
```
2424

2525
### Compile and Minify for Production
2626

2727
```sh
28-
pnpm build
28+
npm run build
2929
```

pinia/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,16 +7,17 @@
77
"preview": "vite preview --port 5050"
88
},
99
"dependencies": {
10-
"@vue/composition-api": "^1.4.0",
10+
"@vue/composition-api": "^1.4.6",
1111
"pinia": "^2.0.4",
1212
"vue": "^2.6.14"
1313
},
1414
"devDependencies": {
15-
"@vitejs/plugin-legacy": "^1.6.3",
16-
"@vue/runtime-dom": "^3.2.22",
17-
"unplugin-vue2-script-setup": "^0.7.1",
18-
"vite": "^2.6.14",
19-
"vite-plugin-vue2": "^1.9.0",
15+
"@vitejs/plugin-legacy": "^1.7.1",
16+
"@vue/runtime-dom": "^3.2.31",
17+
"unplugin-vue2-script-setup": "^0.9.3",
18+
"vite": "^2.8.3",
19+
"vite-plugin-vue2": "^1.9.3",
20+
"vue-template-babel-compiler": "1.1.3",
2021
"vue-template-compiler": "^2.6.14"
2122
}
2223
}

pinia/src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
import Vue from 'vue'
2-
import VueCompositionAPI from '@vue/composition-api'
2+
import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
33
import { createPinia, PiniaVuePlugin } from 'pinia'
44

55
import App from './App.vue'
66

77
Vue.use(VueCompositionAPI)
8-
Vue.use(PiniaVuePlugin)
98

10-
const app = new Vue({
9+
const app = createApp({
1110
pinia: createPinia(),
12-
render: (h) => h(App)
11+
render: () => h(App)
1312
})
13+
app.use(PiniaVuePlugin)
1414

15-
app.$mount('#app')
15+
app.mount('#app')

pinia/vite.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
33
import { defineConfig } from 'vite'
44
import legacy from '@vitejs/plugin-legacy'
55
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6+
// @ts-ignore
7+
import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
68
import scriptSetup from 'unplugin-vue2-script-setup/vite'
79

810
// https://vitejs.dev/config/
911
export default defineConfig({
1012
plugins: [
1113
vue2({
12-
jsx: true
14+
jsx: true,
15+
vueTemplateOptions: {
16+
compiler: vueTemplateBabelCompiler
17+
}
1318
}),
1419
scriptSetup(),
1520
legacy({

router-pinia-with-tests/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,30 +13,30 @@ See [Vite Configuration Reference](https://vitejs.dev/config/).
1313
## Project Setup
1414

1515
```sh
16-
pnpm install
16+
npm install
1717
```
1818

1919
### Compile and Hot-Reload for Development
2020

2121
```sh
22-
pnpm dev
22+
npm run dev
2323
```
2424

2525
### Compile and Minify for Production
2626

2727
```sh
28-
pnpm build
28+
npm run build
2929
```
3030

3131
### Run Unit Tests with [Cypress Component Testing](https://docs.cypress.io/guides/component-testing/introduction)
3232

3333
```sh
34-
pnpm test:unit # or `pnpm test:unit:ci` for headless testing
34+
npm run test:unit # or `npm run test:unit:ci` for headless testing
3535
```
3636

3737
### Run End-to-End Tests with [Cypress](https://www.cypress.io/)
3838

3939
```sh
40-
pnpm build
41-
pnpm test:e2e # or `pnpm test:e2e:ci` for headless testing
40+
npm run build
41+
npm run test:e2e # or `npm run test:e2e:ci` for headless testing
4242
```

router-pinia-with-tests/package.json

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,21 +11,22 @@
1111
"test:e2e:ci": "start-server-and-test preview http://127.0.0.1:5050/ 'cypress run'"
1212
},
1313
"dependencies": {
14-
"@vue/composition-api": "^1.4.0",
14+
"@vue/composition-api": "^1.4.6",
1515
"pinia": "^2.0.4",
1616
"vue": "^2.6.14",
1717
"vue-router": "^3.5.3"
1818
},
1919
"devDependencies": {
2020
"@cypress/vite-dev-server": "^2.2.1",
2121
"@cypress/vue": "^2.2.4",
22-
"@vitejs/plugin-legacy": "^1.6.3",
23-
"@vue/runtime-dom": "^3.2.22",
22+
"@vitejs/plugin-legacy": "^1.7.1",
23+
"@vue/runtime-dom": "^3.2.31",
2424
"cypress": "^9.1.0",
2525
"start-server-and-test": "^1.14.0",
26-
"unplugin-vue2-script-setup": "^0.7.1",
27-
"vite": "^2.6.14",
28-
"vite-plugin-vue2": "^1.9.0",
26+
"unplugin-vue2-script-setup": "^0.9.3",
27+
"vite": "^2.8.3",
28+
"vite-plugin-vue2": "^1.9.3",
29+
"vue-template-babel-compiler": "1.1.3",
2930
"vue-template-compiler": "^2.6.14"
3031
}
3132
}

router-pinia-with-tests/src/main.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
11
import Vue from 'vue'
2-
import VueCompositionAPI from '@vue/composition-api'
2+
import VueCompositionAPI, { createApp, h } from '@vue/composition-api'
33
import { createPinia, PiniaVuePlugin } from 'pinia'
44

55
import App from './App.vue'
66
import router from './router'
77

88
Vue.use(VueCompositionAPI)
9-
Vue.use(PiniaVuePlugin)
109

11-
const app = new Vue({
10+
const app = createApp({
1211
router,
1312
pinia: createPinia(),
14-
render: (h) => h(App)
13+
render: () => h(App)
1514
})
15+
app.use(PiniaVuePlugin)
1616

17-
app.$mount('#app')
17+
app.mount('#app')

router-pinia-with-tests/vite.config.js

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,18 @@ import { fileURLToPath } from 'url'
33
import { defineConfig } from 'vite'
44
import legacy from '@vitejs/plugin-legacy'
55
import { createVuePlugin as vue2 } from 'vite-plugin-vue2'
6+
// @ts-ignore
7+
import vueTemplateBabelCompiler from 'vue-template-babel-compiler'
68
import scriptSetup from 'unplugin-vue2-script-setup/vite'
79

810
// https://vitejs.dev/config/
911
export default defineConfig({
1012
plugins: [
1113
vue2({
12-
jsx: true
14+
jsx: true,
15+
vueTemplateOptions: {
16+
compiler: vueTemplateBabelCompiler
17+
}
1318
}),
1419
scriptSetup(),
1520
legacy({

0 commit comments

Comments
 (0)