Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Unexpected token - #5

@rainabba

Description

@rainabba
>> SyntaxError: C:\PRJ\vtv\git\vantage-backend\Gruntfile.js:7
>>              modulus-deploy: {
>>                     ^
>> Unexpected token -

As far as I can tell, your module name is invalid due to the hyphen. Am I missing something obvious? Below is my test Gruntfile (and I can't see any sign of using - in module names for any of my other projects)

module.exports = function(grunt) {
    // Project configuration.
    require('load-grunt-tasks')( grunt );

    grunt.initConfig({

        modulus-deploy: {
            stage: {
                options: {
                    project: "vantage-backend-stage"
                }
            },
            production: {
                options: {
                    project: "vantage-backend"
                }
            },
        },

    });

    grunt.registerTask("default", [ "modulus-deploy" ]);
}

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