Skip to content

Commit 09e3043

Browse files
author
Tom Kirkpatrick
committed
ci: add semantic release and circleci builds
1 parent bd7c489 commit 09e3043

File tree

2 files changed

+41
-5
lines changed

2 files changed

+41
-5
lines changed

circle.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
machine:
2+
node:
3+
version: 6.1.0
4+
test:
5+
post:
6+
- npm run coverage
7+
deployment:
8+
master:
9+
branch: master
10+
commands:
11+
- npm run semantic-release

package.json

Lines changed: 30 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,67 @@
11
{
22
"name": "loopback-component-model-extender",
3-
"version": "0.1.4",
3+
"version": "0.0.0-development",
44
"description": "Loopback Component Model Extender",
55
"main": "index.js",
66
"scripts": {
77
"lint": "eslint .",
88
"pretest": "npm run lint",
99
"test": "nyc --reporter=lcov --reporter=text --reporter=text-summary mocha test/*test.js",
10-
"test:watch": "npm run test -- -w"
10+
"test:watch": "npm run test -- -w",
11+
"coverage": "nyc report --reporter=text-lcov | coveralls",
12+
"semantic-release": "semantic-release pre && npm publish && semantic-release post"
1113
},
1214
"repository": {
1315
"type": "git",
14-
"url": "git+https://github.com/fullcube/loopback-component-model.extender.git"
16+
"url": "https://github.com/fullcube/loopback-component-model-extender.git"
1517
},
1618
"keywords": [
1719
"loopback"
1820
],
1921
"author": "Tom Kirkpatrick",
2022
"license": "ISC",
2123
"bugs": {
22-
"url": "https://github.com/fullcube/loopback-component-model.extender/issues"
24+
"url": "https://github.com/fullcube/loopback-component-model-extender/issues"
2325
},
24-
"homepage": "https://github.com/fullcube/loopback-component-model.extender#readme",
26+
"homepage": "https://github.com/fullcube/loopback-component-model-extender#readme",
2527
"dependencies": {
2628
"app-root-path": "2.0.1",
2729
"debug": "2.2.0",
2830
"lodash.kebabcase": "4.1.1"
2931
},
3032
"devDependencies": {
33+
"@bubltechnology/customizable-commit-analyzer": "1.0.2-0",
3134
"chai": "3.5.0",
35+
"condition-circle": "1.5.0",
3236
"cors": "2.8.3",
37+
"coveralls": "2.13.1",
3338
"eslint": "3.19.0",
3439
"eslint-config-fullcube": "2.0.35-latest-20170602-0428.0",
3540
"loopback": "3.8.0",
3641
"loopback-boot": "2.24.0",
3742
"mocha": "3.1.2",
3843
"nyc": "11.0.2",
3944
"require-all": "2.2.0",
45+
"semantic-release": "6.3.6",
4046
"strong-error-handler": "2.1.0"
47+
},
48+
"config": {
49+
"commitTypeMap": {
50+
"feat": "minor",
51+
"fix": "patch",
52+
"docs": "patch",
53+
"style": "patch",
54+
"refactor": "patch",
55+
"perf": "patch",
56+
"test": "patch",
57+
"build": "patch",
58+
"ci": "patch",
59+
"chore": "patch",
60+
"revert": "patch"
61+
}
62+
},
63+
"release": {
64+
"verifyConditions": "condition-circle",
65+
"analyzeCommits": "@bubltechnology/customizable-commit-analyzer"
4166
}
4267
}

0 commit comments

Comments
 (0)