Files
commonroutesApp/www/lib/ui-leaflet/grunt/pkg.js
2017-01-27 17:49:04 +01:00

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();
};