You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+22-7Lines changed: 22 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,7 +13,8 @@
13
13
14
14
#### Automate your release process with a single command that can:
15
15
16
-
* Bump the version number of JSON manifets, including:
16
+
* Optionally prompt for the type of version bump (major, minor, revision, beta, etc.)
17
+
* Bump the version number in all of your JSON manifets, including:
17
18
-`package.json`
18
19
-`bower.json`
19
20
-`component.json`
@@ -22,18 +23,23 @@
22
23
- source code
23
24
- README files
24
25
- license files
26
+
* Run your `preversion`, `version`, and `postversion` scripts
25
27
* Commit changes to GIT
26
28
* Tag the commit with the version number
27
29
* Push the commit to remote
28
-
* Optionally prompt for the type of version bump (major, minor, revision, beta, etc.)
29
30
30
31
31
-
## Install
32
+
Installation
33
+
--------------------------
34
+
You can install `version-bump-prompt` via [npm](https://docs.npmjs.com/getting-started/what-is-npm).
32
35
33
-
npm install -g version-bump-prompt
36
+
```bash
37
+
npm install -g version-bump-prompt
38
+
```
34
39
35
40
36
-
## Usage
41
+
Usage
42
+
--------------------------
37
43
38
44
```bash
39
45
Usage: bump [options]
@@ -66,6 +72,15 @@ Examples:
66
72
```
67
73
68
74
75
+
Version Scripts
76
+
--------------------------
77
+
`version-bump-prompt` will execute your `preversion`, `version`, and `postversion` scripts, just like [the `npm version` command](https://docs.npmjs.com/cli/version) does. If your `package.json` file contains any or all of these scripts, then they will be executed in the following order:
78
+
79
+
- The `preversion` script runs before the version is updated (and before the version prompt is shown)
80
+
- The `version` script runs after the version is updated, but _before_`git commit` and `git tag`
81
+
- The `postversion` script runs after `git commit` and `git tag`, but _before_`git push`
82
+
83
+
69
84
70
85
Contributing
71
86
--------------------------
@@ -85,7 +100,7 @@ To build the project locally on your computer:
85
100
86
101
87
102
88
-
## License
89
-
103
+
License
104
+
--------------------------
90
105
Version-Bump-Prompt is a fork of [Version-Bump](https://github.com/alexeyraspopov/node-bump) by Alexey Raspopov (c).
91
106
Both the original project and this fork are licensed under the [MIT License](http://en.wikipedia.org/wiki/MIT_License)
0 commit comments