Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parser fails on gruntfile reading package.json #3

Open
bzuillsmith opened this issue Jun 19, 2013 · 0 comments
Open

Parser fails on gruntfile reading package.json #3

bzuillsmith opened this issue Jun 19, 2013 · 0 comments

Comments

@bzuillsmith
Copy link

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']);
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant