-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·94 lines (90 loc) · 2.43 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
const elixir = require('laravel-elixir');
//require('laravel-elixir-vue-2');
/*
|--------------------------------------------------------------------------
| 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.
|
*/
var scripts = {
toastr: './node_modules/toastr/toastr.js',
sweetalert: './node_modules/sweetalert/dist/sweetalert.min.js',
pjax: './bower_components/jquery-pjax/jquery.pjax.js',
//datetimepicker: './bower_components/eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js',
//moment: './bower_components/moment/min/moment.min.js',
//moment_fr: './bower_components/moment/locale/fr.js'
}
elixir(function(mix) {
mix
//.sass('app.scss')
/*
.styles([
'essentials.css',
'layout.css',
'header.css',
'color.css',
'shop.css'
], 'public/css/app.css')
*/
.less([
'app.less',
], 'public/css/app.css')
.less([
'payment.less'
], 'public/css/payment.css')
.sass([
'components/*.scss',
'components/**.scss',
], 'public/css/components.css')
.sass([
'plugins/*/scss',
'plugins/**.scss',
], 'public/css/plugins.css')
.scripts([
//'components.js',
scripts.toastr,
scripts.sweetalert,
//scripts.pjax,
], 'public/js/components.js')
.copy('resources/assets/imgs', 'public/imgs')
.scripts([
'actions.js',
'components.js',
'app.js'
], 'public/js/app.js')
.scripts([
//'admin/bootstrap-checkbox-radio-switch.js',
'admin/bootstrap-notify.js',
'admin/bootstrap-select.js',
'admin/chartist.min.js',
'admin/light-bootstrap-dashboard.js'
], 'public/js/admin.js')
.scripts([
//'plugins/moment.js',
//'plugins/datetimepicker.js',
'plugins/sumernote_fr.js',
], 'public/js/plugins.js')
.sass([
'admin/light-bootstrap-dashboard.scss'
], 'public/css/admin.css')
.scripts([
'plugins/jquery.slimscroll.min.js',
], 'public/js/plugins/jquery.slimscroll.min.js')
.version([
'css/app.css',
'css/components.css',
'css/payment.css',
'js/components.js',
'js/plugins.js',
'js/app.js',
'css/admin.css',
//'css/plugins.css',
'js/admin.js',
'js/laroute.js'
])
//.webpack('app.js');
});