forked from beepnl/BEEP
-
Notifications
You must be signed in to change notification settings - Fork 0
/
webpack.mix.js
209 lines (182 loc) · 8.27 KB
/
webpack.mix.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
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
const mix = require('laravel-mix');
/*
|--------------------------------------------------------------------------
| Mix Asset Management
|--------------------------------------------------------------------------
|
| Mix provides a clean, fluent API for defining some Webpack build steps
| for your Laravel application. By default, we are compiling the Sass
| file for the application as well as bundling up all the JS files.
|
*/
/*
For RTL add
<link rel="stylesheet" href="node_modules/bootstrap-rtl/dist/css/bootstrap-rtl.min.css">
<link rel="stylesheet" href="node_modules/admin-lte-rtl/dist/css/AdminLTE-rtl.css">
*/
// Styling
mix.styles([
'node_modules/normalize-css/normalize.css',
'node_modules/admin-lte/bootstrap/css/bootstrap.min.css',
'node_modules/jstree/dist/themes/default/style.min.css',
'node_modules/admin-lte/plugins/select2/select2.min.css',
'resources/assets/css/portal.css',
'resources/assets/css/skin-beep.css',
], 'public/css/skin-base.css').version();
mix.copy([
'node_modules/admin-lte/bootstrap/css/bootstrap.min.css.map',
'node_modules/components-font-awesome/css/fontawesome.min.css',
], 'public/css');
mix.copy([
'node_modules/hammerjs/hammer.min.js.map',
], 'public/js');
mix.copy([
'resources/assets/js/lang/*',
], 'public/js/languages');
mix.styles([
'node_modules/animate.css/animate.min.css',
'node_modules/ng-dialog/css/ngDialog..min.css',
'node_modules/angular-ui-switch/angular-ui-switch.min.css',
'node_modules/angular-color-picker/angular-color-picker.css',
'node_modules/angularjs-slider/dist/rzslider.min.css',
'node_modules/datetimepicker/dist/DateTimePicker.min.css',
'resources/assets/css/measurements.css',
'resources/assets/css/file-upload.css',
], 'public/app/css/skin.css').version();
mix.styles([
'resources/assets/css/skin-beep-additions.css'
], 'public/css/skin-additions.css').version();
mix.copy('resources/assets/img', 'public/img');
mix.copy([
'node_modules/jstree/dist/themes/default/*.png',
'node_modules/jstree/dist/themes/default/*.gif'
], 'public/css');
mix.copy('resources/assets/fonts', 'public/fonts');
mix.copy('node_modules/admin-lte/bootstrap/fonts/', 'public/fonts');
mix.scripts(
['node_modules/admin-lte/plugins/jQuery/jquery-2.2.3.min.js'],
'public/js/jquery.js');
mix.scripts([
'node_modules/admin-lte/bootstrap/js/bootstrap.min.js',
'node_modules/admin-lte/dist/js/app.js',
'node_modules/admin-lte/plugins/slimScroll/jquery.slimscroll.min.js',
'node_modules/admin-lte/plugins/select2/select2.min.js',
'node_modules/hammerjs/hammer.min.js',
'node_modules/jstree/dist/jstree.min.js',
], 'public/js/scripts-base.js').version();
mix.babel([
'resources/assets/js/beep.js'
], 'public/js/scripts-portal.js').version();
mix.copyDirectory('node_modules/datatables.net-plugins/i18n', 'public/js/datatables/i18n');
mix.babel([
'resources/assets/js/constants.js',
], 'public/app/js/constants.js').version();
mix.scripts([
'node_modules/angular/angular.min.js',
], 'public/app/js/angular.js').version();
mix.babel([
'node_modules/angular-route/angular-route.min.js',
'node_modules/angular-animate/angular-animate.min.js',
'node_modules/moment/moment.js',
'node_modules/angular-moment/angular-moment.min.js',
'node_modules/chart.js/dist/Chart.min.js',
'node_modules/angular-chart.js/angular-chart.js',
'node_modules/ng-dialog/js/ngDialog.js',
'node_modules/ngmap/build/scripts/ng-map.min.js',
'node_modules/angular-color-picker/angular-color-picker.js',
'node_modules/angularjs-slider/dist/rzslider.min.js',
'node_modules/ng-js-tree/dist/ngJsTree.min.js',
'node_modules/angular-addtocalendar/dist/addtocalendar.js',
'node_modules/iscroll/build/iscroll.js',
'node_modules/ng-iScroll/src/ng-iscroll.js',
'node_modules/angularjs-gauge/src/angularjs-gauge.js',
'node_modules/datetimepicker/src/DateTimePicker.js',
'node_modules/ng-file-upload/dist/ng-file-upload-shim.min.js',
'node_modules/ng-file-upload/dist/ng-file-upload.min.js',
], 'public/app/js/angular-modules.js').version();
mix.babel([
'node_modules/angular-gestures/src/gestures.js',
'resources/assets/js/helpers/nalert.js',
'node_modules/fastclick/lib/fastclick.js',
'resources/assets/js/helpers/functions.js',
'resources/assets/js/filters/icon-filters.js',
'resources/assets/js/filters/text-filters.js',
], 'public/app/js/angular-helpers.js').version();
mix.babel([
'resources/assets/js/index.js',
'resources/assets/js/routes.js',
'resources/assets/js/lang/nl.js',
'resources/assets/js/lang/en.js',
'resources/assets/js/lang/de.js',
'resources/assets/js/lang/es.js',
'resources/assets/js/lang/fr.js',
'resources/assets/js/lang/ro.js',
'resources/assets/js/lang/pt.js',
'resources/assets/js/lang/it.js',
'resources/assets/js/lang/fi.js',
'node_modules/moment/locale/nl.js',
'node_modules/moment/locale/de.js',
'node_modules/moment/locale/es.js',
'node_modules/moment/locale/fr.js',
'node_modules/moment/locale/ro.js',
'node_modules/moment/locale/pt.js',
'node_modules/moment/locale/it.js',
'node_modules/moment/locale/fi.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-nl.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-de.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-es.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-fr.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-ro.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-pt.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-it.js',
'node_modules/datetimepicker/src/i18n/DateTimePicker-i18n-fi.js',
], 'public/app/js/angular-index.js').version();
mix.babel([
'node_modules/angular-ui-switch/angular-ui-switch.min.js',
'resources/assets/js/directives/angular-stepper.js',
'resources/assets/js/directives/angular-background.js',
'resources/assets/js/directives/angular-rating.js',
'resources/assets/js/directives/angular-smile-rating.js',
'resources/assets/js/directives/angular-yes-no.js',
'resources/assets/js/directives/angular-maps-autocomplete-mobile.js',
'resources/assets/js/directives/beep-checklist-fieldset.js',
'resources/assets/js/directives/beep-checklist-input.js',
'resources/assets/js/directives/beep-hive.js',
'resources/assets/js/directives/beep-hive-selector.js',
'resources/assets/js/directives/beep-group-hive.js',
'resources/assets/js/directives/beep-user-selector.js',
'resources/assets/js/directives/beep-sensor.js',
'resources/assets/js/directives/beep-sensor-definition.js',
'resources/assets/js/directives/angular-country-select.js',
'resources/assets/js/directives/angular-restrict-input.js',
'node_modules/angular-password/angular-password.min.js',
], 'public/app/js/angular-directives.js').version();
mix.babel([
'resources/assets/js/models/api.js',
'resources/assets/js/models/settings.js',
'resources/assets/js/models/hives.js',
'resources/assets/js/models/measurements.js',
'resources/assets/js/models/inspections.js',
'resources/assets/js/models/groups.js',
'resources/assets/js/models/images.js',
'resources/assets/js/controllers/load.js',
'resources/assets/js/controllers/user.js',
'resources/assets/js/controllers/settings.js',
'resources/assets/js/controllers/locations.js',
'resources/assets/js/controllers/hives.js',
'resources/assets/js/controllers/password.js',
'resources/assets/js/controllers/inspection_create.js',
'resources/assets/js/controllers/inspections.js',
'resources/assets/js/controllers/checklist.js',
'resources/assets/js/controllers/measurements.js',
'resources/assets/js/controllers/export.js',
'resources/assets/js/controllers/sensors.js',
'resources/assets/js/controllers/groups.js',
'resources/assets/js/controllers/researches.js',
'resources/assets/js/controllers/images.js',
], 'public/app/js/angular-code.js').version();
mix.copyDirectory('node_modules/components-font-awesome/webfonts', 'public/fonts');
mix.copyDirectory('resources/assets/app-views', 'public/app/views').version();
mix.copy('resources/terms', 'public');
//mix.browserSync('https://beep.test');