loglog-server
Version:
Loglog logging web server
42 lines (36 loc) • 839 B
JavaScript
module.exports = function( grunt ){
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-watch');
var config = {
pkg: grunt.file.readJSON('package.json')
, watch: {
jshint: {
// Concat jshint.all
files: [],
tasks: ['jshint'],
options: { spawn: false }
}
}
, jshint: {
// define the files to lint
all: ['*.js', 'lib/*.js', 'public/js/*.js', 'test/*.js'],
options: {
ignores: ['node_modules'],
laxcomma: true,
sub: true,
globals: {
console: true,
module: true
}
}
}
};
config.watch.jshint.files = config.watch.jshint.files.concat(
config.jshint.all
);
grunt.initConfig( config );
grunt.registerTask( 'default', [
'jshint'
, 'watch'
]);
};