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: ...@@ -19,6 +19,7 @@ matrix:
install: install:
- npm install - npm install
script: script:
- npm run lint
- npm run build - npm run build
- npm run test - npm run test
deploy: deploy:
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
"description": "", "description": "",
"main": "index.js", "main": "index.js",
"scripts": { "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", "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}", "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", "watch": "TS_NODE_PROJECT='tsconfig-for-webpack.json' webpack -d --progress --config webpack.dev.ts --watch",
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
"eslint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx .", "eslint-fix": "eslint --fix --ignore-path=.eslintignore --ext .js,.jsx .",
"test:watch": "jest --watch", "test:watch": "jest --watch",
"tsc": "tsc", "tsc": "tsc",
"tslint": "tslint --project . --force", "tslint": "tslint --project .",
"tslint-fix": "tslint --fix --project . --force" "tslint-fix": "tslint --fix --project ."
}, },
"author": "", "author": "",
"license": "ISC", "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