workflow: move to pnpm (#4766)

This commit is contained in:
Evan You
2021-10-08 14:23:30 -04:00
committed by GitHub
parent 3c500e422f
commit 61c5fbd3e3
19 changed files with 7097 additions and 6844 deletions

View File

@@ -8,10 +8,10 @@
"serve": "vite preview"
},
"devDependencies": {
"@vitejs/plugin-vue": "^1.8.1",
"vite": "^2.5.10"
"@vitejs/plugin-vue": "^1.9.3"
},
"dependencies": {
"vue": "workspace:*",
"@vue/repl": "^0.4.3",
"file-saver": "^2.0.5",
"jszip": "^3.6.0"

View File

@@ -28,7 +28,7 @@ function copyVuePlugin(): Plugin {
if (!fs.existsSync(filePath)) {
throw new Error(
`vue.runtime.esm-browser.js not built. ` +
`Run "yarn build vue -f esm-browser" first.`
`Run "nr build vue -f esm-browser" first.`
)
}
this.emitFile({

View File

@@ -6,6 +6,6 @@
"build": "vite build"
},
"devDependencies": {
"vite": "^2.5.10"
"vite": "^2.6.0"
}
}

View File

@@ -1,4 +1,4 @@
import { h, createApp } from 'vue'
import { h, createApp } from '@vue/runtime-dom'
// The bare minimum code required for rendering something to the screen
createApp({

View File

@@ -1,9 +1,4 @@
export default {
resolve: {
alias: {
vue: '@vue/runtime-dom/dist/runtime-dom.esm-bundler.js'
}
},
build: {
rollupOptions: {
input: ['src/index.ts'],

View File

@@ -4,7 +4,7 @@ Live explorer for template compilation output.
To run:
- `yarn dev-compiler`
- When the compilation is done, in another terminal run `yarn open`
- `npm run dev-compiler` in repo root
- When the compilation is done, in another terminal run `npm run open`
Note: `index.html` uses CDN for dependencies and is continuously deployed at [https://vue-next-template-explorer.netlify.com/](https://vue-next-template-explorer.netlify.com/). For local development, use the scripts above.