forked from LavaLite/cms
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gulpfile.js
executable file
·162 lines (138 loc) · 10.3 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
var elixir = require('laravel-elixir');
var autoprefixer = require('gulp-autoprefixer');
/*
|--------------------------------------------------------------------------
| 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
// Packages for admin module.
.styles([
'./vendor/bower_components/bootstrap/dist/css/bootstrap.min.css',
'./vendor/bower_components/font-awesome/css/font-awesome.min.css',
'./vendor/bower_components/simple-line-icons/css/simple-line-icons.css',
'./vendor/bower_components/datatables-bootstrap3-plugin/media/css/datatables-bootstrap3.min.css',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.min.css',
'./vendor/bower_components/toastr/toastr.min.css',
'./vendor/bower_components/dropzone/dist/dropzone.css',
'./vendor/bower_components/sweetalert/dist/sweetalert.css',
'./vendor/bower_components/summernote/dist/summernote.css',
'./vendor/bower_components/ionicons/css/ionicons.min.css',
'./vendor/bower_components/select2/dist/css/select2.min.css',
'./vendor/bower_components/waves/dist/waves.css',
], './public/themes/admin/assets/css/vendor.css')
.scripts([
'./vendor/bower_components/jquery-ui/jquery-ui.js',
'./vendor/bower_components/bootstrap/dist/js/bootstrap.js',
'./vendor/bower_components/DataTables/media/js/jquery.dataTables.js',
'./vendor/bower_components/datatables-bootstrap3-plugin/media/js/datatables-bootstrap3.js',
'./vendor/bower_components/jquery-validation/dist/jquery.validate.js',
'./vendor/bower_components/moment/min/moment.min.js',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.full.js',
'./vendor/bower_components/toastr/toastr.js',
'./vendor/bower_components/sweetalert/dist/sweetalert-dev.js',
'./vendor/bower_components/dropzone/dist/dropzone.js',
'./vendor/bower_components/summernote/dist/summernote.js',
'./vendor/bower_components/waves/dist/waves.js',
'./vendor/bower_components/Sortable/Sortable.min.js',
'./vendor/bower_components/select2/dist/js/select2.min.js',
'./vendor/bower_components/jquery-timeago/jquery.timeago.js',
], './public/themes/admin/assets/js/vendor.js')
// Packages for user module.
.styles([
'./vendor/bower_components/normalize.css/normalize.css',
'./vendor/bower_components/bootstrap/dist/css/bootstrap.min.css',
'./vendor/bower_components/font-awesome/css/font-awesome.min.css',
'./vendor/bower_components/ionicons/css/ionicons.min.css',
'./vendor/bower_components/material-icons/css/material-icons.min.css',
'./vendor/bower_components/pixeden-stroke-7-icon/pe-icon-7-stroke/dist/pe-icon-7-stroke.css',
'./vendor/bower_components/bootstrap-select/dist/css/bootstrap-select.css',
'./vendor/bower_components/bootstrap-material-design/dist/css/bootstrap-material-design.css',
'./vendor/bower_components/bootstrap-material-design/dist/css/ripples.css',
'./vendor/bower_components/datatables-bootstrap3-plugin/media/css/datatables-bootstrap3.min.css',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.min.css',
'./vendor/bower_components/bootstrap-datepicker/dist/css/bootstrap-datepicker.css',
'./vendor/bower_components/toastr/toastr.min.css',
'./vendor/bower_components/dropzone/dist/dropzone.css',
'./vendor/bower_components/sweetalert/dist/sweetalert.css',
'./vendor/bower_components/summernote/dist/summernote.css',
'./vendor/bower_components/select2/dist/css/select2.min.css',
'./vendor/bower_components/waves/dist/waves.css',
], './public/themes/user/assets/css/vendor.css')
.scripts([
'./vendor/bower_components/jquery-ui/jquery-ui.js',
'./vendor/bower_components/moment/min/moment.min.js',
'./vendor/bower_components/bootstrap/dist/js/bootstrap.js',
'./vendor/bower_components/bootstrap-select/dist/js/bootstrap-select.js',
'./vendor/bower_components/DataTables/media/js/jquery.dataTables.js',
'./vendor/bower_components/jquery-validation/dist/jquery.validate.js',
'./vendor/bower_components/toastr/toastr.js',
'./vendor/bower_components/sweetalert/dist/sweetalert-dev.js',
'./vendor/bower_components/dropzone/dist/dropzone.js',
'./vendor/bower_components/summernote/dist/summernote.js',
'./vendor/bower_components/jquery-timeago/jquery.timeago.js',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.full.js',
'./vendor/bower_components/bootstrap-switch/dist/js/bootstrap-switch.js',
'./vendor/bower_components/datatables-bootstrap3-plugin/media/js/datatables-bootstrap3.js',
'./vendor/bower_components/bootstrap-material-design/dist/js/material.min.js',
'./vendor/bower_components/bootstrap-material-design/dist/js/ripples.js',
'./vendor/bower_components/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
'./vendor/bower_components/select2/dist/js/select2.min.js',
'./vendor/bower_components/Sortable/Sortable.js',
], './public/themes/user/assets/js/vendor.js')
// Packages for public module.
.styles([
'./vendor/bower_components/bootstrap/dist/css/bootstrap.min.css',
'./vendor/bower_components/toastr/toastr.min.css',
'./vendor/bower_components/font-awesome/css/font-awesome.min.css',
'./vendor/bower_components/toastr/toastr.min.css',
'./vendor/bower_components/dropzone/dist/dropzone.css',
'./vendor/bower_components/ionicons/css/ionicons.min.css',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.min.css',
'./vendor/bower_components/summernote/dist/summernote.css',
'./vendor/bower_components/simple-line-icons/css/simple-line-icons.css',
], './public/themes/public/assets/css/vendor.css')
.scripts([
'./vendor/bower_components/bootstrap/dist/js/bootstrap.js',
'./vendor/bower_components/jquery-validation/dist/jquery.validate.js',
'./vendor/bower_components/dropzone/dist/dropzone.js',
'./vendor/bower_components/summernote/dist/summernote.js',
'./vendor/bower_components/toastr/toastr.js',
'./vendor/bower_components/datetimepicker/build/jquery.datetimepicker.full.js',
'./vendor/bower_components/jquery-timeago/jquery.timeago.js',
'./vendor/bower_components/Sortable/Sortable.js',
], './public/themes/public/assets/js/vendor.js')
//User assets
.copy('./vendor/bower_components/fullcalendar/dist/fullcalendar.min.css', './public/themes/user/assets/packages/fullcalendar/fullcalendar.min.css')
.copy('./vendor/bower_components/fullcalendar/dist/fullcalendar.min.js', './public/themes/user/assets/packages/fullcalendar/fullcalendar.min.js')
.copy('./vendor/bower_components/fullcalendar/lang', './public/themes/user/assets/packages/fullcalendar/lang')
.copy('./vendor/bower_components/jquery/dist/jquery.min.js', './public/themes/user/assets/packages/jquery/js/jquery.min.js')
.copy('./vendor/bower_components/jquery/dist/jquery.min.map', './public/themes/user/assets/packages/jquery/js/jquery.min.map')
//Public assets
.copy('./vendor/bower_components/jquery/dist/jquery.min.js', './public/themes/public/assets/packages/jquery/js/jquery.min.js')
.copy('./vendor/bower_components/jquery/dist/jquery.min.map', './public/themes/public/assets/packages/jquery/js/jquery.min.map')
.copy('./vendor/bower_components/ionicons/fonts', './public/themes/public/assets/fonts')
.copy('./vendor/bower_components/font-awesome/fonts', './public/themes/public/assets/fonts')
.copy('./vendor/bower_components/simple-line-icons/fonts', './public/themes/public/assets/fonts')
//Admin assets
.copy('./vendor/bower_components/ionicons/fonts', './public/themes/admin/assets/fonts')
.copy('./vendor/bower_components/font-awesome/fonts', './public/themes/admin/assets/fonts')
.copy('./vendor/bower_components/simple-line-icons/fonts', './public/themes/admin/assets/fonts')
.copy('./vendor/bower_components/DataTables/media/images', './public/themes/admin/assets/packages/data-tables/images')
.copy('./vendor/bower_components/fullcalendar/dist/fullcalendar.min.css', './public/themes/admin/assets/packages/fullcalendar/fullcalendar.min.css')
.copy('./vendor/bower_components/fullcalendar/dist/fullcalendar.min.js', './public/themes/admin/assets/packages/fullcalendar/fullcalendar.min.js')
.copy('./vendor/bower_components/fullcalendar/lang', './public/themes/admin/assets/packages/fullcalendar/lang')
.copy('./vendor/bower_components/nestable-2/jquery.nestable.css', './public/themes/admin/assets/packages/nestable/jquery.nestable.css')
.copy('./vendor/bower_components/nestable-2/jquery.nestable.js', './public/themes/admin/assets/packages/nestable/jquery.nestable.js')
.copy('./vendor/bower_components/jstree/dist', './public/themes/admin/assets/packages/jstree')
.copy('./vendor/bower_components/select2/dist/css/select2.min.css', './public/themes/user/assets/packages/select2/css/select2.min.css')
.copy('./vendor/bower_components/select2/dist/js/select2.min.js', './public/themes/user/assets/packages/select2/js/select2.min.js')
.copy('./vendor/bower_components/cropper/dist/cropper.css', './public/themes/user/assets/packages/cropper/css/cropper.css')
.copy('./vendor/bower_components/cropper/dist/cropper.js', './public/themes/user/assets/packages/cropper/js/cropper.js')
});