Skip to content
This repository has been archived by the owner on May 4, 2019. It is now read-only.

archivedb/vbt

Repository files navigation

vbt

[DEPRECATED]

Build Status NPM Version

build scripts extracted from vuejs-templates/webpack

support

  • unit tests with karma
  • e2e tests with nightwatch
  • hot reload
  • typescript
  • custom configurations

installation

npm install vbt --save

usage

examples/simple

scripts

# 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

package.json

{
  "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"
  }
}

project structure

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

license

MIT