Skip to content

Commit 7d806c8

Browse files
build(package): rename npm script cover to test:cover
And update `.travis.yml`
1 parent b39ac53 commit 7d806c8

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ script:
88
- npx commitlint --from=HEAD~1
99
- npm run lint
1010
- npm run dtslint
11-
- npm run cover
11+
- npm run test:cover
1212
- npm run build
1313
- npm run benchmark
1414
after_script:

package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
"build:min": "cross-env NODE_ENV=production webpack -o dist/html-react-parser.min.js",
1111
"build:unmin": "cross-env NODE_ENV=development webpack -o dist/html-react-parser.js",
1212
"clean": "rimraf dist",
13-
"cover": "istanbul cover _mocha -- -R spec \"test/**/*\"",
1413
"coveralls": "cat coverage/lcov.info | coveralls",
1514
"lint": "eslint --ignore-path .gitignore .",
1615
"lint:fix": "npm run lint -- --fix",
1716
"dtslint": "dtslint .",
1817
"prepublishOnly": "npm run build",
1918
"release": "standard-version --no-verify",
20-
"test": "mocha"
19+
"test": "mocha",
20+
"test:cover": "istanbul cover _mocha -- -R spec \"test/**/*\""
2121
},
2222
"repository": {
2323
"type": "git",

0 commit comments

Comments
 (0)