forked from invoiceninja/invoiceninja
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
191 lines (163 loc) · 6.58 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
var elixir = require('laravel-elixir');
/**
* Set Elixir Source Maps
*
* @type {boolean}
*/
elixir.config.sourcemaps = true;
/**
* Remove all CSS comments
*
* @type {{discardComments: {removeAll: boolean}}}
*/
elixir.config.css.minifier.pluginOptions = {
discardComments: {
removeAll: true
}
};
/**
* Directory for bower source files.
* If changing this, please also see .bowerrc
*
* @type {string}
*/
var bowerDir = '../bower';
elixir(function(mix) {
/**
* CSS configuration
*/
mix.styles([
bowerDir + '/bootstrap/dist/css/bootstrap.css',
bowerDir + '/font-awesome/css/font-awesome.css',
bowerDir + '/datatables/media/css/jquery.dataTables.css',
bowerDir + '/datatables-bootstrap3/BS3/assets/css/datatables.css',
'bootstrap-combobox.css',
'public.style.css',
'fonts.css'
], 'public/css/built.public.css');
mix.styles([
bowerDir + '/bootstrap/dist/css/bootstrap.css',
bowerDir + '/bootstrap-datepicker/dist/css/bootstrap-datepicker3.css',
bowerDir + '/datatables/media/css/jquery.dataTables.css',
bowerDir + '/datatables-bootstrap3/BS3/assets/css/datatables.css',
bowerDir + '/font-awesome/css/font-awesome.css',
bowerDir + '/dropzone/dist/dropzone.css',
bowerDir + '/spectrum/spectrum.css',
bowerDir + '/sweetalert2/dist/sweetalert2.css',
bowerDir + '/toastr/toastr.css',
'bootstrap-combobox.css',
'typeahead.js-bootstrap.css',
'style.css',
'sidebar.css',
'colors.css',
'fonts.css',
], 'public/css/built.css');
mix.styles([
'login.css'
], 'public/css/built.login.css');
mix.styles([
bowerDir + '/bootstrap-daterangepicker/daterangepicker.css'
], 'public/css/daterangepicker.css');
mix.styles([
bowerDir + '/grapesjs/dist/css/grapes.min.css',
//'grapesjs-preset-newsletter.css',
], 'public/css/grapesjs.css');
mix.styles([
bowerDir + '/jt.timepicker/jquery.timepicker.css'
], 'public/css/jquery.timepicker.css');
mix.styles([
bowerDir + '/select2/dist/css/select2.css'
], 'public/css/select2.css');
mix.styles([
bowerDir + '/tablesorter/dist/css/theme.bootstrap_3.min.css',
bowerDir + '/tablesorter/dist/css/theme.bootstrap.min.css',
bowerDir + '/tablesorter/dist/css/widget.grouping.min.css'
], 'public/css/tablesorter.css');
mix.styles([
bowerDir + '/fullcalendar/dist/fullcalendar.css'
], 'public/css/fullcalendar.css');
/**
* JS configuration
*/
mix.scripts(['resources/assets/js/Chart.js'], 'public/js/Chart.min.js')
.scripts(['resources/assets/js/d3.js'], 'public/js/d3.min.js');
mix.scripts([
'pdf_viewer.js',
'compatibility.js',
//bowerDir + '/pdfmake/build/pdfmake.js',
'pdfmake.js',
'vfs.js'
], 'public/pdf.built.js');
mix.scripts([
bowerDir + '/bootstrap-daterangepicker/daterangepicker.js'
], 'public/js/daterangepicker.min.js');
mix.scripts([
bowerDir + '/grapesjs/dist/grapes.js',
], 'public/js/grapesjs.min.js');
mix.scripts([
bowerDir + '/jt.timepicker/jquery.timepicker.js'
], 'public/js/jquery.timepicker.js');
mix.scripts([
bowerDir + '/fullcalendar/dist/fullcalendar.js',
bowerDir + '/fullcalendar/dist/locale-all.js',
], 'public/js/fullcalendar.min.js');
mix.scripts([
bowerDir + '/card/dist/card.js',
], 'public/js/card.min.js');
mix.scripts([
bowerDir + '/qrcode.js/qrcode.js',
], 'public/js/qrcode.min.js');
mix.scripts([
bowerDir + '/tablesorter/dist/js/jquery.tablesorter.combined.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-grouping.min.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-uitheme.min.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-filter.min.js',
bowerDir + '/tablesorter/dist/js/widgets/widget-columnSelector.min.js',
], 'public/js/tablesorter.min.js');
mix.scripts([
bowerDir + '/select2/dist/js/select2.js',
'resources/assets/js/maximize-select2-height.js',
], 'public/js/select2.min.js');
mix.scripts([
bowerDir + '/jSignature/libs/jSignature.min.js'
], 'public/js/jSignature.min.js');
mix.scripts([
bowerDir + '/jquery/dist/jquery.js',
bowerDir + '/jquery-ui/jquery-ui.js',
bowerDir + '/bootstrap/dist/js/bootstrap.js',
bowerDir + '/datatables/media/js/jquery.dataTables.js',
bowerDir + '/datatables-bootstrap3/BS3/assets/js/datatables.js',
bowerDir + '/knockout.js/knockout.js',
bowerDir + '/knockout-mapping/build/output/knockout.mapping-latest.js',
bowerDir + '/knockout-sortable/build/knockout-sortable.js',
bowerDir + '/underscore/underscore.js',
bowerDir + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.de.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.da.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.pt-BR.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.nl.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.fr.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.it.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.lt.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.no.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.es.min.js',
bowerDir + '/bootstrap-datepicker/dist/locales/bootstrap-datepicker.sv.min.js',
bowerDir + '/dropzone/dist/dropzone.js',
bowerDir + '/typeahead.js/dist/typeahead.jquery.js',
bowerDir + '/accounting/accounting.js',
bowerDir + '/money.js/money.js',
bowerDir + '/spectrum/spectrum.js',
bowerDir + '/moment/moment.js',
bowerDir + '/moment-timezone/builds/moment-timezone-with-data.js',
bowerDir + '/stacktrace-js/stacktrace.js',
bowerDir + '/es6-promise/es6-promise.auto.js',
bowerDir + '/sweetalert2/dist/sweetalert2.js',
bowerDir + '/nouislider/distribute/nouislider.js',
bowerDir + '/mousetrap/mousetrap.js',
bowerDir + '/toastr/toastr.js',
bowerDir + '/fuse.js/src/fuse.js',
'bootstrap-combobox.js',
'script.js',
'pdf.pdfmake.js',
], 'public/built.js');
});