brackets-grunt
brackets-grunt copied to clipboard
Parser fails on gruntfile reading package.json
This gruntfile worked with the package.json line commented out. When it was not commented as below, it failed to parse and "Loading..." continued to display in the Grunt console. Note: This runs fine in the command prompt.
/*global module */
module.exports = function (grunt) {
'use strict';
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
jshint: {
options: {
nomen: false
},
all: ['Gruntfile.js', 'src/main.js', 'src/router.js']
}
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.registerTask('default', ['jshint']);
};