add travis

This commit is contained in:
infeng 2016-10-22 16:56:36 +08:00
parent f05de0377f
commit c5132df07c
2 changed files with 7 additions and 1 deletions

6
.travis.yml Normal file
View File

@ -0,0 +1,6 @@
language: node_js
sudo: false
node_js:
- "6"

View File

@ -4,7 +4,7 @@
"description": "react image viewer",
"main": "dist/index",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1",
"test": "npm run lint",
"start": "dora --port 8001 --plugins \"webpack,webpack-hmr,browser-history?index=/demo/index.html\"",
"lint": "tslint -c tslint.json src/**/*.ts src/**/*.tsx",
"build": "atool-build --config webpack.config.prop.js && gulp",