-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
37 lines (35 loc) · 1.43 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
module.exports = function(grunt) {
// Project configuration.
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bower_concat: {
all: {
dest: 'build/_bower.js',
cssDest: 'build/_bower.css',
mainFiles: {
bootstrap: ['dist/css/bootstrap.css', 'dist/css/bootstrap-theme.css'],
'font-awesome': ['css/font-awesome.css'],
'jquery-play-sound' : ['jquery.playSound.js'],
literallycanvas : ['js/literallycanvas.min.js', 'css/literallycanvas.css']
},
bowerOptions: {
relative: false,
nonull: true
}
}
},
copy: {
main: {
files: [
{expand: true, flatten: true, src: ['bower_components/font-awesome/fonts/*'], dest: 'webroot/fonts/', filter: 'isFile'},
{expand: true, flatten: true, src: ['bower_components/bootstrap/fonts/*'], dest: 'webroot/fonts/', filter: 'isFile'},
{expand: true, flatten: true, src: ['bower_components/mjolnic-bootstrap-colorpicker/dist/img/bootstrap-colorpicker/*'], dest: 'webroot/img/bootstrap-colorpicker', filter: 'isFile'},
{expand: true, flatten: true, src: ['bower_components/literallycanvas/img/*'], dest: 'webroot/img/literallycanvas', filter: 'isFile'},
]
}
}
});
grunt.loadNpmTasks('grunt-bower-concat');
grunt.loadNpmTasks('grunt-contrib-copy');
grunt.registerTask('default', ['bower_concat:all', 'copy']);
};