This repository has been archived by the owner on Mar 28, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgruntfile.js
62 lines (54 loc) · 2.2 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
53
54
55
56
57
58
59
60
61
62
module.exports = function(grunt)
{
grunt.loadNpmTasks("grunt-run-grunt");
grunt.initConfig(
{
gruntFiles:
[
"./**/gruntfile.js",
"!./gruntfile.js",
"!./**/node_modules/**/gruntfile.js"
],
deployableGruntFiles:
[ "./typescript-atomizer-plugin/gruntfile.js" ],
run_grunt:
{
options:
{
process: function(res)
{
if (res.fail) {
grunt.log.writeln("Error in " + res.src);
grunt.log.writeln(res.res.stdout);
grunt.log.writeln(res.res.stderr);
}
}
},
build:
{
src: "<%=gruntFiles %>",
options: { task: "build" }
},
test:
{
src: "<%=gruntFiles %>",
options: { task: "test" }
},
deploy:
{
src: "<%=deployableGruntFiles %>",
options: { task: "deploy" }
},
package:
{
src: "<%=deployableGruntFiles %>",
options: { task: "package" }
}
}
}
);
grunt.registerTask("build", [ "run_grunt:build" ]);
grunt.registerTask("test", [ "run_grunt:test" ]);
grunt.registerTask("deploy", [ "run_grunt:deploy" ]);
grunt.registerTask("package", [ "run_grunt:build", "run_grunt:package" ]);
};