paulpflug / vue-dev-server Goto Github PK
View Code? Open in Web Editor NEWa small development server for building `vue` components
a small development server for building `vue` components
Is there any way to reload the page where the component in when we save the file? I found that you suggested us to install vue-hot-reload-api
, but I don't know how to use it in this tool. Could you please tell me more about that? Thanks~! ๐
Instead of how it is now - one main module plus several dependences.
Is that possible in principle?
Then it could be easier to jumps start usage and also could be installed as a global package to run later in potentially from any folder.
I've tried to put all of the packs in the package.json, like this
..
"dependencies": {
"vue-dev-server": "latest",
"chokidar": "^1.6.0",
"coffee-script": "^1.11.1",
"commander": "^2.9.0",
"cp": "^0.2.0",
"cpr": "^2.0.0",
"ip": "^1.1.3",
"koa": "^1.2.4",
"koa-hot-dev-webpack": "^0.1.1",
"koa-sendfile": "^2.0.0",
"koa-static": "^2.0.0",
"script-runner": "^0.1.5",
"vue-hot-reload-api": "^2.0.7",
"vue-router": "^2.0.0",
"vueify-insert-css": "latest",
"webpack": "^1.13.2",
"vue-loader": "^9.5.1",
"vue": "^2.0.1",
"css-loader": "^0.25.0",
"vue-compiler": "^2.0.0",
"vue-html-loader": "^1.2.3",
"vue-style-loader": "^1.0.0"
},
"devDependencies": {
"babel-core": "^6.21.0",
"babel-loader": "^6.2.10",
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.18.0",
"babel-runtime": "^5.8.38",
"casperjs": "^1.1.3",
"coffee-loader": "^0.7.2",
"css-loader": "^0.25.0",
"phantomjs-prebuilt": "^2.1.13",
"rimraf": "^2.5.4",
"script-runner": "^0.1.5",
"stylus": "^0.54.5",
"vue-hot-reload-api": "^2.0.7",
"vue-html-loader": "^1.2.3",
"vue-style-loader": "^1.0.0"
},
"scripts": {
...
"postinstall": "npm install --save-dev vue-html-loader css-loader vue-style-loader vue-hot-reload-api babel-loader babel-core babel-plugin-transform-runtime babel-preset-es2015 babel-runtime@5"
}
}
and the run with smth like $ node node_modules/vue-dev-server/index.js
.
But it fails with dev/myComponent.vue file parsing
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.