Skip to content

Commit

Permalink
Using .npmignore
Browse files Browse the repository at this point in the history
  • Loading branch information
rwillians committed Apr 5, 2019
1 parent 3187ccb commit e811ff7
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 9 deletions.
2 changes: 2 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
*
!dist/
7 changes: 3 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,18 +11,17 @@ cache:
directories:
- node_modules

script:
before_script:
- npm run build

script:
- npm run lint
- npm run test
- npm run coverage

after_success:
- npm global add coveralls && npm run coverage:report | coveralls

before_deploy:
- npm run build

deploy:
provider: npm
email: $NPM_EMAIL_ADDRESS
Expand Down
7 changes: 2 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "express-rescue",
"version": "1.1.8",
"version": "1.1.9",
"description": "A wrapper for async functions which makes sure all async errors are passed to your errors handler",
"license": "MIT",
"main": "dist/index.js",
Expand All @@ -24,14 +24,11 @@
"bugs": {
"url": "https://github.com/rwillians/express-rescue/issues"
},
"files": [
"dist/**/*"
],
"engines": {
"node": ">=7.6.0"
},
"scripts": {
"coverage": "nyc --reporter=text --include index.js yarn test",
"coverage": "nyc --reporter=text --include index.js npm test",
"coverage:report": "nyc report --reporter=text-lcov",
"lint": "standard index.js && standard specs/**.spec.js --global describe --global context --global it --global specify --global before --global after --global beforeEach --global afterEach --global expect",
"test": "mocha specs --require ./specs/spec-helper.js",
Expand Down

0 comments on commit e811ff7

Please sign in to comment.