mirror of
https://bitbucket.org/skobkin/chrome_point_plus.git
synced 2024-11-23 18:56:04 +00:00
Merged in isqua/chrome_point_plus/bump_task (pull request #20)
Add bump task
This commit is contained in:
commit
9b42e4b982
17
Gruntfile.js
17
Gruntfile.js
|
@ -30,11 +30,26 @@ module.exports = function(grunt) {
|
||||||
main: {
|
main: {
|
||||||
files: vendorCopy
|
files: vendorCopy
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
|
bump: {
|
||||||
|
options: {
|
||||||
|
files: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
|
||||||
|
commit: true,
|
||||||
|
commitMessage: 'Release v%VERSION%',
|
||||||
|
commitFiles: [ 'package.json', 'bower.json', 'chrome_point_plus/manifest.json' ],
|
||||||
|
createTag: true,
|
||||||
|
tagName: 'v%VERSION%',
|
||||||
|
tagMessage: 'Version %VERSION%',
|
||||||
|
push: false,
|
||||||
|
gitDescribeOptions: '--tags --always --abbrev=1 --dirty=-d',
|
||||||
|
globalReplace: true
|
||||||
|
}
|
||||||
|
},
|
||||||
});
|
});
|
||||||
|
|
||||||
// Загрузить плагины
|
// Загрузить плагины
|
||||||
grunt.loadNpmTasks('grunt-contrib-copy');
|
grunt.loadNpmTasks('grunt-contrib-copy');
|
||||||
|
grunt.loadNpmTasks('grunt-bump');
|
||||||
|
|
||||||
// Что выполнять по команде `grunt`
|
// Что выполнять по команде `grunt`
|
||||||
grunt.registerTask('default', [ 'copy' ]);
|
grunt.registerTask('default', [ 'copy' ]);
|
||||||
|
|
|
@ -15,6 +15,7 @@
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"bower": "^1.3.12",
|
"bower": "^1.3.12",
|
||||||
"grunt": "^0.4.5",
|
"grunt": "^0.4.5",
|
||||||
|
"grunt-bump": "0.0.16",
|
||||||
"grunt-contrib-copy": "^0.7.0"
|
"grunt-contrib-copy": "^0.7.0"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue