Skip to content

Commit df5f6ed

Browse files
Merge pull request mui#2084 from oliviertassinari/npm
[npm] Separate the lint and the build
2 parents b4f8f8a + 230bfcf commit df5f6ed

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.travis.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ language: node_js
22
node_js:
33
- "stable"
44
sudo: false
5+
script:
6+
- npm run lint
7+
- npm test

package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99
"test-watch": "npm run test-base -- --auto-watch",
1010
"test-base": "./node_modules/.bin/karma start",
1111
"prebuild": "rimraf lib",
12-
"eslint": "gulp eslint",
13-
"build": "npm run eslint && babel --stage 1 ./src --out-dir ./lib",
12+
"lint": "gulp eslint",
13+
"build": "babel --stage 1 ./src --out-dir ./lib",
1414
"prepublish": "npm run build"
1515
},
1616
"keywords": [
@@ -53,7 +53,7 @@
5353
"babelify": "^6.1.3",
5454
"browserify-istanbul": "^0.2.1",
5555
"chai": "^3.2.0",
56-
"eslint": "^1.1.0",
56+
"eslint": "~1.8.0",
5757
"eslint-loader": "^1.0.0",
5858
"eslint-plugin-react": "^3.2.2",
5959
"fbjs": "^0.2.1",

0 commit comments

Comments
 (0)