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
describe: 'Name of the preset you want to use. Must be one of the following: angular, atom, codemirror, ember, eslint, express, jquery, jscs or jshint',
15
+
describe: 'Name of the preset you want to use. Must be one of the following:\nangular, atom, codemirror, ember, eslint, express, jquery, jscs, or jshint',
16
16
default: 'angular',
17
17
global: true
18
18
})
19
19
.option('message',{
20
20
alias: 'm',
21
-
describe: 'commit message',
21
+
describe: 'Commit message, replaces %s with new version',
22
22
type: 'string',
23
-
default: 'see changelog for details',
23
+
default: 'chore(release): %s',
24
24
global: true
25
25
})
26
26
.option('first-release',{
27
27
alias: 'f',
28
-
describe: 'is this the first release',
28
+
describe: 'Is this the first release?',
29
29
type: 'boolean',
30
30
default: false,
31
31
global: true
32
32
})
33
33
.help()
34
-
.alias('h','help')
35
-
.example('$0 -m "see changelog for details"','update changelog and tag release')
34
+
.alias('help','h')
35
+
.example('$0','Update changelog and tag release')
36
+
.example('$0 -m "%s: see changelog for details"','Update changelog and tag release with custom commit message')
37
+
.wrap(97)
36
38
.argv
37
39
38
40
varaddStream=require('add-stream')
@@ -44,6 +46,7 @@ var pkg = require(pkgPath)
44
46
varsemver=require('semver')
45
47
vartempfile=require('tempfile')
46
48
varrimraf=require('rimraf')
49
+
varutil=require('util')
47
50
48
51
conventionalRecommendedBump({
49
52
preset: argv.preset
@@ -65,7 +68,7 @@ conventionalRecommendedBump({
65
68
}
66
69
67
70
outputChangelog(argv,function(){
68
-
commit(argv,function(){
71
+
commit(argv,newVersion,function(){
69
72
returntag(newVersion,argv)
70
73
})
71
74
})
@@ -107,9 +110,9 @@ function outputChangelog (argv, cb) {
107
110
})
108
111
}
109
112
110
-
functioncommit(argv,cb){
113
+
functioncommit(argv,newVersion,cb){
111
114
console.log(chalk.bold('3.')+' commit '+chalk.bold('package.json')+' and '+chalk.bold(argv.infile))
0 commit comments