Skip to content
This repository was archived by the owner on Sep 20, 2019. It is now read-only.

Commit 34231ca

Browse files
committed
chore(release-process): fix release grunt task
1 parent fecab51 commit 34231ca

File tree

6 files changed

+433
-296
lines changed

6 files changed

+433
-296
lines changed

CHANGELOG.md

Lines changed: 394 additions & 265 deletions
Large diffs are not rendered by default.

bower.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "ui-leaflet",
33
"author": "https://github.com/angular-ui/ui-leaflet/graphs/contributors",
44
"description": "ui-leaflet - An AngularJS directive to easily interact with Leaflet maps",
5-
"version": "1.0.0",
5+
"version": "1.0.2",
66
"homepage": "http://angular-ui.github.io/ui-leaflet/",
77
"keywords": [
88
"angularjs",

grunt/aliases.coffee

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,13 @@ module.exports =
3636

3737
travis:[ 'fastbuild', 'bower:install', 'testunit' ]
3838

39+
changelog: ['conventionalChangelog']
3940

40-
'bump@':[ 'bumponly', 'default', 'graph', 'bumpcommit' ]
41+
'bump@':[ 'bumponly', 'default', 'changelog', 'bumpcommit' ]
4142

42-
'bump@minor':[ 'bumponly:minor', 'default', 'graph', 'bumpcommit' ]
43+
'bump@minor':[ 'bumponly:minor', 'default', 'changelog', 'bumpcommit' ]
4344

44-
'bump@major':[ 'bumponly:major', 'default', 'graph', 'bumpcommit' ]
45+
'bump@major':[ 'bumponly:major', 'default', 'changelog', 'bumpcommit' ]
4546
#To Update examples for Viewer
4647
examples:[ 'shell:examples', 'concat:examples' ]
4748

grunt/changelog.js

Lines changed: 0 additions & 26 deletions
This file was deleted.

grunt/conventionalChangelog.js

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
'use strict';
2+
var _pkg = require('../package.json');
3+
var argv = require('yargs').argv;
4+
5+
/*
6+
_pkg.nextVersion only works for patch updates
7+
8+
Using changelog in the workflow is not really recommended right now as changelog is not really able to be modified until
9+
a new tag is released.
10+
11+
Using Yargs as a workaround which grunt should be used in this way:
12+
13+
`grunt changelog --ui_leaflet_ver SOME_TAG_NUMBER`
14+
*/
15+
16+
module.exports = function (grunt, options) {
17+
console.log('version:', argv.ui_leaflet_ver || _pkg.version);
18+
return {
19+
options: {
20+
changelogOpts: {
21+
// conventional-changelog options go here
22+
preset: 'angular',
23+
releaseCount: 0
24+
},
25+
context: {
26+
currentTag: 'v' + (argv.ui_leaflet_ver || _pkg.version)
27+
}
28+
},
29+
release: {
30+
src: 'CHANGELOG.md'
31+
}
32+
};
33+
};

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
"author": "https://github.com/angular-ui/ui-leaflet/graphs/contributors",
44
"name": "ui-leaflet",
55
"description": "ui-leaflet - An AngularJS directive to easily interact with Leaflet maps",
6-
"version": "1.0.0",
6+
"version": "1.0.2",
77
"homepage": "http://angular-ui.github.io/ui-leaflet/",
88
"repository": {
99
"type": "git",

0 commit comments

Comments
 (0)