Skip to content

Commit e9f1863

Browse files
committed
chore(build): Add semantic-release, conventional commit
closes #57
1 parent af6fd05 commit e9f1863

File tree

2 files changed

+27
-5
lines changed

2 files changed

+27
-5
lines changed

.travis.yml

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,20 @@
1+
sudo: false
12
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
28
node_js:
3-
- "iojs"
9+
- '4'
10+
before_install:
11+
- npm i -g npm@^2.0.0
12+
before_script:
13+
- npm prune
14+
script:
15+
- npm run test
16+
after_success:
17+
- npm run semantic-release
18+
branches:
19+
except:
20+
- "/^v\\d+\\.\\d+\\.\\d+$/"

package.json

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,17 @@
11
{
22
"name": "ng-redux",
3-
"version": "3.3.1",
43
"description": "Redux bindings for Angular.js",
54
"main": "./lib/index.js",
65
"scripts": {
76
"build": "rm -rf lib && `npm bin`/babel src --out-dir lib",
87
"dist": "npm run build && ./node_modules/.bin/webpack --optimize-minimize lib/index.js dist/ng-redux.js",
9-
"test": "mocha --compilers js:babel-register --recursive"
8+
"test": "mocha --compilers js:babel-register --recursive",
9+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
10+
"cz": "git-cz"
1011
},
1112
"repository": {
1213
"type": "git",
13-
"url": "http://github.com/wbuchwalter/ng-redux"
14+
"url": "https://github.com/wbuchwalter/ng-redux"
1415
},
1516
"author": "William Buchwalter <wbuchwalter@gmail.com> (http://github.com/wbuchwalter)",
1617
"license": "MIT",
@@ -28,7 +29,8 @@
2829
"expect": "^1.8.0",
2930
"mocha": "^2.2.5",
3031
"sinon": "^1.16.1",
31-
"webpack": "^1.12.11"
32+
"webpack": "^1.12.11",
33+
"semantic-release": "^4.3.5"
3234
},
3335
"peerDependencies": {
3436
"redux": "^3.0.0"
@@ -41,5 +43,8 @@
4143
"lodash.isobject": "^3.0.2",
4244
"lodash.isplainobject": "^3.2.0",
4345
"redux": "^3.0.0"
46+
},
47+
"czConfig": {
48+
"path": "node_modules/cz-conventional-changelog"
4449
}
4550
}

0 commit comments

Comments
 (0)