Skip to content

Commit

Permalink
feat(build): add git-cz for semantic versioned commits
Browse files Browse the repository at this point in the history
Use commitzen to standardize the commit syntax and to allow easy semantic versioning of

electron-forge
  • Loading branch information
MarshallOfSound committed Dec 3, 2016
1 parent ae58914 commit cdbc78b
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 0 deletions.
24 changes: 24 additions & 0 deletions .cz.js
@@ -0,0 +1,24 @@
module.exports = {
types: [
{value: 'feat', name: 'feat: A new feature'},
{value: 'fix', name: 'fix: A bug fix'},
{value: 'docs', name: 'docs: Documentation only changes'},
{value: 'style', name: 'style: Changes that do not affect the meaning of the code\n (white-space, formatting, missing semi-colons, etc)'},
{value: 'refactor', name: 'refactor: A code change that neither fixes a bug nor adds a feature'},
{value: 'perf', name: 'perf: A code change that improves performance'},
{value: 'test', name: 'test: Adding missing tests'},
{value: 'chore', name: 'chore: Changes to the build process or auxiliary tools\n and libraries such as documentation generation'},
{value: 'revert', name: 'revert: Revert to a commit'},
{value: 'WIP', name: 'WIP: Work in progress'},
],
scopes: [
{ name: 'maker' },
{ name: 'packager' },
{ name: 'linter' },
{ name: 'starter' },
{ name: 'tests' },
{ name: 'initializer' },
{ name: 'generic' },
],
allowCustomScopes: true,
}
12 changes: 12 additions & 0 deletions package.json
Expand Up @@ -9,6 +9,8 @@
},
"scripts": {
"build": "gulp build",
"precommit": "npm run lint",
"commit": "git-cz",
"lint": "eslint src test",
"prepublish": "npm run build",
"test": "npm run lint && mocha test --compilers js:babel-register --timeout=300000",
Expand All @@ -23,6 +25,8 @@
"babel-plugin-transform-runtime": "^6.15.0",
"babel-preset-es2015": "^6.16.0",
"chai": "^3.5.0",
"commitizen": "^2.8.6",
"cz-customizable": "4.0.0",
"eslint": "^3.7.1",
"eslint-config-airbnb-base": "^8.0.0",
"eslint-plugin-import": "^1.16.0",
Expand Down Expand Up @@ -63,5 +67,13 @@
"username": "^2.2.2",
"yarn-or-npm": "^2.0.2",
"zip-folder": "^1.0.0"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-customizable"
},
"cz-customizable": {
"config": "./.cz.js"
}
}
}

0 comments on commit cdbc78b

Please sign in to comment.