Skip to content

Commit

Permalink
feat(build): Setup semantic versioning and releases
Browse files Browse the repository at this point in the history
Added semantic versioning with commitizen, semantic-release and husky npm packages. Updated the
package.json file with commitizen config and npm scripts to build and release
  • Loading branch information
kasunkv committed Aug 27, 2017
1 parent 317e5ae commit 5d5109c
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 4 deletions.
17 changes: 14 additions & 3 deletions buildtask/OwaspZapScan/package.json
@@ -1,11 +1,13 @@
{
"name": "owasp-zap-scan",
"version": "1.0.0",
"version": "1.1.0",
"description": "OWASP ZAP Scanning in Visual Studio Team Services for Build & Release",
"main": "dist\\owaspzapscan.js",
"scripts": {
"commit": "git cz",
"test": "tsc tests\\_suite.ts --lib es2015 && mocha tests\\_suite.js",
"build": "tsc owaspzapscan.ts --lib es2015 --outdir dist"
"build": "tsc owaspzapscan.ts --lib es2015 --outdir dist",
"semantic-release": "semantic-release pre && semantic-release post"
},
"repository": {
"type": "git",
Expand All @@ -27,6 +29,11 @@
"url": "https://github.com/kasunkv/owasp-zap-vsts-task/issues"
},
"homepage": "https://github.com/kasunkv/owasp-zap-vsts-task#readme",
"config": {
"commitizen": {
"path": "cz-conventional-changelog"
}
},
"dependencies": {
"request": "^2.81.0",
"request-promise": "^4.2.1",
Expand All @@ -40,6 +47,10 @@
"@types/node": "^8.0.19",
"@types/q": "^1.0.3",
"@types/request": "^2.0.0",
"@types/request-promise": "^4.1.36"
"@types/request-promise": "^4.1.36",
"commitizen": "^2.9.6",
"cz-conventional-changelog": "^2.0.0",
"husky": "^0.14.3",
"semantic-release": "^7.0.2"
}
}
2 changes: 1 addition & 1 deletion buildtask/OwaspZapScan/task.json
Expand Up @@ -18,7 +18,7 @@
"author": "Kasun Kodagoda",
"version": {
"Major": 1,
"Minor": 52,
"Minor": 53,
"Patch": 0
},
"demands": [
Expand Down

0 comments on commit 5d5109c

Please sign in to comment.