diff --git a/.eslintignore b/.eslintignore new file mode 100644 index 0000000..53514bf --- /dev/null +++ b/.eslintignore @@ -0,0 +1,2 @@ +coverage +example.js diff --git a/.gitignore b/.gitignore index 215000b..123ae94 100644 --- a/.gitignore +++ b/.gitignore @@ -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 diff --git a/.npmignore b/.npmignore index d2808fc..264521f 100644 --- a/.npmignore +++ b/.npmignore @@ -1,3 +1,6 @@ node_modules -src +test +coverage +LICENSE +example.js .* diff --git a/.travis.yml b/.travis.yml index 282070f..283f1d9 100644 --- a/.travis.yml +++ b/.travis.yml @@ -7,3 +7,4 @@ notifications: email: false after_success: - npm run coveralls + - npm run codeclimate diff --git a/README.md b/README.md index dd676ef..b549e67 100644 --- a/README.md +++ b/README.md @@ -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) diff --git a/package.json b/package.json index b34a0eb..469348a 100644 --- a/package.json +++ b/package.json @@ -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" @@ -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": {