Skip to content
This repository was archived by the owner on Nov 27, 2023. It is now read-only.

Commit 2b394fe

Browse files
committed
chore: Cleanup build process
1 parent 642ab2c commit 2b394fe

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
language: node_js
22
node_js:
33
- "4.2.0"
4-
after_success: npm run coverage
4+
after_success: 'npm run coverage'

package.json

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -13,14 +13,14 @@
1313
"index.js.map"
1414
],
1515
"scripts": {
16-
"start": "npm run test:watch",
16+
"start": "npm test",
1717
"clean": "rm -f index.js index.js.map tests/*.js tests/*.js.map",
1818
"prebuild": "npm run clean",
1919
"build": "tsc --sourceMap",
20-
"pretest": "tsc --inlineSourceMap",
21-
"test": "mocha --compilers js:babel-register 'tests/**/*-test.js'",
22-
"test:watch": "chokidar --initial \"index.ts\" -c \"npm run test -- --watch\"",
23-
"coverage": "nyc npm test && nyc report --reporter=text-lcov | coveralls",
20+
"build:inline": "tsc --inlineSourceMap",
21+
"pretest": "npm run clean && npm run build:inline",
22+
"test": "nyc --reporter lcov ./node_modules/.bin/mocha --recursive tests --all",
23+
"coverage": "cat ./coverage/lcov.info | ./node_modules/.bin/coveralls",
2424
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -w",
2525
"preversion": "npm test",
2626
"version": "npm run build && conventional-changelog -p angular -v -r 0 > CHANGELOG.md && git add -A .",
@@ -63,5 +63,11 @@
6363
"commitizen": {
6464
"path": "./node_modules/cz-conventional-changelog"
6565
}
66+
},
67+
"nyc": {
68+
"exclude": [
69+
"coverage",
70+
"tests"
71+
]
6672
}
6773
}

0 commit comments

Comments
 (0)