From 230bfcf3ed58762c6f5a9dde445d474ef2dc5fbb Mon Sep 17 00:00:00 2001 From: Olivier Tassinari Date: Sat, 7 Nov 2015 12:54:20 +0100 Subject: [PATCH] [npm] Separate the lint and the build --- .travis.yml | 3 +++ package.json | 6 +++--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 2d63fafb93ddf0..41586280211d3e 100644 --- a/.travis.yml +++ b/.travis.yml @@ -2,3 +2,6 @@ language: node_js node_js: - "stable" sudo: false +script: + - npm run lint + - npm test diff --git a/package.json b/package.json index a276ef2ababd73..201aeb349d6527 100644 --- a/package.json +++ b/package.json @@ -9,8 +9,8 @@ "test-watch": "npm run test-base -- --auto-watch", "test-base": "./node_modules/.bin/karma start", "prebuild": "rimraf lib", - "eslint": "gulp eslint", - "build": "npm run eslint && babel --stage 1 ./src --out-dir ./lib", + "lint": "gulp eslint", + "build": "babel --stage 1 ./src --out-dir ./lib", "prepublish": "npm run build" }, "keywords": [ @@ -53,7 +53,7 @@ "babelify": "^6.1.3", "browserify-istanbul": "^0.2.1", "chai": "^3.2.0", - "eslint": "^1.1.0", + "eslint": "~1.8.0", "eslint-loader": "^1.0.0", "eslint-plugin-react": "^3.2.2", "fbjs": "^0.2.1",