anorgatarrak-wordpress-theme/node_modules/grunt-legacy-log/Gruntfile.js

31 lines
599 B
JavaScript

'use strict';
module.exports = function(grunt) {
grunt.initConfig({
jshint: {
options: {
jshintrc: '.jshintrc',
},
all: ['*.js', 'test/*.js'],
},
nodeunit: {
util: ['test/index.js']
},
watch: {
all: {
files: ['<%= jshint.all %>'],
tasks: ['test'],
},
},
});
grunt.loadNpmTasks('grunt-contrib-jshint');
grunt.loadNpmTasks('grunt-contrib-nodeunit');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.registerTask('test', ['jshint', 'nodeunit']);
grunt.registerTask('default', ['test', 'watch']);
};