forked from georgicodes/etsy-js
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
52 lines (45 loc) · 1.31 KB
/
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
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
watch: {
coffee: {
files:['src/**/*.coffee'],
tasks: ['coffee:compileAll'],
options: {
spawn: false
}
}
},
coffee: {
compileAll: {
expand: true,
bare: true,
cwd: 'src',
src: '**/*.coffee',
dest: 'lib',
ext: '.js'
}
},
coffeelint: {
app: ['src/*.coffee', 'src/etsyjs/*.coffee']
},
mochaTest: {
test: {
options: {
reporter: 'spec',
require: 'coffee-script/register'
},
src: ['test/**/*.coffee']
}
}
});
grunt.loadNpmTasks('grunt-contrib-coffee');
grunt.loadNpmTasks('grunt-contrib-watch');
grunt.loadNpmTasks('grunt-coffeelint');
grunt.loadNpmTasks('grunt-mocha-test');
grunt.loadNpmTasks('grunt-release');
// task(s)
grunt.registerTask('default', ['coffee', 'watch', 'coffeelint', 'mochaTest']);
grunt.registerTask('test', ['mochaTest']);
};