videojs-swf
Advanced tools
Comparing version 4.3.3 to 4.3.4
@@ -137,2 +137,4 @@ module.exports = function (grunt) { | ||
}, | ||
'git-diff-exit-code': { command: 'git diff --exit-code' }, | ||
'git-diff-cached-exit-code': { command: 'git diff --cached --exit-code' }, | ||
'git-add-dist-force': { command: 'git add dist --force' }, | ||
@@ -146,2 +148,20 @@ 'git-merge-stable': { command: 'git merge stable' }, | ||
'git-push-tags': { command: 'git push --tags' } | ||
}, | ||
prompt: { | ||
release: { | ||
options: { | ||
questions: [ | ||
{ | ||
config: 'release', // arbitray name or config for any other grunt task | ||
type: 'confirm', // list, checkbox, confirm, input, password | ||
message: 'You tested and merged the changes into stable?', | ||
default: false, // default value if nothing is entered | ||
// choices: 'Array|function(answers)', | ||
// validate: function(value){ console.log('hi', value); grunt.fatal('test'); return "error"; }, // return true if valid, error message if invalid | ||
// filter: function(value), // modify the answer | ||
// when: function(answers) // only ask this question when this function returns true | ||
} | ||
] | ||
} | ||
}, | ||
} | ||
@@ -155,2 +175,3 @@ }); | ||
grunt.loadNpmTasks('grunt-shell'); | ||
grunt.loadNpmTasks('grunt-prompt'); | ||
@@ -254,7 +275,10 @@ grunt.registerTask('dist', ['mxmlc']); | ||
grunt.task.run([ | ||
'shell:git-checkout-stable', // must start on the stable branch | ||
'bumpup:'+type, // bump up the package version | ||
'dist', // build distribution | ||
'shell:git-add-dist-force', // force add the distribution | ||
'tagrelease', // commit & tag the changes | ||
'prompt-release', // make sure user is ready | ||
'shell:git-diff-exit-code', // ensure there's no unadded changes | ||
'shell:git-diff-cached-exit-code', // ensure there's no added changes | ||
'shell:git-checkout-stable', // must start on the stable branch | ||
'bumpup:'+type, // bump up the package version | ||
'dist', // build distribution | ||
'shell:git-add-dist-force', // force add the distribution | ||
'tagrelease', // commit & tag the changes | ||
'shell:git-push-stable', | ||
@@ -268,2 +292,11 @@ 'shell:git-push-tags', | ||
}); | ||
// Can't bail out when a prompt-confirm returns false, so need this hack | ||
// https://github.com/dylang/grunt-prompt/issues/4 | ||
grunt.registerTask('prompt-release', ['prompt:release', 'prompt-release-check']); | ||
grunt.registerTask('prompt-release-check', '', function(type) { | ||
if(!grunt.config('release')) { | ||
grunt.fatal('Confirmation failed.'); | ||
} | ||
}); | ||
}; |
{ | ||
"name": "videojs-swf", | ||
"description": "The Flash-fallback video player for video.js (http://videojs.com)", | ||
"version": "4.3.3", | ||
"version": "4.3.4", | ||
"copyright": "Copyright 2014 Brightcove, Inc. https://github.com/videojs/video-js-swf/blob/master/LICENSE", | ||
@@ -30,4 +30,5 @@ "keywords": [ | ||
"grunt-tagrelease": "~0.3.1", | ||
"grunt-shell": "~0.6.1" | ||
"grunt-shell": "~0.6.1", | ||
"grunt-prompt": "~0.1.2" | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1062851
4610
14