Skip to content
This repository was archived by the owner on Dec 1, 2018. It is now read-only.

Commit b32d8f9

Browse files
committed
ci(build): Added semantic-release, travis CI conf and commitizen.
1 parent a0552ae commit b32d8f9

File tree

3 files changed

+1084
-49
lines changed

3 files changed

+1084
-49
lines changed

.travis.yml

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
language: node_js
2+
cache:
3+
directories:
4+
- node_modules
5+
notifications:
6+
email: false
7+
node_js:
8+
- '7'
9+
- '6'
10+
- '4'
11+
before_script:
12+
- npm prune
13+
after_success:
14+
- npm run semantic-release
15+
branches:
16+
except:
17+
- /^v\d+\.\d+\.\d+$/

package.json

Lines changed: 17 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,41 @@
11
{
22
"name": "@dixeed/angularjs-scripts",
3-
"version": "1.0.0",
3+
"version": "0.0.0-development",
44
"description": "Scripts used to abstract frontend projects tooling (webpack, babel, etc.)",
55
"main": "bin/angularjs-scripts.js",
66
"bin": "bin/angularjs-scripts.js",
7-
"repository": "github:/dixeed/angularjs-scripts.git",
7+
"repository": {
8+
"type": "git",
9+
"url": "https://github.com/dixeed/angularjs-scripts.git"
10+
},
811
"author": "Nargonath <[email protected]>",
912
"license": "MIT",
1013
"engines": {
1114
"node": ">=4.0.0"
1215
},
1316
"scripts": {
14-
"precommit": "lint-staged"
17+
"commit": "git-cz",
18+
"precommit": "lint-staged",
19+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1520
},
1621
"lint-staged": {
1722
"{bin,scripts,test}/**/*.{js,css,json}": [
1823
"prettier --single-quote --write --print-width 100 --trailing-comma es5",
1924
"git add"
2025
]
2126
},
27+
"config": {
28+
"commitizen": {
29+
"path": "node_modules/cz-conventional-changelog"
30+
}
31+
},
2232
"devDependencies": {
33+
"commitizen": "2.9.6",
34+
"cz-conventional-changelog": "2.0.0",
2335
"husky": "0.14.3",
2436
"lint-staged": "4.1.3",
25-
"prettier": "1.6.1"
37+
"prettier": "1.6.1",
38+
"semantic-release": "7.0.2"
2639
},
2740
"dependencies": {
2841
"add-asset-html-webpack-plugin": "2.1.1",

0 commit comments

Comments
 (0)