Commit 73ed1dd7 authored by Tamika Tannis's avatar Tamika Tannis Committed by Tao Feng

Fix build commands (#94)

* Test that Travis Build catches lint error

* Separate 'npm run lint' to run as it's own script in Travis

* Test splitting lint script into it's individual parts

* Found the problem, this should fail

* Remove test code that throws error
parent 620ed793
......@@ -19,6 +19,7 @@ matrix:
install:
- npm install
script:
- npm run lint
- npm run build
- npm run test
deploy:
......
......@@ -4,7 +4,7 @@
"description": "",
"main": "index.js",
"scripts": {
"build": "npm run lint && TS_NODE_PROJECT='tsconfig-for-webpack.json' webpack -p --progress --config webpack.prod.ts",
"build": "TS_NODE_PROJECT='tsconfig-for-webpack.json' webpack -p --progress --config webpack.prod.ts",
"dev-build": "TS_NODE_PROJECT='tsconfig-for-webpack.json' webpack -d --progress --config webpack.dev.ts",
"test": "jest --coverage --collectCoverageFrom=js/**/*.{js,jsx,ts,tsx}",
"watch": "TS_NODE_PROJECT='tsconfig-for-webpack.json' webpack -d --progress --config webpack.dev.ts --watch",
......@@ -14,8 +14,8 @@
"eslint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx .",
"test:watch": "jest --watch",
"tsc": "tsc",
"tslint": "tslint --project . --force",
"tslint-fix": "tslint --fix --project . --force"
"tslint": "tslint --project .",
"tslint-fix": "tslint --fix --project ."
},
"author": "",
"license": "ISC",
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment