diff --git a/Gruntfile.js b/Gruntfile.js index f4d9996..ce9f8ef 100644 --- a/Gruntfile.js +++ b/Gruntfile.js @@ -1,5 +1,9 @@ module.exports = function( grunt ) { 'use strict'; + + function packageVersion() { + return require('./package.json').version; + } // // Grunt configuration: // @@ -31,7 +35,8 @@ module.exports = function( grunt ) { beforeEach: false, afterEach: false, spyOn: false, - getJasmineRequireObj: false + getJasmineRequireObj: false, + require: false } }, all: ['Gruntfile.js', 'src/**/*.js', 'lib/**/*.js', 'spec/**/*.js'] @@ -62,10 +67,6 @@ module.exports = function( grunt ) { packageVersion: packageVersion() }); - function packageVersion() { - return require('./package.json').version; - } - grunt.registerTask('versionCheck', function() { var pkgVersion = packageVersion(), bower = require('./bower.json'),