forked from datawrapper/datawrapper
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathGruntfile.js
More file actions
48 lines (45 loc) · 1.84 KB
/
Copy pathGruntfile.js
File metadata and controls
48 lines (45 loc) · 1.84 KB
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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
subgrunt: {
options: { },
dwjs: { 'dw.js': 'default' }
},
bowercopy: {
options: {
clean: true,
destPrefix: 'www/static/vendor/',
analytics: false,
production: true,
},
libs: {
files: {
'bootstrap/css': 'bootstrap/docs/assets/css',
'bootstrap/img': 'bootstrap/docs/assets/img/glyphicons*',
'bootstrap/js': 'bootstrap/docs/assets/js/bootstrap.min.js',
canvg: 'canvg/dist/*',
'chroma-js': 'chroma-js/chroma*.js',
'codemirror/addon': 'codemirror/addon',
'codemirror/lib': 'codemirror/lib',
'codemirror/mode/javascript': 'codemirror/mode/javascript',
d3: 'd3/d3*.js',
'd3-jetpack': 'd3-jetpack/d3-jetpack*.js',
'font-awesome/css': 'font-awesome/css',
'font-awesome/fonts': 'font-awesome/fonts',
handsontable: 'handsontable/dist/*',
imagesloaded: 'imagesloaded/imagesloaded*.js',
jquery: 'jquery/dist/*',
'json-js': 'JSON-js/json2.js',
masonry: 'masonry/dist/masonry*.js',
'queue-async': 'queue-async/queue*js',
requirejs: 'requirejs/require*.js',
underscore: 'underscore/underscore*',
}
}
}
});
grunt.loadNpmTasks('grunt-subgrunt');
grunt.loadNpmTasks('grunt-bowercopy');
grunt.registerTask('default', ['subgrunt', 'bowercopy']);
};