50 lines
940 B
JavaScript
50 lines
940 B
JavaScript
/*
|
|
* grunt-cli
|
|
* http://gruntjs.com/
|
|
*
|
|
* Copyright (c) 2012 Tyler Kellen, contributors
|
|
* Licensed under the MIT license.
|
|
* https://github.com/gruntjs/grunt-init/blob/master/LICENSE-MIT
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
module.exports = function(grunt) {
|
|
|
|
// Project configuration.
|
|
grunt.initConfig({
|
|
jshint: {
|
|
all: [
|
|
'Gruntfile.js',
|
|
'lib/**/*.js',
|
|
'bin/*',
|
|
],
|
|
options: {
|
|
curly: true,
|
|
eqeqeq: true,
|
|
immed: true,
|
|
latedef: true,
|
|
newcap: true,
|
|
noarg: true,
|
|
sub: true,
|
|
undef: true,
|
|
unused: true,
|
|
boss: true,
|
|
eqnull: true,
|
|
node: true,
|
|
es5: true
|
|
}
|
|
},
|
|
});
|
|
|
|
// These plugins provide necessary tasks.
|
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
|
|
|
// "npm test" runs these tasks
|
|
grunt.registerTask('test', ['jshint']);
|
|
|
|
// Default task.
|
|
grunt.registerTask('default', ['test']);
|
|
|
|
};
|