You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
49 lines
1008 B
49 lines
1008 B
1 month ago
|
'use strict';
|
||
|
|
||
|
module.exports = function(grunt) {
|
||
|
|
||
|
// Project configuration.
|
||
|
grunt.initConfig({
|
||
|
nodeunit: {
|
||
|
files: ['test/**/*_test.js'],
|
||
|
},
|
||
|
jshint: {
|
||
|
options: {
|
||
|
jshintrc: '.jshintrc'
|
||
|
},
|
||
|
gruntfile: {
|
||
|
src: 'Gruntfile.js'
|
||
|
},
|
||
|
lib: {
|
||
|
src: ['lib/**/*.js']
|
||
|
},
|
||
|
test: {
|
||
|
src: ['test/**/*.js']
|
||
|
},
|
||
|
},
|
||
|
watch: {
|
||
|
gruntfile: {
|
||
|
files: '<%= jshint.gruntfile.src %>',
|
||
|
tasks: ['jshint:gruntfile']
|
||
|
},
|
||
|
lib: {
|
||
|
files: '<%= jshint.lib.src %>',
|
||
|
tasks: ['jshint:lib', 'nodeunit']
|
||
|
},
|
||
|
test: {
|
||
|
files: '<%= jshint.test.src %>',
|
||
|
tasks: ['jshint:test', 'nodeunit']
|
||
|
},
|
||
|
},
|
||
|
});
|
||
|
|
||
|
// These plugins provide necessary tasks.
|
||
|
grunt.loadNpmTasks('grunt-contrib-nodeunit');
|
||
|
grunt.loadNpmTasks('grunt-contrib-jshint');
|
||
|
grunt.loadNpmTasks('grunt-contrib-watch');
|
||
|
|
||
|
// Default task.
|
||
|
grunt.registerTask('default', ['jshint', 'nodeunit']);
|
||
|
|
||
|
};
|