-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathgulpfile.js
executable file
·135 lines (130 loc) · 5.15 KB
/
gulpfile.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
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| Elixir Asset Management
|--------------------------------------------------------------------------
|
| Elixir provides a clean, fluent API for defining some basic Gulp tasks
| for your Laravel application. By default, we are compiling the Sass
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
// Concatenate common vendor js files
mix.combine([
'resources/assets/js/vendor/jquery.min.js',
'resources/assets/js/vendor/materialize.min.js',
'resources/assets/js/vendor/VueJS/vue.min.js',
'resources/assets/js/vendor/VueJS/vue-resource.min.js',
'resources/assets/js/vendor/moment.min.js',
'resources/assets/js/vendor/autobahn.min.js',
'resources/assets/js/vendor/lodash.min.js'
], 'public/js/vendor.js');
// Concatenate js files for specific pages
mix.scripts([
'config.js',
'custom.js'
], 'public/js/siteCustom.js')
.scripts([
'vendor/elasticsearch.jquery.min.js',
'customer/swinecart.js',
'customer/customer_custom.js'
], 'public/js/customer/custom.js')
.scripts([
'customer/createProfile_script.js',
'validation/formValidationMethods.js',
'validation/customer/createProfile_validation.js'
], 'public/js/customer/createProfile.js')
.scripts([
'customer/profile.js',
'customer/editProfile_script.js',
'validation/formValidationMethods.js',
'validation/customer/editProfile_validation.js'
], 'public/js/customer/editProfile.js')
.scripts([
'vendor/VideoJS/video.min.js',
'vendor/imagezoom.min.js',
'customer/viewProductDetail_script.js'
], 'public/js/customer/viewProductDetail.js')
.scripts([
'customer/filter.js',
'customer/viewProducts_script.js'
], 'public/js/customer/viewProducts.js')
.scripts([
'vendor/dropzone.min.js',
'vendor/VideoJS/video.min.js',
'breeder/breeder_custom.js'
], 'public/js/breeder/custom.js')
.scripts([
'breeder/createProfile_script.js',
'validation/formValidationMethods.js',
'validation/breeder/createProfile_validation.js'
], 'public/js/breeder/createProfile.js')
.scripts([
'breeder/profile.js',
'breeder/editProfile_script.js',
'validation/formValidationMethods.js',
'validation/breeder/editProfile_validation.js'
], 'public/js/breeder/editProfile.js')
.scripts([
'vendor/chart.min.js',
'breeder/dashboardPage.js'
], 'public/js/breeder/dashboard.js')
.scripts([
'breeder/product.js',
'breeder/filter.js',
'breeder/manageProducts_script.js',
'validation/formValidationMethods.js',
'validation/breeder/manageProducts_validation.js'
], 'public/js/breeder/showProducts.js')
.scripts([
'vendor/imagezoom.min.js',
'breeder/viewProductDetail_script.js'
], 'public/js/breeder/viewProductDetail.js');
// Version the following files to promote browser cache busting
// Forces browser to download latest asset files
mix.version([
'js/siteCustom.js',
'js/vendor.js',
'js/chat.js',
'js/customer/custom.js',
'js/customer/createProfile.js',
'js/customer/editProfile.js',
'js/customer/notifications.js',
'js/customer/swinecartPage.js',
'js/customer/viewProductDetail.js',
'js/customer/viewProducts.js',
'js/breeder/custom.js',
'js/breeder/createProfile.js',
'js/breeder/editProfile.js',
'js/breeder/notifications.js',
'js/breeder/reviews.js',
'js/breeder/dashboard.js',
'js/breeder/dashboardProductStatus.js',
'js/breeder/showProducts.js',
'js/breeder/viewProductDetail.js'
]);
// -app:
// > Customer
// + pages:
// _ createProfile
// _ editProfile
// _ swineCart
// _ viewBreeders (maps)
// _ viewProductDetail
// _ viewProducts
// > Breeder:
// + pages:
// _ createProfile
// _ editProfile
// _ reviews
// _ notifications
// _ dashboard
// _ dashboardProductStatus
// _ showProducts
// _ viewCustomers (maps)
// _ viewProductDetail
// -vendor: jquery, materialize, vue, vue-resource, moment, autobahn, lodash
// > Customer: elasticsearch.jquery (home, products), lodash (swineCart page), videojs (viewProductDetail), imagezoom (viewProductDetail)
// > Breeder: videojs (showProducts, viewProductDetail), imagezoom, dropzone (editProfile, showProducts), lodash (dashboardProductStatus)
});