chore: install 后需要build,不然run playground会报错

This commit is contained in:
roymondchen 2022-07-01 19:38:58 +08:00 committed by jia000
parent a7afe057fb
commit 68302c01f1
15 changed files with 38 additions and 131 deletions

View File

@ -4,7 +4,7 @@
"private": true, "private": true,
"packageManager": "pnpm@7.1.9", "packageManager": "pnpm@7.1.9",
"scripts": { "scripts": {
"bootstrap": "pnpm i && pnpm prepare && cd runtime/vue2 && npm i", "bootstrap": "pnpm i && npm run build && npm run install-vue2 && pnpm prepare",
"clean:top": "rimraf */**/dist */dist coverage dwt*", "clean:top": "rimraf */**/dist */dist coverage dwt*",
"clean:modules": "rimraf node_modules **/node_modules **/**/node_modules", "clean:modules": "rimraf node_modules **/node_modules **/**/node_modules",
"clean:all": "pnpm clean:top && pnpm clean:modules", "clean:all": "pnpm clean:top && pnpm clean:modules",
@ -21,6 +21,7 @@
"page": "cd page && vite", "page": "cd page && vite",
"page-vue2": "cd page-vue2 && vite", "page-vue2": "cd page-vue2 && vite",
"page-react": "cd page-react && vite", "page-react": "cd page-react && vite",
"install-vue2": "cd runtime/vue2 && npm i",
"reinstall": "pnpm clean:all && pnpm bootstrap", "reinstall": "pnpm clean:all && pnpm bootstrap",
"test": "vitest run", "test": "vitest run",
"coverage": "vitest run --coverage", "coverage": "vitest run --coverage",
@ -73,7 +74,7 @@
"semver": "^7.3.7", "semver": "^7.3.7",
"shx": "^0.3.4", "shx": "^0.3.4",
"typescript": "^4.3.4", "typescript": "^4.3.4",
"vite": "^2.3.7", "vite": "^2.9.13",
"vitest": "^0.14.1" "vitest": "^0.14.1"
}, },
"config": { "config": {

View File

@ -20,7 +20,7 @@
"vue": "^2.6.14" "vue": "^2.6.14"
}, },
"devDependencies": { "devDependencies": {
"vite": "^2.3.7", "vite": "^2.9.13",
"vite-plugin-vue2": "^2.0.1", "vite-plugin-vue2": "^2.0.1",
"vue-template-compiler": "^2.6.14" "vue-template-compiler": "^2.6.14"
} }

116
pnpm-lock.yaml generated
View File

@ -33,7 +33,7 @@ importers:
semver: ^7.3.7 semver: ^7.3.7
shx: ^0.3.4 shx: ^0.3.4
typescript: ^4.3.4 typescript: ^4.3.4
vite: ^2.3.7 vite: ^2.9.13
vitest: ^0.14.1 vitest: ^0.14.1
devDependencies: devDependencies:
'@babel/core': 7.18.2 '@babel/core': 7.18.2
@ -42,7 +42,7 @@ importers:
'@types/node': 15.14.9 '@types/node': 15.14.9
'@typescript-eslint/eslint-plugin': 4.33.0_b2rfmdvuwe4rokpupduzboofj4 '@typescript-eslint/eslint-plugin': 4.33.0_b2rfmdvuwe4rokpupduzboofj4
'@typescript-eslint/parser': 4.33.0_kix3shd7zvxuvkzdjm72bpp2vy '@typescript-eslint/parser': 4.33.0_kix3shd7zvxuvkzdjm72bpp2vy
'@vitejs/plugin-vue': 1.10.2_vite@2.9.10 '@vitejs/plugin-vue': 1.10.2_vite@2.9.13
c8: 7.11.3 c8: 7.11.3
chalk: 4.1.2 chalk: 4.1.2
conventional-changelog-cli: 2.2.2 conventional-changelog-cli: 2.2.2
@ -65,7 +65,7 @@ importers:
semver: 7.3.7 semver: 7.3.7
shx: 0.3.4 shx: 0.3.4
typescript: 4.7.3 typescript: 4.7.3
vite: 2.9.10 vite: 2.9.13
vitest: 0.14.1_c8@7.11.3+jsdom@19.0.0 vitest: 0.14.1_c8@7.11.3+jsdom@19.0.0
docs: docs:
@ -357,7 +357,7 @@ importers:
'@tmagic/schema': 1.0.2 '@tmagic/schema': 1.0.2
'@vue/composition-api': 1.0.5 '@vue/composition-api': 1.0.5
qrcode: ^1.5.0 qrcode: ^1.5.0
vite: ^2.3.7 vite: ^2.9.13
vite-plugin-vue2: ^2.0.1 vite-plugin-vue2: ^2.0.1
vue: ^2.6.14 vue: ^2.6.14
vue-template-compiler: ^2.6.14 vue-template-compiler: ^2.6.14
@ -367,8 +367,8 @@ importers:
qrcode: 1.5.0 qrcode: 1.5.0
vue: 2.6.14 vue: 2.6.14
devDependencies: devDependencies:
vite: 2.9.10 vite: 2.9.13
vite-plugin-vue2: 2.0.1_5jesfqc2ouaeplxglzazh5atyu vite-plugin-vue2: 2.0.1_rjze3w2zsgj4z24tnggj7hdbyq
vue-template-compiler: 2.6.14 vue-template-compiler: 2.6.14
packages/utils: packages/utils:
@ -1813,13 +1813,13 @@ packages:
- supports-color - supports-color
dev: true dev: true
/@vitejs/plugin-vue/1.10.2_vite@2.9.10: /@vitejs/plugin-vue/1.10.2_vite@2.9.13:
resolution: {integrity: sha512-/QJ0Z9qfhAFtKRY+r57ziY4BSbGUTGsPRMpB/Ron3QPwBZM4OZAZHdTa4a8PafCwU5DTatXG8TMDoP8z+oDqJw==} resolution: {integrity: sha512-/QJ0Z9qfhAFtKRY+r57ziY4BSbGUTGsPRMpB/Ron3QPwBZM4OZAZHdTa4a8PafCwU5DTatXG8TMDoP8z+oDqJw==}
engines: {node: '>=12.0.0'} engines: {node: '>=12.0.0'}
peerDependencies: peerDependencies:
vite: ^2.5.10 vite: ^2.5.10
dependencies: dependencies:
vite: 2.9.10 vite: 2.9.13
dev: true dev: true
/@vitejs/plugin-vue/2.3.3_vite@2.9.10+vue@3.2.37: /@vitejs/plugin-vue/2.3.3_vite@2.9.10+vue@3.2.37:
@ -3071,7 +3071,7 @@ packages:
lodash: ^4.17.20 lodash: ^4.17.20
marko: ^3.14.4 marko: ^3.14.4
mote: ^0.2.0 mote: ^0.2.0
mustache: ^4.0.1 mustache: ^3.0.0
nunjucks: ^3.2.2 nunjucks: ^3.2.2
plates: ~0.4.11 plates: ~0.4.11
pug: ^3.0.0 pug: ^3.0.0
@ -7430,100 +7430,6 @@ packages:
vite: 2.9.13 vite: 2.9.13
dev: true dev: true
/vite-plugin-vue2/2.0.1_5jesfqc2ouaeplxglzazh5atyu:
resolution: {integrity: sha512-8ixcIDZwk3PSbdaqKrPFYDot044lPLIqpjjuRXUDHdRhml87Kbc6JqLq6uwHERlPovwfI3DpluWRMVgn/Llmag==}
peerDependencies:
vite: ^2.0.0
vue-template-compiler: ^2.2.0
dependencies:
'@babel/core': 7.18.2
'@babel/parser': 7.18.4
'@babel/plugin-proposal-class-properties': 7.17.12_@babel+core@7.18.2
'@babel/plugin-proposal-decorators': 7.18.2_@babel+core@7.18.2
'@babel/plugin-proposal-nullish-coalescing-operator': 7.17.12_@babel+core@7.18.2
'@babel/plugin-proposal-object-rest-spread': 7.18.0_@babel+core@7.18.2
'@babel/plugin-proposal-optional-chaining': 7.17.12_@babel+core@7.18.2
'@babel/plugin-transform-arrow-functions': 7.17.12_@babel+core@7.18.2
'@babel/plugin-transform-block-scoping': 7.18.4_@babel+core@7.18.2
'@babel/plugin-transform-computed-properties': 7.17.12_@babel+core@7.18.2
'@babel/plugin-transform-destructuring': 7.18.0_@babel+core@7.18.2
'@babel/plugin-transform-parameters': 7.17.12_@babel+core@7.18.2
'@babel/plugin-transform-spread': 7.17.12_@babel+core@7.18.2
'@babel/plugin-transform-typescript': 7.18.4_@babel+core@7.18.2
'@rollup/pluginutils': 4.2.1
'@vue/babel-helper-vue-jsx-merge-props': 1.2.1
'@vue/babel-preset-jsx': 1.2.4_@babel+core@7.18.2
'@vue/component-compiler-utils': 3.3.0
consolidate: 0.16.0
debug: 4.3.4
fs-extra: 10.1.0
hash-sum: 2.0.0
magic-string: 0.26.2
prettier: 2.6.2
querystring: 0.2.1
rollup: 2.75.5
slash: 3.0.0
source-map: 0.7.4
vite: 2.9.10
vue-template-babel-compiler: 1.2.0_ev5jzj74xu2fombjvobqpq452a
vue-template-compiler: 2.6.14
transitivePeerDependencies:
- arc-templates
- atpl
- babel-core
- bracket-template
- coffee-script
- dot
- dust
- dustjs-helpers
- dustjs-linkedin
- eco
- ect
- ejs
- haml-coffee
- hamlet
- hamljs
- handlebars
- hogan.js
- htmling
- jade
- jazz
- jqtpl
- just
- liquid-node
- liquor
- lodash
- marko
- mote
- mustache
- nunjucks
- plates
- pug
- qejs
- ractive
- razor-tmpl
- react
- react-dom
- slm
- squirrelly
- supports-color
- swig
- swig-templates
- teacup
- templayed
- then-jade
- then-pug
- tinyliquid
- toffee
- twig
- twing
- underscore
- vash
- velocityjs
- walrus
- whiskers
dev: true
/vite-plugin-vue2/2.0.1_rjze3w2zsgj4z24tnggj7hdbyq: /vite-plugin-vue2/2.0.1_rjze3w2zsgj4z24tnggj7hdbyq:
resolution: {integrity: sha512-8ixcIDZwk3PSbdaqKrPFYDot044lPLIqpjjuRXUDHdRhml87Kbc6JqLq6uwHERlPovwfI3DpluWRMVgn/Llmag==} resolution: {integrity: sha512-8ixcIDZwk3PSbdaqKrPFYDot044lPLIqpjjuRXUDHdRhml87Kbc6JqLq6uwHERlPovwfI3DpluWRMVgn/Llmag==}
peerDependencies: peerDependencies:
@ -7558,7 +7464,7 @@ packages:
rollup: 2.75.5 rollup: 2.75.5
slash: 3.0.0 slash: 3.0.0
source-map: 0.7.4 source-map: 0.7.4
vite: 2.9.13_sass@1.52.2 vite: 2.9.13
vue-template-babel-compiler: 1.2.0_ev5jzj74xu2fombjvobqpq452a vue-template-babel-compiler: 1.2.0_ev5jzj74xu2fombjvobqpq452a
vue-template-compiler: 2.6.14 vue-template-compiler: 2.6.14
transitivePeerDependencies: transitivePeerDependencies:
@ -7719,7 +7625,7 @@ packages:
local-pkg: 0.4.1 local-pkg: 0.4.1
tinypool: 0.1.3 tinypool: 0.1.3
tinyspy: 0.3.2 tinyspy: 0.3.2
vite: 2.9.10 vite: 2.9.13
transitivePeerDependencies: transitivePeerDependencies:
- less - less
- sass - sass