Skip to content

Commit

Permalink
build(npm): Switched to semantic-release and commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
okonet committed Nov 1, 2016
1 parent cf0db15 commit 52b4bcf
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 4 deletions.
17 changes: 16 additions & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,18 @@
sudo: false
language: node_js
cache:
directories:
- node_modules
notifications:
email: false
node_js:
- "4.1"
- '4'
before_install:
- npm i -g npm@^2.0.0
before_script:
- npm prune
after_success:
- npm run semantic-release
branches:
except:
- /^v\d+\.\d+\.\d+$/
13 changes: 10 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "react-dropzone",
"version": "3.7.0",
"description": "Simple HTML5 drag-drop zone with React.js",
"main": "dist/index.js",
"scripts": {
Expand All @@ -15,7 +14,8 @@
"git:add": "git add",
"lint-staged": "lint-staged",
"deps": "npm-check -s",
"deps:update": "npm-check -u"
"deps:update": "npm-check -u",
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
},
"lint-staged": {
"*.js": [
Expand All @@ -35,7 +35,7 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/okonet/react-dropzone.git"
"url": "https://github.com/okonet/react-dropzone.git"
},
"bugs": {
"url": "https://github.com/okonet/react-dropzone/issues"
Expand Down Expand Up @@ -64,6 +64,7 @@
"babel-preset-stage-0": "^6.3.13",
"babel-register": "^6.9.0",
"chai": "^3.4.1",
"cz-conventional-changelog": "^1.2.0",
"eslint": "^2.11.0",
"eslint-config-airbnb": "^9.0.1",
"eslint-plugin-import": "^1.8.1",
Expand All @@ -80,8 +81,14 @@
"react-dom": "^15.2.0",
"react-testutils-additions": "^15.0.0",
"rimraf": "^2.5.2",
"semantic-release": "^4.3.5",
"semver": "^5.3.0",
"sinon": "^1.17.4",
"webpack": "^1.13.1"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
}
}

0 comments on commit 52b4bcf

Please sign in to comment.