-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
64 lines (58 loc) · 2.56 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
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| 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.
|
*/
var paths = {
'assets': './resources/assets/',
'jquery': './node_modules/jquery/',
'bootstrap': './node_modules/bootstrap-sass/assets/',
'bootstraphover': './node_modules/bootstrap-hover-dropdown/',
'fontawesome': './node_modules/font-awesome/',
'animatecss': './node_modules/animate.css/',
'datatables': './node_modules/datatables.net/js/',
'datatablesbs': './node_modules/datatables.net-bs/',
'datatablesr': './node_modules/datatables.net-responsive/js/',
'datatablesrbs': './node_modules/datatables.net-responsive-bs/',
'datatablesro': './node_modules/datatables.net-rowreorder/js/',
'datatablesrobs': './node_modules/datatables.net-rowreorder-bs/',
'toastr': './node_modules/toastr/',
}
elixir(function (mix) {
mix.sass('app.scss', paths.assets + 'css/scss.css', {includePaths: [
paths.bootstrap + 'stylesheets',
paths.fontawesome + 'scss',
]})
.styles([
paths.animatecss + 'animate.css',
paths.datatablesbs + 'css/dataTables.bootstrap.css',
paths.datatablesrbs + 'css/responsive.bootstrap.css',
paths.datatablesrobs + 'css/rowReorder.bootstrap.css',
paths.toastr + 'build/toastr.css',
paths.assets + 'css/scss.css',
], 'public/css/app.css', './')
.scripts([
paths.jquery + "jquery.js",
paths.bootstrap + "javascripts/bootstrap.js",
paths.bootstraphover + "bootstrap-hover-dropdown.js",
paths.datatables + "jquery.dataTables.js",
paths.datatablesbs + "js/dataTables.bootstrap.js",
paths.datatablesr + "dataTables.responsive.js",
paths.datatablesrbs + "js/responsive.bootstrap.js",
paths.datatablesro + "dataTables.rowReorder.js",
paths.toastr + 'toastr.js',
"./resources/assets/js/app.js",
], 'public/js/app.js', './')
.copy(paths.bootstrap + 'fonts/bootstrap/**', 'public/fonts/bootstrap')
.copy(paths.fontawesome + 'fonts/**', 'public/fonts/fontawesome')
.version([
'css/app.css',
'js/app.js',
])
});