Skip to content

Commit 36809e3

Browse files
authored
Merge pull request #311 from jpogran/GH-310-fix-gulp-bump
(GH-310) Fix gulp bump
2 parents 2380c66 + 887b4bd commit 36809e3

File tree

3 files changed

+14
-3
lines changed

3 files changed

+14
-3
lines changed

.vscode/launch.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,17 @@
4040
"${workspaceFolder}/out/test/**/*.js"
4141
],
4242
"preLaunchTask": "npm: watch"
43+
},
44+
{
45+
"type": "node",
46+
"request": "launch",
47+
"name": "Debug Gulp task",
48+
"program": "${workspaceFolder}/node_modules/gulp/bin/gulp.js",
49+
"args": [
50+
// Add arguments here to debug gulp tasks
51+
// "bump", "--type", "minor"
52+
// "bump", "--specific", "99.99.0-appv.127"
53+
]
4354
}
4455
],
4556
"compounds": [

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ install:
3535
& npm install --silent
3636
3737
Write-Host "Set the package.json version..."
38-
& node node_modules\gulp\bin\gulp.js bump --version $ENV:APPVEYOR_BUILD_VERSION
38+
& node node_modules\gulp\bin\gulp.js bump --specific $ENV:APPVEYOR_BUILD_VERSION
3939
}
4040
4141
build_script:

gulpfile.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ gulp.task('bump', function () {
132132
/// Usage:
133133
/// 1. gulp bump : bumps the package.json and bower.json to the next minor revision.
134134
/// i.e. from 0.1.1 to 0.1.2
135-
/// 2. gulp bump --version 1.1.1 : bumps/sets the package.json and bower.json to the
135+
/// 2. gulp bump --specific 1.1.1 : bumps/sets the package.json and bower.json to the
136136
/// specified revision.
137137
/// 3. gulp bump --type major : bumps 1.0.0
138138
/// gulp bump --type minor : bumps 0.1.0
@@ -141,7 +141,7 @@ gulp.task('bump', function () {
141141
/// </summary>
142142

143143
var type = args.type;
144-
var version = args.version;
144+
var version = args.specific;
145145
var options = {};
146146
if (version) {
147147
options.version = version;

0 commit comments

Comments
 (0)