esrol
Version:
A wrapper of all Esrol server components for creating performance efficient, well structured (by following 'convention over configuration' approach), but also configurable, server-side applications.
52 lines (48 loc) • 1.19 kB
JavaScript
module.exports = function (grunt) {
grunt.initConfig({
concurrent: {
target: ['node-inspector', 'nodemon'],
options: {
logConcurrentOutput: true
}
},
'node-inspector': {
dev: {}
},
nodemon: {
all: {
script: 'app.js',
options: {
ignored: ['README.md', 'node_modules/**'],
watchedExtensions: ['js', 'json'],
watchedFolders: ['test', 'app'],
delayTime: 1,
nostdin: true,
legacyWatch: true,
nodeArgs: ['--debug'],
callback: function(nodemon) {
nodemon.on('log', function(event) {
console.log(event.colour);
});
}
}
},
none: {}
},
eslint: {
options: {
configFile: '.eslintrc',
rulePaths: ['']
},
all: {
src: ['app/']
}
}
});
grunt.loadNpmTasks('grunt-nodemon');
grunt.loadNpmTasks('grunt-node-inspector');
grunt.loadNpmTasks('grunt-eslint');
grunt.loadNpmTasks('grunt-force-task');
grunt.loadNpmTasks('grunt-concurrent');
grunt.registerTask('default', ['force:eslint', 'concurrent:target']);
};