forked from marcel-devdude/mite-api
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathGruntfile.js
33 lines (28 loc) · 798 Bytes
/
Gruntfile.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
'use strict';
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
coffee: {
module: {
files: [{
expand: true, // Enable dynamic expansion.
cwd: 'src/', // Src matches are relative to this path.
src: ['**/*.coffee'], // Actual pattern(s) to match.
dest: '.', // Destination path prefix.
ext: '.js' // Dest filepaths will have this extension.
}]
}
},
watch: {
default: {
files: ['src/**/*.coffee'],
tasks: 'default'
}
}
});
// These plugins provide necessary tasks.
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-contrib-coffee');
// Default task.
grunt.registerTask('default', ['coffee']);
};