You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

13 lines
401 B

  1. 'use strict';
  2. module.exports = function (grunt, options) {
  3. var pkgFunction = function () {
  4. return grunt.file.readJSON('package.json')
  5. };
  6. //THIS extension forces the banner or whatever uses pkgFunction to always get the latest version
  7. //where as pkg is only done once at grunt init.
  8. _.extend(options, {
  9. pkgFunction: pkgFunction
  10. });
  11. return pkgFunction();
  12. };