File tree Expand file tree Collapse file tree 1 file changed +11
-2
lines changed
Expand file tree Collapse file tree 1 file changed +11
-2
lines changed Original file line number Diff line number Diff line change 11log = require (' util' ).log
22jasmineSettings = 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
513pipeline = [
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 :
You can’t perform that action at this time.
0 commit comments