-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
65 lines (46 loc) · 1.92 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
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.
|
*/
var paths = {
'bower_components': './vendor/bower_components/',
'jquery': './vendor/bower_components/jquery/',
'bootstrapTable': './vendor/bower_components/bootstrap-table/dist/',
'fontawesome': './vendor/bower_components/fontawesome/',
'baseScripts': './resources/assets/scripts/'
};
elixir(function(mix) {
mix.copy(paths.bower_components + 'bootstrap/fonts/bootstrap/**', 'public/fonts/bootstrap')
.copy(paths.bower_components + 'normalize.css/normalize.css', 'public/css/normalize.css')
.copy([
paths.bower_components + 'bootstrap/dist/css/bootstrap.css'
], 'public/css/bootstrap-table.css')
.copy([
paths.bower_components + 'chosen/chosen.min.css'
], 'public/css/chosen.css')
.sass('app.scss', 'public/css/')
.scripts([
paths.jquery + "dist/jquery.js",
paths.bower_components + 'bootstrap/dist/js/bootstrap.js'
], 'public/js/app.js', './')
.scripts([
paths.bower_components + 'chosen/chosen.jquery.min.js',
], 'public/js/admin.js', './')
.scripts("resources/assets/scripts/*", 'public/js/script.js', './')
.version([
'public/css/app.css',
'public/css/bootstrap-table.css',
'public/css/normalize.css',
'public/css/chosen.css',
'public/js/app.js',
'public/js/admin.js',
'public/js/script.js'
])
});