-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
40 lines (34 loc) · 1.5 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
const elixir = require('laravel-elixir');
let paths = {
'js_prv' : "resources/assets/js/",
'css_prv' : "resources/assets/css/",
'select2' : "node_modules/select2/",
'select2bs': "node_modules/select2-bootstrap-theme/"
};
elixir(function(mix) {
mix.copy(paths.select2 + "dist/js/select2.full.js", 'public/js')
.copy(paths.select2 + "dist/css/select2.css", paths.css_prv)
.copy(paths.select2bs + "dist/select2-bootstrap.css", paths.css_prv)
.copy('node_modules/datatables/media/css/jquery.dataTables.css', paths.css_prv)
.copy('node_modules/datatables-bootstrap3-plugin/media/css/datatables-bootstrap3.less', 'resources/assets/less')
.copy('bower_components/iCheck/icheck.js', 'public/js')
.copy('bower_components/iCheck/skins/minimal/_all.css', 'public/css')
.copy('node_modules/jquery-sortable/source/js/jquery-sortable-min.js', 'public/js')
;
mix.copy('node_modules/font-awesome/fonts', 'public/fonts');
mix.copy('bower_components/iCheck/skins/minimal/**.png', 'public/css');
//mix.sass('jquery-sortable.css.sass', 'public/css');
mix.styles(['welcome.css'], 'public/css/welcome.css');
mix.sass('app.scss')
.less('datatables-bootstrap3.less')
.styles([
'main.css',
'select2.css',
'jquery.dataTables.css',
'select2-bootstrap.css'
], 'public/css/main.css')
.browserify([
'app.js'
//'select2.full.js'
], 'public/js/app.js');
});