workflow: move to pnpm (#4766)
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -6,6 +6,6 @@
|
||||
"build": "vite build"
|
||||
},
|
||||
"devDependencies": {
|
||||
"vite": "^2.5.10"
|
||||
"vite": "^2.6.0"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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({
|
||||
|
||||
@@ -1,9 +1,4 @@
|
||||
export default {
|
||||
resolve: {
|
||||
alias: {
|
||||
vue: '@vue/runtime-dom/dist/runtime-dom.esm-bundler.js'
|
||||
}
|
||||
},
|
||||
build: {
|
||||
rollupOptions: {
|
||||
input: ['src/index.ts'],
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user