Skip to content

Commit 56a5ae7

Browse files
committed
Merge branch '2.0.X' into 2.1.X
2 parents e8a5b24 + cef77ec commit 56a5ae7

File tree

1 file changed

+11
-2
lines changed

1 file changed

+11
-2
lines changed

grunt/options.coffee

Lines changed: 11 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
log = require('util').log
22
jasmineSettings = require './jasmine'
33
_ = require 'lodash'
4+
_pkg = require '../package.json'
5+
6+
_pkg.nextVersion = do ->
7+
# note this will fail on new minor or major releases.. oh well manually fix it
8+
# for now as this is mainly for changelog
9+
last = _.last _pkg.version.split('.')
10+
next = Number(last) + 1
11+
_pkg.version.replace(last, String(next))
412

513
pipeline = [
614
"src/coffee/module"
@@ -132,7 +140,7 @@ module.exports = (grunt) ->
132140
tag: false
133141
push: false
134142
pushTags: false
135-
pkg: grunt.file.readJSON("package.json")
143+
pkg: _pkg
136144
pkgFn: ->
137145
grunt.file.readJSON("package.json") #always get latest!
138146
clean:
@@ -300,7 +308,8 @@ module.exports = (grunt) ->
300308
filename: "webpack.[name].js",
301309

302310
changelog:
303-
options:{}
311+
options:
312+
version: _pkg.nextVersion
304313

305314
angular_architecture_graph:
306315
diagram:

0 commit comments

Comments
 (0)