I am trying to start grunt when ever there is a js change and have following code:
module.exports = function (grunt) {
grunt.initConfig({
nodemon: {
all: {
script: "server.js",
options: {
watchedExtensions:['js']
}
}
},
});
grunt.loadNpmTasks('grunt-nodemon');
grunt.registerTask('default', ['nodemon']);
};
But getting following error: Line 11, Char 5 , expected identifier,string or number.
Line 11 , char 5 is }, (curly braces)
My Server.js
looks like following .
var http = require("http")
var controllers = require("./controllers");
var express = require("express");
var app = express();
app.set("view engine", "vash");
//Set the public static resource folder
app.use(express.static(__dirname + "/public"));
//Map the routes
controllers.init(app);
var server = http.createServer(app);
server.listen(5465);