Skip to content

Commit

Permalink
chore(releasing): Add conventional commit and semantic-release
Browse files Browse the repository at this point in the history
BREAKING CHANGE:change in json key name in response from name to item
  • Loading branch information
lo-enterprise committed Apr 30, 2016
1 parent 2bb27b4 commit a3e7c21
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 7 deletions.
19 changes: 17 additions & 2 deletions .travis.yml
@@ -1,6 +1,21 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "5"
- '4'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
script: "npm run-script coverage"
# Send coverage data to Coveralls
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
after_script: "cat ./coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js"
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
17 changes: 12 additions & 5 deletions package.json
@@ -1,15 +1,16 @@
{
"name": "bkp",
"version": "2.0.0-dev",
"description": "(Bounded) Knapsack problem",
"main": "index.js",
"scripts": {
"test": "mocha test",
"coverage": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test/*"
"coverage": "./node_modules/istanbul/lib/cli.js cover ./node_modules/mocha/bin/_mocha -- -R spec ./test/*",
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
"commit": "git-cz"
},
"repository": {
"type": "git",
"url": "git+https://github.com/lo-enterprise/bkp.git"
"url": "https://github.com/lo-enterprise/bkp.git"
},
"keywords": [
"Bounded",
Expand All @@ -26,8 +27,14 @@
},
"homepage": "https://github.com/lo-enterprise/bkp#readme",
"devDependencies": {
"commitizen": "^2.8.1",
"coveralls": "^2.11.9",
"cz-conventional-changelog": "^1.1.6",
"istanbul": "^0.4.3",
"mocha": "^2.4.5"
"mocha": "^2.4.5",
"semantic-release": "^4.3.5"
},
"czConfig": {
"path": "node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit a3e7c21

Please sign in to comment.