Skip to content

Commit

Permalink
Added support for commitizen
Browse files Browse the repository at this point in the history
  • Loading branch information
izifortune committed Jun 19, 2017
1 parent 497fd13 commit c887d77
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 2 deletions.
11 changes: 11 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -137,6 +137,17 @@ This will generate a `dist` directory with:
- `*.d.ts`: type definitions for you library
- `sample-library.metadata.json`: metadata for your library to support AOT compilation

## Commit changes

You can run

```bash
$ npm run commit
```

This will use (https://github.com/commitizen/cz-cli)[commitizen] using
the `cz-conventional-changelog` for your commit message

## Generating documentation for your library

From the root of your library directory, run:
Expand Down
11 changes: 9 additions & 2 deletions generators/app/templates/_package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,8 @@
"docs:serve": "npm run docs:build -- -s",
"docs:watch": "npm run docs:build -- -s -w",
"lint": "tslint --type-check --project tsconfig.json src/**/*.ts",
"test": "tsc && karma start"
"test": "tsc && karma start",
"commit": "git-cz"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -59,7 +60,13 @@
"ts-node": "~2.0.0",
"tslint": "~4.5.0",
"typescript": "~2.2.0",
"zone.js": "^0.8.4"
"zone.js": "^0.8.4",
"commitizen": "^2.9.6"
},
"config": {
"commitizen": {
"path": "./node_modules/cz-conventional-changelog"
}
},
"engines": {
"node": ">=6.0.0"
Expand Down

0 comments on commit c887d77

Please sign in to comment.