mirror of
https://github.com/arnaucube/commonroutesApp.git
synced 2026-02-08 12:06:50 +01:00
14 lines
401 B
JavaScript
14 lines
401 B
JavaScript
'use strict';
|
|
|
|
module.exports = function (grunt, options) {
|
|
var pkgFunction = function () {
|
|
return grunt.file.readJSON('package.json')
|
|
};
|
|
//THIS extension forces the banner or whatever uses pkgFunction to always get the latest version
|
|
//where as pkg is only done once at grunt init.
|
|
_.extend(options, {
|
|
pkgFunction: pkgFunction
|
|
});
|
|
return pkgFunction();
|
|
};
|