Skip to content

Commit ade338f

Browse files
Kikobeatsjavivelasco
authored andcommitted
Add npm pretest script (react-toolbox#1396)
Instead of run linter just for travis build, run it in each local testing execution
1 parent 991a430 commit ade338f

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

.travis.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,3 @@ language: node_js
55
node_js:
66
- 6
77
- 4
8-
9-
script:
10-
- npm run lint
11-
- npm test

package.json

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -104,6 +104,7 @@
104104
"patch": "bumped release patch",
105105
"prebuild": "npm run clean",
106106
"prepublish": "npm run build",
107+
"pretest": "npm run lint",
107108
"release": "bumped release",
108109
"start": "cross-env NODE_ENV=development UV_THREADPOOL_SIZE=100 node ./server",
109110
"test": "node --harmony_proxies node_modules/.bin/jest --maxWorkers 4",
@@ -112,15 +113,15 @@
112113
},
113114
"license": "MIT",
114115
"jest": {
115-
"modulePaths": [
116-
"<rootDir>"
117-
],
118116
"moduleDirectories": [
119117
"node_modules"
120118
],
121119
"moduleNameMapper": {
122120
"(\\.css$)|(normalize.css/normalize)|(^exports-loader)": "identity-obj-proxy"
123121
},
122+
"modulePaths": [
123+
"<rootDir>"
124+
],
124125
"setupFiles": [
125126
"./jest.config.js"
126127
],

0 commit comments

Comments
 (0)