blob: d7e5845312e18e371ccfea5c19ef977c644344bb [file] [log] [blame]
Leo Repp58b9f112021-11-22 11:57:47 +01001'use strict';
2
3module.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};