2014-10-20 23:39:14 +04:00
|
|
|
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
|
|
|
|
|
2015-07-23 22:29:08 +03:00
|
|
|
//
|
|
|
|
// A task to stamp a new version.
|
|
|
|
//
|
|
|
|
//
|
|
|
|
// * version is updated in package.json
|
|
|
|
// * changelog is generated.
|
|
|
|
// * git tag with version name is created.
|
|
|
|
// * git commit with updated package.json created.
|
|
|
|
//
|
|
|
|
// NOTE: This task will not push this commit for you.
|
|
|
|
//
|
|
|
|
|
|
|
|
|
2014-10-20 23:39:14 +04:00
|
|
|
module.exports = function (grunt) {
|
|
|
|
'use strict';
|
|
|
|
|
2015-07-23 22:29:08 +03:00
|
|
|
grunt.registerTask('version', [
|
|
|
|
'bump-only:minor',
|
2018-05-17 17:14:51 +03:00
|
|
|
'conventionalChangelog:release',
|
2015-07-23 22:29:08 +03:00
|
|
|
'bump-commit'
|
|
|
|
]);
|
|
|
|
|
|
|
|
grunt.registerTask('version:patch', [
|
|
|
|
'bump-only:patch',
|
2018-05-17 17:14:51 +03:00
|
|
|
'conventionalChangelog:release',
|
2015-07-23 22:29:08 +03:00
|
|
|
'bump-commit'
|
2014-10-20 23:39:14 +04:00
|
|
|
]);
|
|
|
|
};
|