-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathgulpfile.js
executable file
·135 lines (110 loc) · 6.02 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
var del = require('del');
var elixir = require('laravel-elixir');
elixir.extend('remove', function(path) {
new elixir.Task('remove', function() {
del(path);
});
});
elixir(function(mix) {
// mix.copy(
// 'resources/assets/fonts',
// 'public/build/fonts'
// );
mix.less('custom.less', 'public/css/dashboard/');
mix.browserify('bootstrap.min.js', 'public/js/dashboard/');
// Copy bootstrap and AdminLTE CSS files to public directory
mix.copy('bower_components/AdminLTE/bootstrap/css/bootstrap.css', 'public/css/dashboard/bootstrap.css');
mix.copy('bower_components/AdminLTE/dist/css/AdminLTE.css', 'public/css/dashboard/admin-lte.css');
mix.copy('bower_components/AdminLTE/dist/css/skins/_all-skins.css', 'public/css/dashboard/admin-lte-skin.css');
mix.copy('bower_components/AdminLTE/dist/js/app.js', 'public/js/dashboard/admin-lte.js');
// Copy fonts from Glypicons
mix.copy('bower_components/AdminLTE/bootstrap/fonts', 'public/build/fonts');
// Font Awesome
mix.copy('bower_components/font-awesome/css/font-awesome.css', 'public/css/dashboard/font-awesome.css');
mix.copy('bower_components/font-awesome/fonts', 'public/build/fonts');
// iCheck
mix.copy('bower_components/AdminLTE/plugins/iCheck/square/blue.css', 'public/css/dashboard/i-check-blue.css');
mix.copy('bower_components/AdminLTE/plugins/iCheck/flat/flat.css', 'public/css/dashboard/i-check-flat.css');
mix.copy('bower_components/AdminLTE/plugins/iCheck/square/blue.png', 'public/build/css/blue.png');
mix.copy('bower_components/AdminLTE/plugins/iCheck/flat/flat.png', 'public/build/css/flat.png');
mix.copy('bower_components/AdminLTE/plugins/iCheck/icheck.js', 'public/js/dashboard/i-check.js');
// ChartJS
mix.copy('bower_components/AdminLTE/plugins/chartjs/Chart.min.js', 'public/js/dashboard/Chart.min.js');
// Datatables
mix.copy('bower_components/AdminLTE/plugins/datatables/dataTables.bootstrap.css', 'public/css/dashboard/dataTables.bootstrap.css');
mix.copy('bower_components/AdminLTE/plugins/datatables/jquery.dataTables.min.js', 'public/js/dashboard/jquery.dataTables.min.js');
mix.copy('bower_components/AdminLTE/plugins/datatables/dataTables.bootstrap.min.js', 'public/js/dashboard/dataTables.bootstrap.min.js');
// SweetAlert
mix.copy('bower_components/sweetalert/dist/sweetalert.css', 'public/css/dashboard/sweetalert.css');
mix.copy('bower_components/sweetalert/dist/sweetalert.min.js', 'public/js/dashboard/sweetalert.min.js');
// Select2
mix.copy('bower_components/AdminLTE/plugins/select2/select2.min.css', 'public/css/dashboard/select2.min.css');
mix.copy('bower_components/AdminLTE/plugins/select2/select2.full.min.js', 'public/js/dashboard/select2.full.min.js');
// Bootstrap Switch
mix.copy('bower_components/bootstrap-switch/dist/css/bootstrap3/bootstrap-switch.min.css', 'public/css/dashboard/bootstrap-switch.min.css');
mix.copy('bower_components/bootstrap-switch/dist/js/bootstrap-switch.min.js', 'public/js/dashboard/bootstrap-switch.min.js');
//Others
mix.copy('resources/assets/js/app.js', 'public/js/dashboard/app.js');
mix.copy('resources/assets/js/croppie/croppie.js', 'public/js/dashboard/croppie.js');
mix.copy('resources/assets/js/moment.min.js', 'public/js/dashboard/moment.min.js');
mix.copy('resources/assets/js/delete.handler.js', 'public/js/dashboard/delete.handler.js');
mix.copy('resources/assets/js/bootstrap-datetimepicker.min.js', 'public/js/dashboard/bootstrap-datetimepicker.min.js');
mix.copy('resources/assets/css/bootstrap-datetimepicker.min.css', 'public/css/dashboard/bootstrap-datetimepicker.min.css');
mix.copy('resources/assets/js/croppie/croppie.css', 'public/css/dashboard/croppie.css');
// Merge all dashboard CSS files in one file.
mix.styles([
'/dashboard/bootstrap.css',
'/dashboard/dataTables.bootstrap.css',
'/dashboard/admin-lte.css',
'dashboard/admin-lte-skin.css',
'dashboard/font-awesome.css',
'/dashboard/i-check-blue.css',
'/dashboard/i-check-flat.css',
'/dashboard/custom.css',
'/dashboard/bootstrap-datetimepicker.min.css',
'/dashboard/croppie.css',
'/dashboard/sweetalert.css',
'/dashboard/bootstrap-switch.min.css',
'/dashboard/select2.min.css'
], './public/css/dashboard.css', './public/css');
// Merge all dashboard JS files in one file.
mix.scripts([
'/dashboard/bootstrap.min.js',
'/dashboard/jquery.dataTables.min.js',
'/dashboard/dataTables.bootstrap.min.js',
'/dashboard/admin-lte.js',
'/dashboard/i-check.js',
'/dashboard/Chart.min.js',
'/dashboard/app.js',
'/dashboard/croppie.js',
'/dashboard/moment.min.js',
'/dashboard/delete.handler.js',
'/dashboard/bootstrap-datetimepicker.min.js',
'/dashboard/sweetalert.min.js',
'/dashboard/bootstrap-switch.min.js',
'dashboard/select2.full.min.js'
], './public/js/dashboard.js', './public/js');
// frontend
mix.copy('bower_components/bootstrap/dist/css/bootstrap.min.css', 'public/css/frontend/bootstrap.min.css');
mix.copy('bower_components/bootstrap/dist/js/bootstrap.min.js', 'public/js/frontend/bootstrap.min.js');
mix.copy('resources/assets/css/flag-icon.min.css', 'public/css/frontend/flag-icon.min.css');
mix.copy('resources/assets/flags', 'public/build/flags');
// Merge all frontend CSS files in one file.
mix.styles([
'/frontend/bootstrap.min.css',
'/frontend/flag-icon.min.css'
], './public/css/frontend.css', './public/css');
// Merge all frontend JS files in one file.
mix.scripts([
'/frontend/bootstrap.min.js'
], './public/js/frontend.js', './public/js');
mix.version([
"public/css/dashboard.css",
"public/css/frontend.css",
"public/js/dashboard.js",
"public/js/frontend.js"
]);
elixir(function(mix) {
mix.remove([ 'public/css', 'public/js', 'public/fonts' ]);
});
});