Skip to content

Commit

Permalink
chore(tools): setup commitizen and semantic-release
Browse files Browse the repository at this point in the history
closes #1
  • Loading branch information
arthurxavierx committed Jun 17, 2016
1 parent 1fa17cd commit 6995e41
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 14 deletions.
26 changes: 15 additions & 11 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,18 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "0.10"
- "4.2"
sudo: false
- '4'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm install
- npm i -g typings
- typings install
script: npm run build
deploy:
provider: npm
email: arthur.xavierx@gmail.com
api_key: $NPM_AUTH_TOKEN
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
15 changes: 12 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
{
"name": "lime-js",
"version": "2.0.1",
"description": "JavaScript LIME implementation",
"main": "dist/lime.js",
"files": [
"dist/lime.js",
"dist/lime.min.js"
],
"scripts": {
"commit": "./node_modules/.bin/git-cz",
"build": "./node_modules/.bin/webpack",
"watch": "./node_modules/.bin/webpack --watch",
"start": "npm run watch",
"deploy": "npm publish"
"deploy": "npm run postversion",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"repository": {
"type": "git",
"url": "git+https://github.com/takenet/lime-js.git"
"url": "https://github.com/takenet/lime-js.git"
},
"keywords": [
"LIME",
Expand All @@ -32,11 +33,19 @@
},
"homepage": "https://github.com/takenet/lime-js#readme",
"devDependencies": {
"commitizen": "^2.8.2",
"cz-conventional-changelog": "^1.1.6",
"semantic-release": "^4.3.5",
"ts-loader": "^0.8.2",
"typescript": "^1.8.10",
"webpack": "^1.12.9"
},
"dependencies": {
"bluebird": "^3.4.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 6995e41

Please sign in to comment.