Skip to content

Parser fails on gruntfile reading package.json #3

@bzuillsmith

Description

@bzuillsmith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions