Skip to content

Commit

Permalink
Trying coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
Torsten Schlieder committed Nov 21, 2019
1 parent 6f8aa8f commit 3765a5e
Show file tree
Hide file tree
Showing 5 changed files with 1,070 additions and 12 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@ node_modules/
dist/
.idea
*.iml
coverage
demo/public/app/
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ node_js:
script:
- yarn build
- yarn test
- yarn run coveralls
deploy:
provider: npm
email: torsten.schlieder@gmx.net
Expand Down
22 changes: 21 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,28 @@
"types": "dist/types/index.d.ts",
"scripts": {
"build": "rollup -c",
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} mocha -r ts-node/register test/**/*-test.ts"
"test": "cross-env TS_NODE_COMPILER_OPTIONS={\\\"module\\\":\\\"commonjs\\\"} nyc mocha",
"coveralls": "nyc report --reporter=text-lcov | coveralls"
},
"files": [
"dist"
],
"nyc": {
"all": true,
"extension": [
".ts",
".tsx"
],
"include": "src",
"exclude": [
"**/*.d.ts"
],
"reporter": [
"text-lcov",
"html"
],
"temp-dir": "coverage"
},
"peerDependencies": {
"redux": ">=1"
},
Expand All @@ -31,13 +48,16 @@
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.11",
"chai": "^4.2.0",
"coveralls": "^3.0.8",
"cross-env": "^6.0.3",
"mocha": "^6.2.1",
"nyc": "^14.1.1",
"redux": "4.0.4",
"rollup": "^1.23.1",
"rollup-plugin-node-resolve": "^5.2.0",
"rollup-plugin-terser": "^5.1.2",
"rollup-plugin-typescript2": "^0.24.3",
"source-map-support": "^0.5.16",
"ts-node": "^8.4.1",
"typescript": "^3.6.2"
}
Expand Down
3 changes: 3 additions & 0 deletions test/mocha.opts
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
--require ts-node/register
--require source-map-support/register
**/*-test.ts

0 comments on commit 3765a5e

Please sign in to comment.