Skip to content
This repository has been archived by the owner on Oct 15, 2018. It is now read-only.

Commit

Permalink
Add Travis, istanbul, Coveralls
Browse files Browse the repository at this point in the history
  • Loading branch information
meeber committed Apr 3, 2016
1 parent 30de41f commit bc31bf2
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
/coverage
/node_modules
npm-debug.log*
*~
Expand Down
8 changes: 8 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
language: node_js
sudo: false
node_js:
- "5"
cache:
directories:
- node_modules
script: npm run travis
4 changes: 4 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
[![build status](https://img.shields.io/travis/meeber/promise-type-thing.svg)](https://travis-ci.org/meeber/promise-type-thing)
[![coverage status](https://img.shields.io/coveralls/meeber/promise-type-thing.svg)](https://coveralls.io/github/meeber/promise-type-thing)
[![npm version](https://img.shields.io/npm/v/promise-tt.svg)](https://www.npmjs.com/package/promise-tt)

# PromiseTypeThing

JavaScript promise-based utility functions.
Expand Down
14 changes: 11 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,26 @@
"babel-plugin-transform-es2015-modules-commonjs": "^6.7.4",
"chai": "^3.5.0",
"chai-as-promised": "^5.3.0",
"coveralls": "^2.11.9",
"eslint": "^2.6.0",
"eslint-config-tt": "^1.0.1",
"istanbul": "^1.0.0-alpha.2",
"mocha": "^2.4.5",
"uglify-js-harmony": "^2.6.2"
},
"scripts": {
"build": "npm run clean && babel src/utils.js | uglifyjs -o dist/utils.min.js",
"clean": "rm -R -f dist/ && mkdir dist",
"lint": "eslint .",
"postversion": "git push && git push --tags",
"preversion": "npm test",
"cover": "rm -R -f coverage/ && istanbul cover _mocha --report lcovonly -- --require babel-core/register",
"coveralls": "npm run cover; cat coverage/lcov.info | coveralls",
"lint": "eslint --fix .",
"postversion": "git checkout dev && git merge master && git push && git push --tags && npm publish",
"preversion": "git checkout master && git merge dev && npm test",
"release-major": "npm version major -m 'Finalize v%s'",
"release-minor": "npm version minor -m 'Finalize v%s'",
"release-patch": "npm version patch -m 'Finalize v%s'",
"test": "mocha --require babel-core/register && npm run lint",
"travis": "npm run lint && npm run coveralls",
"version": "npm run build && git add -A dist"
}
}

0 comments on commit bc31bf2

Please sign in to comment.