forked from LaravelRUS/SleepingOwlAdmin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
59 lines (52 loc) · 1.71 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
var elixir = require('laravel-elixir');
elixir.extend('sourcemaps', false);
process.env.DISABLE_NOTIFIER = true;
/*
|--------------------------------------------------------------------------
| 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 Less
| file for our application, as well as publishing vendor resources.
|
*/
elixir(function(mix) {
mix
.less('common.less', 'public/default/css');
/**************************************************************
* Libraries
**************************************************************/
mix
.scripts([
'jquery/js/jquery.min.js',
'bootstrap/js/bootstrap.js',
'noty/js/jquery.noty.packaged.js',
'bootbox.js/js/bootbox.js',
'jquery-colorbox/js/jquery.colorbox-min.js',
'moment/js/moment-with-locales.min.js',
'underscore/js/underscore.js',
'x-editable/js/bootstrap-editable.min.js',
'ekko-lightbox/js/ekko-lightbox.min.js',
'../../../resources/assets/js/core.js'
], 'public/default/js/libraries.js', 'public/default/libs');
/**************************************************************
* Admin
**************************************************************/
mix
.scripts([
'column/checkbox.js',
'column/control.js',
'column/image.js',
'form/datetime.js',
'form/select.js',
'form/image/init.js',
'form/image/initMultiple.js',
'init.js'
], 'public/default/js/admin-default.js');
mix
.scripts([
'libs/datatables/dataTables.bootstrap.js',
'libs/datatables/datatables.js'
], 'public/default/js/datatables.min.js');
});