Version 1
[yaffs-website] / node_modules / grunt-legacy-util / Gruntfile.js
1 'use strict';
2
3 module.exports = function(grunt) {
4
5   grunt.initConfig({
6     jshint: {
7       options: {
8         jshintrc: '.jshintrc',
9       },
10       all: ['*.js', 'test/*.js'],
11     },
12     nodeunit: {
13       util: ['test/index.js']
14     },
15     watch: {
16       all: {
17         files: ['<%= jshint.all %>'],
18         tasks: ['test'],
19       },
20     },
21   });
22
23   grunt.loadNpmTasks('grunt-contrib-jshint');
24   grunt.loadNpmTasks('grunt-contrib-nodeunit');
25   grunt.loadNpmTasks('grunt-contrib-watch');
26
27   grunt.registerTask('test', ['jshint', 'nodeunit']);
28   grunt.registerTask('default', ['test', 'watch']);
29
30 };