-
Notifications
You must be signed in to change notification settings - Fork 0
/
Gruntfile.js
61 lines (59 loc) · 1.95 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
module.exports = function (grunt) {
grunt.initConfig({
pkg: grunt.file.readJSON('package.json'),
bowercopy: {
options: {
srcPrefix: 'bower_components',
destPrefix: 'web/assets'
},
scripts: {
files: {
}
},
stylesheets: {
files: {
'css/bootstrap.css': 'bootstrap/dist/css/bootstrap.css',
'css/bootstrap-tour.css': 'bootstrap-tour/build/css/bootstrap-tour.css',
'css/jqueryui-timepicker-addon.css': 'jqueryui-timepicker-addon/src/jquery-ui-timepicker-addon.css',
'css/jquery-ui.css': 'jquery-ui/themes/base/jquery-ui.css',
}
},
},
uglify : {
lib: {
files: {
'web/js/bundled.min.js': [
'bower_components/jquery/dist/jquery.js',
'src/AppBundle/Resources/public/js/*'
]
}
}
},
concat: {
options: {
stripBanners: true
},
css: {
src: [
'web/assets/css/*.css',
],
dest: 'web/css/bundled.css'
}
},
copy: {
images: {
expand: true,
cwd: 'src/MY/FrontendBundle/Resources/public/images',
src: '*',
dest: 'web/assets/images/'
}
}
});
// grunt.loadNpmTasks('grunt-bowercopy');
// grunt.loadNpmTasks('grunt-contrib-concat');
// grunt.loadNpmTasks('grunt-contrib-copy');
// grunt.loadNpmTasks('grunt-contrib-cssmin');
grunt.loadNpmTasks('grunt-contrib-uglify');
//grunt.registerTask('default', ['bowercopy','copy', 'concat', 'cssmin', 'uglify']);
grunt.registerTask('default', ['uglify']);
};