Skip to content

Commit b440832

Browse files
committed
update package.json scripts
1 parent 67e8d13 commit b440832

2 files changed

Lines changed: 13 additions & 14 deletions

File tree

.gitignore

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,9 @@ ehthumbs.db
77
Thumbs.db
88
.log
99
*.log
10-
logs
11-
node_modules
12-
dist
13-
lib
14-
es
10+
logs/
11+
node_modules/
12+
dist/
13+
lib/
14+
es/
15+
coverage/

package.json

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
"description": "Declarative Form components for React, built on top of MobX",
55
"repository": "cantonjs/react-form-mobx",
66
"scripts": {
7-
"start": "yarn test --watchAll",
8-
"demo": "cross-env REACT_DEMO=true webpack-dev-server",
7+
"start": "cross-env REACT_DEMO=true webpack-dev-server",
8+
"watch": "yarn test --watchAll",
99
"test": "cross-env BABEL_ENV=cjs jest",
1010
"coverage": "yarn test --coverage",
1111
"format": "prettier-eslint --write \"+(src|test)/**/*.js\"",
@@ -19,13 +19,7 @@
1919
"build": "run-p build:*",
2020
"preversion": "yarn test && yarn build"
2121
},
22-
"files": [
23-
"README.md",
24-
"LICENSE.md",
25-
"lib",
26-
"es",
27-
"dist"
28-
],
22+
"files": ["README.md", "LICENSE.md", "lib", "es", "dist"],
2923
"main": "lib/index.js",
3024
"module": "es/index.js",
3125
"jsnext:main": "es/index.js",
@@ -82,5 +76,9 @@
8276
"peerDependencies": {
8377
"mobx": "^4.3.0",
8478
"mobx-react": "^5.1.2"
79+
},
80+
"jest": {
81+
"collectCoverageFrom": ["src/**/*.js"],
82+
"modulePathIgnorePatterns": ["node_modules", "lib"]
8583
}
8684
}

0 commit comments

Comments
 (0)