forked from jimrhoskins/angular-parse
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
73 lines (63 loc) · 1.43 KB
/
Gruntfile.js
File metadata and controls
73 lines (63 loc) · 1.43 KB
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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
/*global module:false*/
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
watch: {
core: {
files: ['src/*.coffee'],
tasks: ['coffee:core']
},
example: {
files: ['example/coffee/*.coffee'],
tasks: ['coffee:example']
},
cloud: {
files: ['example/parse/src/*.coffee'],
tasks: ['coffee:cloud', 'parse-deploy']
}
},
coffee: {
core: {
expand: true,
cwd: 'src',
src: ['*.coffee'],
dest: '.',
ext: '.js'
},
example: {
expand: true,
cwd: 'example/coffee',
src: ['*.coffee'],
dest: 'example/js',
ext: '.js'
},
cloud: {
expand: true,
cwd: 'example/parse/src',
src: ['*.coffee'],
dest: 'example/parse/cloud',
ext: '.js'
}
},
testacularServer: {
unit: {
configFile: "testacular.conf.js"
}
}
});
grunt.loadNpmTasks('grunt-testacular');
grunt.loadNpmTasks('grunt-contrib-coffee');
// Default task.
grunt.registerTask('default', 'coffee');
grunt.registerTask('dev', 'server testacularServer watch')
grunt.registerTask('parse-deploy', function () {
var done = this.async();
grunt.utils.spawn({
cmd: "parse",
args: ["deploy"],
opts: {
cwd: "./example/parse"
}
},function () {done(); });
});
};