Improve scripts

This commit is contained in:
Schuyler Cebulskie
2017-01-30 20:21:53 -05:00
parent 8ee0acf44c
commit e9ab9c9f92
2 changed files with 4 additions and 3 deletions

View File

@@ -5,7 +5,7 @@ set -e
function tests {
npm run lint
npm run test-docs
npm run docs:test
VERSIONED=false npm run webpack
exit 0
}

View File

@@ -5,10 +5,11 @@
"main": "./src/index",
"types": "./typings/index.d.ts",
"scripts": {
"test": "eslint src && docgen --source src --custom docs/index.yml",
"test": "npm run lint && npm run docs:test",
"docs": "docgen --source src --custom docs/index.yml --output docs/docs.json",
"test-docs": "docgen --source src --custom docs/index.yml",
"docs:test": "docgen --source src --custom docs/index.yml",
"lint": "eslint src",
"lint:fix": "eslint --fix src",
"webpack": "parallel-webpack"
},
"repository": {