-
Notifications
You must be signed in to change notification settings - Fork 1
/
gruntfile.js
63 lines (63 loc) · 2.14 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
63
module.exports = function (grunt) {
grunt.initConfig({
requirejs: {
compile: {
options: {
preserveLicenseComments: false,
paths: {
tourbus: 'thirdparty/jquery-tourbus.min',
bootstrap: 'thirdparty/bootstrap.min',
d3: 'thirdparty/d3.min',
QuadTree: 'thirdparty/QuadTree',
googleChart: 'thirdparty/loader'
},
baseUrl: 'src',
name: '../tools/almond',
include: ['../main'],
out: 'main.min.js',
insertRequire: ['../main'],
wrapShim: true,
wrap: {
startFile: 'tools/wrap.start',
endFile: 'tools/wrap.end'
}
}
}
},
jsdoc: {
dist: {
src: ['src/scripts/*.js'],
options: {
destination: 'documentation',
configure: 'documentation/config.json',
readme: 'README.md'
}
}
},
uglify: {
my_target: {
files: {
'src/thirdparty/thirdaparty.min.js': [
'src/thirdparty/jquery.min.js',
'src/thirdparty/jquery-ui.js',
'src/thirdparty/papaparse.js',
'src/thirdparty/fancytree.min.js']
}
}
},
cssmin: {
target: {
files: {
'style/style.min.css': ['style/*.css']
}
}
}
});
//grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-requirejs');
//grunt.loadNpmTasks('grunt-contrib-cssmin');
//grunt.loadNpmTasks('grunt-jsdoc');
//grunt.registerTask('default', ['jsdoc']);
// grunt.registerTask('default', ['requirejs']);
//grunt.registerTask('default', ['cssmin', 'uglify']);
};