-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgrunt.js
54 lines (51 loc) · 1.31 KB
/
grunt.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
module.exports = function(grunt) {
grunt.loadNpmTasks('grunt-css');
// Project configuration.
grunt.initConfig({
lint: {
js: ['grunt.js', 'lib/controls/*.js', 'lib/*.js']
},
csslint: {
css: ['lib/*.css', 'lib/controls/*.css']
},
concat: {
js: {
src: ['lib/*.js', 'lib/controls/*.js', 'vendor/**/*.js'],
dest: 'sticigui.js'
},
css: {
src: ['lib/*.css', 'lib/controls/*.css', 'vendor/**/*.css'],
dest: 'sticigui.css'
}
},
min: {
js: {
src: 'sticigui.js',
dest: 'sticigui.min.js'
}
},
cssmin: {
css: {
src: 'sticigui.css',
dest: 'sticigui.min.css'
}
},
jshint: {
options: {
sub: true
},
globals: {
jQuery: true,
d3: true
}
}
});
// Currently we cannot use csslint because we depend on using SVG CSS
// properties such as 'fill' and 'stroke'. When csslint eventually supports
// SVG CSS properties (i.e. https://github.com/nzakas/parser-lib/issues/28 is
// closed), we should add csslint to the list of tasks to perform.
// TODO(jmeady): add csslint.
grunt.registerTask('default', 'lint concat min cssmin');
grunt.registerTask('debug', 'default');
grunt.registerTask('nolint', 'concat min');
};