-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathgruntfile.js
36 lines (34 loc) · 1012 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
34
35
36
module.exports = function (grunt) {
grunt.loadNpmTasks('grunt-ts');
grunt.loadNpmTasks('grunt-typedoc');
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
ts: {
main: {
src: "src/index.ts",
dest: 'bin/',
options: {
target: 'es5',
sourceMap: true,
declaration: true,
module: 'commonjs'
}
}
},
typedoc: {
doc: {
src: "src/index.ts",
options: {
out: './docs',
name: 'ev3dev-lang for Node.js',
target: 'es5',
disableOutputCheck: '',
module: 'commonjs'
}
}
}
});
grunt.registerTask('default', ['ts', 'typedoc']);
grunt.registerTask('tsc', ['ts']);
grunt.registerTask('doc', ['ts', 'typedoc']);
}