-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
173 lines (148 loc) · 4.25 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
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
const elixir = require('laravel-elixir');
require('laravel-elixir-vue');
elixir.config.sourcemaps = false;
/*
|--------------------------------------------------------------------------
| 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(mix => {
/**
* Minify & Compile all CSS Files & Libraries required for the application
*/
//run phpUnit
//mix.phpUnit();
//compile and minify css for Profile
mix.styles([
"bootstrap.min.css",
"toastr.min.css",
"fullcalendar.css",
"fullcalendar.print.css",
"jquery-ui.min.css",
"Profile.css"
], 'public/css/Profile.css');
//Bootstrap and Toastr
mix.styles([
"bootstrap.min.css",
"toastr.min.css",
"jquery-ui.min.css"
], 'public/css/Toastr_Bootstrap.css');
//compile and minify css for CICO
mix.styles([,
"bootstrap.min.css",
"toastr.min.css",
"jquery-ui.min.css",
"CICO.css"
], 'public/css/CICO.css');
//compile and minify css for Login
mix.styles([,
"bootstrap.min.css",
"toastr.min.css",
"jquery-ui.min.css",
"Login.css"
], 'public/css/Login.css');
//compile and minify CSS for archive
mix.styles([
"Archive.css"
], 'public/css/Archive.css');
/**
* Minify & Compile all JS Files & Libraries required for the application
*/
//Minified & Compiled JS for CICO page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"fontawesome.min.js",
"toastr.min.js",
"VolunteerRESTLibrary.js",
"CICO.js",
"Vue.js"
], 'public/js/CICO.js');
//Minified & Compiled JS for Checkout page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"fontawesome.min.js",
"toastr.min.js",
"moment.js",
"jquery.tabledit.min.js",
"VolunteerRESTLibrary.js",
"CICO.js",
"Vue.js"
], 'public/js/Checkout.js');
//Minified & Compiled JS for Navbar & Profile page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"touchpunch.min.js",
"fontawesome.min.js",
"toastr.min.js",
"moment.js",
"spin.min.js",
"Highcharts.js",
"fullcalendar.min.js",
"jquery.tabledit.min.js",
"VolunteerRESTLibrary.js",
"Chart.js",
"Profile.js",
"Vue.js"
], 'public/js/Profile.js');
//Minified & Compiled JS for Archive page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"fontawesome.min.js",
"toastr.min.js",
"VolunteerRESTLibrary.js",
"Archive.js",
"Vue.js"
], 'public/js/Archive.js');
//Minified & Compiled JS for Donation page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"fontawesome.min.js",
"toastr.min.js",
"VolunteerRESTLibrary.js",
"Archive.js",
"Vue.js"
], 'public/js/Archive.js');
//Minified & Compiled JS for Login page
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"fontawesome.min.js",
"VolunteerRESTLibrary.js",
"Vue.js"
], 'public/js/Login.js');
//Minified & Compiled JS for Password Reset pages
mix.scripts([
"jquery.min.js",
"jquery-ui.min.js",
"bootstrap.min.js",
"Vue.js"
], 'public/js/Jquery_Bootstrap.js');
//Minified & Compiled JS for Volunteer Search page
mix.scripts([
"jquery.min.js",
"bootstrap.min.js",
"toastr.min.js",
"fontawesome.min.js",
"jquery.tabledit.min.js",
"VolunteerRESTLibrary.js",
"Search.js",
"Vue.js"
], 'public/js/Search.js');
mix.copy('public/css', 'public/public/css').copy('public/js', 'public/public/js');
});