16 lines
350 B
JavaScript
16 lines
350 B
JavaScript
module.exports = function(grunt) {
|
|
|
|
grunt.loadNpmTasks("grunt-contrib-jshint");
|
|
|
|
grunt.initConfig({
|
|
pkg: "<json:package.json>",
|
|
jshint: {
|
|
options: grunt.file.readJSON( ".jshintrc" ),
|
|
files: ["Gruntfile.js", "lib/**/*.js", "sample-test.js"]
|
|
}
|
|
});
|
|
|
|
grunt.registerTask( "test", ["jshint"] );
|
|
grunt.registerTask( "default", "test" );
|
|
};
|