UNPKG

646 BJavaScriptView Raw
1module.exports = function(grunt) {
2 'use strict';
3
4 // Project configuration.
5 grunt.initConfig({
6 jshint: {
7 all: ['src/*.js', 'test/*.js'],
8 options: {
9 jshintrc: '.jshintrc'
10 }
11 },
12
13 mochaTest: {
14 all: {
15 options: {
16 reporter: 'spec'
17 },
18 src: ['test/*-test.js']
19 }
20 }
21 });
22
23 // Load the plugin(s)
24 grunt.loadNpmTasks('grunt-contrib-jshint');
25 grunt.loadNpmTasks('grunt-mocha-test');
26
27 // Tasks
28 grunt.registerTask('default', ['jshint', 'mochaTest']);
29};
\No newline at end of file