-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathgruntfile.js
31 lines (31 loc) · 958 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
module.exports = function (grunt) {
grunt.initConfig({
ts: {
default: {
src: ["**/*.ts", "!node_modules/**/*.ts", "!csproj2ts.d.ts", "!tests/tests.d.ts"],
options: {
target: 'es5',
module: 'commonjs',
sourceMap: false,
declaration: true,
noImplicitAny: true,
suppressImplicitAnyIndexErrors: true
}
}
},
nodeunit: {
all: ['tests/*tests.js']
},
run: {
demo: {
args: ['./demo.js']
}
}
});
grunt.loadNpmTasks("grunt-ts");
grunt.loadNpmTasks("grunt-contrib-nodeunit");
grunt.loadNpmTasks("grunt-run");
grunt.registerTask("default", ["ts"]);
grunt.registerTask("test", ["ts","nodeunit"]);
grunt.registerTask("demo", ["ts","nodeunit","run"]);
};