-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathgulpfile.js
52 lines (47 loc) · 1.73 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
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 bower_path = "./vendor/bower_components";
var paths = {
'jquery' : bower_path + "/jquery",
'bootstrap' : bower_path + "/bootstrap-sass-official/assets",
'fontawesome' : bower_path + "/fontawesome",
'ionicons' : bower_path + "/ionicons"
};
elixir(function(mix) {
mix.sass("style.scss", "public/css",
{includePaths: [
paths.bootstrap + '/stylesheets',
paths.fontawesome + '/scss',
paths.ionicons + '/scss'
]})
.styles([
"admin.min.css",
"jvectormap.css",
"skins.min.css"
], 'public/css/admin.css', 'resources/assets/css')
.scripts([
paths.jquery + '/dist/jquery.js',
paths.bootstrap + '/javascripts/bootstrap.js',
], 'public/js/style.js', bower_path)
.scripts([
'admin.js',
'app.min.js',
'chart.js',
'dashboard.js',
'jvectormap.min.js',
'jvectormap-world-mill-en.js',
'sparkline.js'
], 'public/js/admin.js', 'resources/assets/js')
.copy( paths.bootstrap + '/fonts/bootstrap/**', 'public/fonts')
.copy( paths.fontawesome + '/fonts/**', 'public/fonts')
.copy( paths.ionicons + '/fonts/**', 'public/fonts');
});