-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
70 lines (65 loc) · 2.54 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
/*
* This file is part of laravel-bootstrap-adminlte-starter-kit.
*
* Copyright (c) 2016 Oleksii Prudkyi
*/
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 Sass
| file for our application, as well as publishing vendor resources.
|
*/
/*
elixir(function(mix) {
mix.sass('app.scss');
});
*/
var paths = {
'jquery': './vendor/bower_components/jquery/'
, 'bootstrap': './vendor/bower_components/bootstrap-sass/assets/'
, 'fontawesome': './vendor/bower_components/font-awesome/'
, 'datatables': './vendor/bower_components/datatables/media/'
, 'adminlte': './vendor/bower_components/AdminLTE/dist/'
, 'js_error_alert': './vendor/bower_components/js-error-alert/'
, 'bootstrap_notify': './vendor/bower_components/remarkable-bootstrap-notify/dist/'
, 'bower_components': './vendor/bower_components/'
, 'starterkit': './resources/assets/sass/starterkit/'
};
elixir(function(mix) {
mix.sass('app.scss', 'public/css/'
, {includePaths: [
paths.bootstrap + 'stylesheets'
, paths.fontawesome + 'scss'
, paths.datatables + 'css'
, paths.bower_components + 'eonasdan-bootstrap-datetimepicker/src/sass'
, paths.adminlte + 'css'
, paths.adminlte + 'css/skins'
, paths.starterkit
] })
.copy(paths.bootstrap + 'fonts/bootstrap/**', 'public/fonts/bootstrap')
.copy(paths.fontawesome + 'fonts/**', 'public/fonts/fontawesome')
.scripts([
paths.js_error_alert + 'window_error_handler.js',
paths.jquery + "dist/jquery.js",
paths.js_error_alert + 'jquery_error_handler.js',
paths.bower_components + "moment/min/moment.min.js",
paths.datatables + "js/jquery.dataTables.js",
paths.bootstrap + "javascripts/bootstrap.js",
paths.datatables + "js/dataTables.bootstrap.js",
paths.bower_components + "eonasdan-bootstrap-datetimepicker/src/js/bootstrap-datetimepicker.js",
paths.adminlte + "js/app.js",
paths.bootstrap_notify + "bootstrap-notify.js",
'./resources/javascripts/common/**/*.js',
'./resources/javascripts/anon/**/*.js',
'./resources/javascripts/logged/**/*.js',
], 'public/js/app.js', './')
.version([
'css/app.css',
'js/app.js'
]);
});