1 | # ezchangelog
|
2 | Log changes easily.
|
3 |
|
4 | ## Usage
|
5 |
|
6 | ```bash
|
7 | npm i -g ezchangelog
|
8 |
|
9 | cd repo
|
10 |
|
11 | # create a new changelog.md file
|
12 | ezchangelog
|
13 |
|
14 | # do some commits
|
15 |
|
16 | # prepend new changes
|
17 | ezchangelog
|
18 |
|
19 | # Print the new changelog contents
|
20 | git log | ezchangelog-stream -p
|
21 |
|
22 | ```
|
23 |
|
24 | ## Example
|
25 |
|
26 | See [changelog](https://github.com/zoubin/ezchangelog/blob/master/changelog.md)
|
27 |
|
28 | ## ezchangelog
|
29 |
|
30 | Use it the way you do `git log`,
|
31 | and your changelog file will be updated.
|
32 |
|
33 | By default, `--no-merges` is enabled.
|
34 |
|
35 | ## ezchangelog-stream
|
36 | Specify more custom options.
|
37 |
|
38 | ```bash
|
39 | git log | ezchangelog-stream
|
40 |
|
41 | ```
|
42 |
|
43 | Pass any valid arguments to `git log`.
|
44 |
|
45 | Options 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 |
|
62 | There are links to all commits.
|
63 |
|
64 | `commits`: specify the base path for each commit.
|
65 | By default, commits are linked to github.
|
66 |
|
67 | `changelog`: specify you changelog file path
|
68 |
|