UNPKG

1.09 kBMarkdownView Raw
1# ezchangelog
2Log changes easily.
3
4## Usage
5
6```bash
7npm i -g ezchangelog
8
9cd repo
10
11# create a new changelog.md file
12ezchangelog
13
14# do some commits
15
16# prepend new changes
17ezchangelog
18
19# Print the new changelog contents
20git log | ezchangelog-stream -p
21
22```
23
24## Example
25
26See [changelog](https://github.com/zoubin/ezchangelog/blob/master/changelog.md)
27
28## ezchangelog
29
30Use it the way you do `git log`,
31and your changelog file will be updated.
32
33By default, `--no-merges` is enabled.
34
35## ezchangelog-stream
36Specify more custom options.
37
38```bash
39git log | ezchangelog-stream
40
41```
42
43Pass any valid arguments to `git log`.
44
45Options for `ezchangelog-stream`:
46
47`p, --print`: print the changelog contents rather than write to disk.
48
49`f, --file`: specify the changelog file path.
50
51## package.json
52
53```json
54{
55 "ezchangelog": {
56 "commits": "https://github.com/zoubin/ezchangelog/commit/",
57 "changelog": "changelog.md"
58 }
59}
60```
61
62There are links to all commits.
63
64`commits`: specify the base path for each commit.
65By default, commits are linked to github.
66
67`changelog`: specify you changelog file path
68