I'm using grunt-express to do local development.
here is my GruntFile.js
var path = require('path');
module.exports = function(grunt){
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
uglify:{
options:{
banner:'/*! <%= pkg.name %> <%= grunt.template.today("yyyy-mm-dd") %> */\n'
}
},
express:{
server:{
options:{
debug:true,
server: path.resolve('app.js')
}
}
},
env : {
options:{
},
dev : {
NODE_ENV : 'development'
},
prod : {
NODE_ENV : 'production'
}
},
mochaTest:{
test:{
options:{
reporter:'spec'
},
src:['tests/*.js']
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-express');
grunt.loadNpmTasks('grunt-env');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-shell');
// tasks
grunt.registerTask('start', ['env:dev', 'express', 'express-keepalive']);
grunt.registerTask('stop', ['express-stop']);
grunt.registerTask('test', 'mochaTest');
};
I start my local server with
grunt start
but I need to add the --harmony flag to node executable.
How would I do this?