forked from dojo/cli
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
43 lines (40 loc) · 868 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
37
38
39
40
41
42
43
module.exports = function (grunt) {
var staticFiles = [ 'templates/**', 'config/**' ];
require('grunt-dojo2').initConfig(grunt, {
ts: {
dist: {
exclude: [
'./src/templates',
"./tests/**/*.ts"
]
}
},
copy: {
staticDevFiles: {
expand: true,
cwd: 'src',
src: staticFiles,
dest: '<%= devDirectory %>/src'
},
staticDistFiles: {
expand: true,
cwd: 'src',
src: staticFiles,
dest: '<%= distDirectory %>'
}
},
typedoc: {
options: {
ignoreCompilerErrors: true // Remove this once compile errors are resolved
}
},
intern: {
version: 4
}
});
grunt.registerTask('dev', grunt.config.get('devTasks').concat(['copy:staticDevFiles']));
grunt.registerTask('dist', grunt.config.get('distTasks').concat(['copy:staticDistFiles']));
grunt.registerTask('ci', [
'intern:node'
]);
};