brackets-grunt icon indicating copy to clipboard operation
brackets-grunt copied to clipboard

Parser fails on gruntfile reading package.json

Open bzuillsmith opened this issue 11 years ago • 0 comments

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']);
};

bzuillsmith avatar Jun 19 '13 21:06 bzuillsmith