Skip to content

Commit

Permalink
chore(package): Add code climate and generate-changelog
Browse files Browse the repository at this point in the history
  • Loading branch information
lgaticaq committed Jun 16, 2016
1 parent 0118229 commit 368444a
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 5 deletions.
2 changes: 2 additions & 0 deletions .eslintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
coverage
example.js
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,3 @@ build/Release
# Dependency directory
# https://www.npmjs.org/doc/misc/npm-faq.html#should-i-check-my-node_modules-folder-into-git
node_modules
lib
5 changes: 4 additions & 1 deletion .npmignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
node_modules
src
test
coverage
LICENSE
example.js
.*
1 change: 1 addition & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,4 @@ notifications:
email: false
after_success:
- npm run coveralls
- npm run codeclimate
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![npm downloads](https://img.shields.io/npm/dm/meitrack-parser.svg?style=flat-square)](https://www.npmjs.com/package/meitrack-parser)
[![Build Status](https://img.shields.io/travis/lgaticaq/meitrack-parser.svg?style=flat-square)](https://travis-ci.org/lgaticaq/meitrack-parser)
[![Coverage Status](https://img.shields.io/coveralls/lgaticaq/meitrack-parser/master.svg?style=flat-square)](https://coveralls.io/github/lgaticaq/meitrack-parser?branch=master)
[![Code Climate](https://img.shields.io/codeclimate/github/lgaticaq/meitrack-parser.svg?style=flat-square)](https://codeclimate.com/github/lgaticaq/meitrack-parser)
[![dependency Status](https://img.shields.io/david/lgaticaq/meitrack-parser.svg?style=flat-square)](https://david-dm.org/lgaticaq/meitrack-parser#info=dependencies)
[![devDependency Status](https://img.shields.io/david/dev/lgaticaq/meitrack-parser.svg?style=flat-square)](https://david-dm.org/lgaticaq/meitrack-parser#info=devDependencies)
[![Join the chat at https://gitter.im/lgaticaq/meitrack-parser](https://img.shields.io/badge/gitter-join%20chat%20%E2%86%92-brightgreen.svg?style=flat-square)](https://gitter.im/lgaticaq/meitrack-parser?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
Expand Down
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,13 @@
"description": "Parse raw data from Meitrack devices",
"main": "src",
"scripts": {
"lint": "eslint src",
"test": "mocha",
"coveralls": "coveralls < coverage/lcov.info"
"pretest": "eslint .",
"test": "istanbul cover _mocha",
"coveralls": "coveralls < coverage/lcov.info",
"codeclimate": "codeclimate-test-reporter < coverage/lcov.info",
"release:major": "changelog -M && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version major && git push origin && git push origin --tags && npm publish",
"release:minor": "changelog -m && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version minor && git push origin && git push origin --tags && npm publish",
"release:patch": "changelog -p && git add CHANGELOG.md && git commit -m 'updated CHANGELOG.md' && npm version patch && git push origin && git push origin --tags && npm publish"
},
"engines": {
"node": ">=4"
Expand Down Expand Up @@ -35,8 +39,11 @@
},
"devDependencies": {
"chai": "^3.5.0",
"codeclimate-test-reporter": "^0.3.3",
"coveralls": "^2.11.9",
"eslint": "2.12.0",
"generate-changelog": "^1.0.2",
"istanbul": "^0.4.3",
"mocha": "^2.5.3"
},
"eslintConfig": {
Expand Down

0 comments on commit 368444a

Please sign in to comment.