-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgruntfile.js
94 lines (90 loc) · 3.21 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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
module.exports = function(grunt){
grunt.initConfig({
uglify:{
carousel: {
files:{
"web/js/sites/common/Carousel.min.js":"web/js/devs/carousel/Carousel.js"
}
},
carouselSlideManager:{
files:{
"web/js/admin/common/carousel_slides_manager.min.js":"web/js/devs/carousel_slides_manager.js"
}
},
zooResto:{
files:{
"web/js/admin/zooparc/restaurants_actions.min.js":
[
"web/js/devs/images_upload.js",
"web/js/devs/jquery.imgUpload.js",
"web/js/devs/new_restaurant_manager.js",
"web/js/devs/restaurant_manager.js"
]
}
},
galleryManager:{
files:{
"web/js/admin/common/gallery_manager.min.js":"web/js/devs/gallery_manager.js"
}
},
staticpage:{
files:{
"web/js/admin/zooparc/static_page_actions.min.js":
[
"web/js/devs/static_page_add.js",
"web/js/devs/static_page_modifier.js",
"web/js/devs/static_page_delete.js"
]
}
},
uploadimage:{
files:{
"web/js/admin/common/jquery.imgUpload.min.js":
[
"web/js/devs/images_upload.js",
"web/js/devs/jquery.imgUpload.js"
]
}
},
alertManager:{
files:{
"web/js/sites/common/alertManager.min.js": "web/js/devs/alert_manager.js"
}
},
faqManager:{
files:{
"web/js/admin/common/faqManager.min.js": "web/js/devs/FAQ/faq_manager.js"
}
},
jqueryCookie:{
files:{
"web/js/vendor/jquery.cookie.min.js": "web/js/vendor/jquery.cookie.js"
}
}
},
concat:{
options: {
separator: ';'
},
lib: {
src: [
"web/js/vendor/jquery-2.1.1.min.js",
"web/js/vendor/jquery.cookie.min.js",
"web/js/vendor/jquery.scrollTo.min.js",
"web/js/vendor/waypoints.min.js",
"web/js/vendor/waypoints-sticky.min.js",
"web/js/sites/common/Carousel.min.js"
],
dest: "web/js/vendor/lib.js"
}
}
});
grunt.loadNpmTasks('grunt-contrib-uglify');
grunt.loadNpmTasks('grunt-contrib-concat');
grunt.registerTask('default', function(){
console.log("hello !");
});
grunt.registerTask('carousel', ["uglify:carousel"]);
grunt.registerTask('staticpage', ["uglify:staticpage"]);
grunt.registerTask('lib', ["concat:lib"]);
};