[DEPRECATED]
build scripts extracted from vuejs-templates/webpack
- unit tests with karma
- e2e tests with nightwatch
- hot reload
- typescript
- custom configurations
npm install vbt --save
# serve with hot reload
vbt dev
# serve with specified port
PORT=9000 vbt dev
# run unit tests
vbt test unit
# run e2e tests
vbt test e2e
# run unit and e2e tests
vbt test
# build for production
vbt build
{
"private": true,
"dependencies": {
"vue": "^2.0.0"
},
"devDependencies": {
"typescript": "^2.0.0",
"vbt": "^0.1.0"
},
"entry": {
"app": "src/index.js"
},
"scripts": {
"dev": "vbt dev",
"test": "vbt test",
"test:unit": "vbt test unit",
"test:e2e": "vbt test e2e",
"build": "vbt build"
}
}
src → application sources
└ index.js → application entry
└ index.html → html template
test → application tests
└ e2e → e2e tests
└ specs → e2e specs
└ unit → unit tests
└ specs → unit specs
└ index.js → unit entry
config → project config files
└ proxy.js → dev server proxy config
static → static assets
dist → generated stuff
MIT