forked from cidrblock/drawthe.net
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
59 lines (55 loc) · 1.88 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
var pkgjson = require('./package.json');
module.exports = function(grunt) {
grunt.initConfig({
copy: {
dist: {
files: [{
expand: true,
cwd: 'node_modules/d3',
src: 'build/d3.min.js',
dest: 'build/js',
flatten: true
},{
expand: true,
cwd: 'node_modules/js-yaml',
src: 'dist/js-yaml.min.js',
dest: 'build/js',
flatten: true
}]
}
},
bowercopy: {
options: {
// Bower components folder will be removed afterwards
clean: true
},
// Anything can be copied
test: {
options: {
destPrefix: 'build/'
},
files: {
'js/angular.min.js': 'angular/angular.min.js',
'js/angular-animate.min.js': 'angular-animate/angular-animate.min.js',
'js/ace.js': 'ace-builds/src-min/ace.js',
'js/mode-yaml.js': 'ace-builds/src-min/mode-yaml.js',
'js/ui-ace.min.js': 'angular-ui-ace/ui-ace.min.js',
'js/ui-bootstrap.min.js': 'angular-bootstrap/ui-bootstrap.min.js',
'js/ui-bootstrap-tpls.min.js': 'angular-bootstrap/ui-bootstrap-tpls.min.js',
'js/showdown.js': 'showdown/dist/showdown.min.js',
'js/showdown-prettify.min.js': 'showdown-prettify/dist/showdown-prettify.min.js',
'css/bootstrap.min.css': 'bootstrap-css-only/css/bootstrap.min.css',
'fonts': 'bootstrap-css-only/fonts/*',
'css/font-awesome.min.css': 'components-font-awesome/css/font-awesome.min.css',
'fonts': 'components-font-awesome/fonts/*',
}
},
}
});
grunt.loadNpmTasks('grunt-bowercopy');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', [
'copy',
'bowercopy'
]);
};