Skip to content

Commit

Permalink
Update travis and coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
betula committed Jun 23, 2019
1 parent f165645 commit a45ebc4
Show file tree
Hide file tree
Showing 6 changed files with 68 additions and 12 deletions.
27 changes: 17 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
sudo: false
language: node_js

node_js:
- 8
- 9
- 10
- 12

- 8
- 10
- 12
branches:
only:
- master
cache:
directories:
- node_modules
before_install:
- npm update
install:
- npm install

- npm install
script:
- npm run build
- npm test
- npm test
- npm run tslint
- npm run build
- npm run coveralls
5 changes: 5 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
[![npm version](https://badge.fury.io/js/node-provide.svg)](https://badge.fury.io/js/node-provide)
[![Build Status](https://travis-ci.org/betula/node-provide.svg?branch=master)](https://travis-ci.org/betula/node-provide)
[![Coverage Status](https://coveralls.io/repos/github/betula/node-provide/badge.svg?branch=master)](https://coveralls.io/github/betula/node-provide?branch=master)


node-provide is more than simple decorator for control your dependencies. It's a powerful instrument for organizing the architecture of your application.

The better experience you will get if you use node-provide with TypeScript because in this case, you can get an instance of your dependency with 9 character instruction.
Expand Down
2 changes: 2 additions & 0 deletions README.ru.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
[![npm version](https://badge.fury.io/js/node-provide.svg)](https://badge.fury.io/js/node-provide)
[![Build Status](https://travis-ci.org/betula/node-provide.svg?branch=master)](https://travis-ci.org/betula/node-provide)
[![Coverage Status](https://coveralls.io/repos/github/betula/node-provide/badge.svg?branch=master)](https://coveralls.io/github/betula/node-provide?branch=master)
2 changes: 1 addition & 1 deletion index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ export function isolate<T = void>(callback: () => T): Promise<Proxy<T>> {
before(asyncId: number) {
zoneId = zoneAsyncIndex[asyncId] || RootZoneId;
},
/* istanbul ignore next */
destroy(asyncId: number) {
/* istanbul ignore next */
delete zoneAsyncIndex[asyncId];
},
}).enable();
Expand Down
40 changes: 40 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
"scripts": {
"build": "npx tsc",
"test": "npx jest --coverage",
"coveralls": "jest --coverage && cat ./coverage/lcov.info | coveralls",
"tslint": "tslint -c tslint.json -p tsconfig.json",
"prepare": "npm run tslint && npm run test && npm run build"
},
Expand All @@ -33,6 +34,7 @@
"tslint-config-airbnb": "^5.11.1",
"jest": "^24.8.0",
"ts-jest": "^24.0.2",
"@types/jest": "^24.0.13"
"@types/jest": "^24.0.13",
"coveralls": "^3.0.4"
}
}

0 comments on commit a45ebc4

Please sign in to comment.