UNPKG

761 BJavaScriptView Raw
1'use strict';
2
3module.exports = function (grunt) {
4
5 grunt.initConfig({
6 mochaTest: {
7 test: {
8 options: {
9 reporter: 'spec',
10 require: 'coffee-script'
11 },
12 src: ['test/**/*.coffee']
13 }
14 },
15 release: {
16 options: {
17 tagName: 'v<%= version %>',
18 commitMessage: 'Prepared to release <%= version %>.'
19 }
20 },
21 watch: {
22 files: ['Gruntfile.js', 'src/**/*.coffee', 'test/**/*.coffee'],
23 tasks: ['test']
24 }
25 });
26
27 // load all grunt tasks
28 require('matchdep').filterDev(['grunt-*', '!grunt-cli']).forEach(grunt.loadNpmTasks);
29
30 grunt.registerTask('test', ['mochaTest']);
31 grunt.registerTask('test:watch', ['watch']);
32 grunt.registerTask('default', ['test']);
33};