-
Notifications
You must be signed in to change notification settings - Fork 2
/
Gruntfile.js
78 lines (75 loc) · 2.47 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
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
module.exports = function (grunt) {
'use strict';
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower: {
install: {}
},
clean: {
lib: ['lib']
},
copy: {
dependencies: {
files: [
{
expand: true,
flatten: true,
src: ['bower_components/respond/dest/respond.min.js',
'bower_components/bootstrap/dist/js/bootstrap.js',
'bower_components/jquery/dist/jquery.js',
'bower_components/datatables/media/js/jquery.dataTables.js',
'bower_components/html5shiv/dist/html5shiv.js',
'bower_components/jquery.xdomainrequest/jQuery.XDomainRequest.js',
'bower_components/lodash-compat/lodash.js',
'bower_components/spin.js/spin.js',
'bower_components/jquery.spinjs/dist/jquery.spin.js',
'bower_components/sprintf/dist/sprintf.min.js',
'bower_components/requirejs/require.js'
],
dest: 'lib/js'
},
{
expand: true,
flatten: false,
cwd: 'bower_components/CodeMirror',
src: ['lib/*.js',
'addon/fold/*.js',
'mode/@(javascript|sparql|xml)/*.js'
],
dest: 'lib/js/cm'
},
{
expand: true,
flatten: true,
src: ['bower_components/CodeMirror/addon/fold/*.css',
'bower_components/CodeMirror/lib/codemirror.css',
'bower_components/bootstrap/dist/css/bootstrap.css',
'bower_components/datatables/media/css/jquery.dataTables.css',
'bower_components/fontawesome/css/font-awesome.css',
'bower_components/spin/stylesheets/jquery.spin.css'
],
dest: 'lib/css'
},
{
expand: true,
flatten: true,
src: ['bower_components/fontawesome/fonts/*'
],
dest: 'lib/fonts'
},
{
expand: true,
flatten: true,
src: ['bower_components/datatables/media/images/*.png'],
dest: 'lib/images'
}
]
}
}
});
grunt.loadNpmTasks('grunt-bower-task');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.loadNpmTasks('grunt-contrib-clean');
grunt.registerTask('install-dependencies', ['bower:install', 'clean:lib', 'copy:dependencies'] );
};