Skip to content

Commit 71457c5

Browse files
committed
chore(releasing): Add travis config, semantic-release
Part of #28
1 parent fcdc8c1 commit 71457c5

File tree

3 files changed

+56
-5
lines changed

3 files changed

+56
-5
lines changed

.travis.yml

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
sudo: false
2+
language: node_js
3+
cache:
4+
directories:
5+
- node_modules
6+
notifications:
7+
email: false
8+
node_js:
9+
- '4'
10+
- '0.12'
11+
- '0.10'
12+
before_install:
13+
- npm i -g npm@^2.0.0
14+
before_script:
15+
- npm prune
16+
- 'curl -Lo travis_after_all.py https://git.io/vLSON'
17+
script:
18+
- npm run test
19+
after_success:
20+
- python travis_after_all.py
21+
- export $(cat .to_export_back)
22+
- npm run semantic-release
23+
branches:
24+
except:
25+
- "/^v\\d+\\.\\d+\\.\\d+$/"

package.json

Lines changed: 18 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
11
{
22
"name": "commitizen",
3-
"version": "2.0.2",
3+
"version": "0.0.0-semantically-released",
44
"description": "Git commit, but play nice with conventions.",
5-
"main": "index.js",
5+
"main": "src/index.js",
66
"scripts": {
77
"start": "npm run test:watch",
88
"test": "mocha test/tests/index.js --compilers js:babel/register",
9-
"test:watch": "nodemon -q --exec \"$(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --"
9+
"test:watch": "nodemon -q --exec \"$(npm bin)/mocha test/tests/index.js --watch --compilers js:babel/register\" --",
10+
"semantic-release": "semantic-release pre && npm publish && semantic-release post",
11+
"commit": "git-cz"
1012
},
1113
"czConfig": {
1214
"path": "./node_modules/cz-conventional-changelog"
@@ -16,16 +18,27 @@
1618
"type": "git",
1719
"url": "https://github.com/commitizen/cz-cli.git"
1820
},
21+
"keywords": [
22+
"commit",
23+
"pretty",
24+
"format",
25+
"conventional changelog",
26+
"commitizen"
27+
],
28+
"bugs": {
29+
"url": "https://github.com/commitizen/cz-cli/issues"
30+
},
1931
"bin": {
2032
"git-cz": "./bin/git-cz",
2133
"commitizen": "./bin/commitizen"
2234
},
23-
"author": "Jim Cummins <[email protected]>",
35+
"author": "Jim Cummins <[email protected]> (https://github.com/jimthedev)",
2436
"license": "MIT",
2537
"devDependencies": {
2638
"chai": "3.3.0",
2739
"lodash": "3.10.1",
28-
"mocha": "2.3.3"
40+
"mocha": "2.3.3",
41+
"semantic-release": "^4.3.5"
2942
},
3043
"dependencies": {
3144
"babel": "5.8.23",

src/index.js

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
function all() {
2+
console.log('all');
3+
}
4+
5+
function random() {
6+
console.log('random');
7+
}
8+
9+
10+
module.exports = {
11+
all:all,
12+
random:random
13+
};

0 commit comments

Comments
 (0)