Created
August 12, 2013 14:46
-
-
Save fnobi/6211438 to your computer and use it in GitHub Desktop.
grunt-releaseでversionを上げられる男になろう ref: http://qiita.com/fnobi/items/5f194c83d51fdd7263eb
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
npm install --save-dev grunt-release |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
release: { | |
// おおむね、デフォルトの設定で問題ないです | |
options: { } | |
} | |
}); | |
grunt.loadNpmTasks('grunt-release'); | |
grunt.registerTask('default', ['release:patch']); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
module.exports = function(grunt) { | |
grunt.initConfig({ | |
pkg: grunt.file.readJSON('package.json'), | |
release: { | |
options: { | |
// 設定ファイルとしてbower.jsonを指定 | |
file: 'bower.json', | |
// npm publishは実行しない | |
npm: false | |
} | |
} | |
}); | |
grunt.loadNpmTasks('grunt-release'); | |
grunt.registerTask('default', ['release:patch']); | |
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt release:major |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt release:minor |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt release:patch |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
grunt release:prerelease |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% grunt release:prerelease -v --no-write | |
Running tasks: release:prerelease | |
Running "release:prerelease" (release) task | |
Reading bower.json...OK | |
Parsing bower.json...OK | |
Not actually writing bower.json...OK | |
>> Version bumped to 0.0.2-0 | |
Not actually running: git add bower.json | |
Not actually running: git commit bower.json -m "release 0.0.2-0" | |
>> bower.json committed | |
Not actually running: git tag 0.0.2-0 -m "version 0.0.2-0" | |
>> New git tag created: 0.0.2-0 | |
Not actually running: git push | |
>> pushed to remote | |
Not actually running: git push --tags | |
>> pushed new tag 0.0.2-0 to remote |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment