This repository has been archived by the owner on Sep 1, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 11
/
Copy pathgulpfile.js
52 lines (49 loc) · 1.95 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');
var paths = {
'jquery': './node_modules/jquery/dist/',
'fontawesome': './node_modules/font-awesome/',
'chartsjs': './node_modules/chart.js/dist/',
'css': './resources/css/',
'js': './resources/js/',
'images': './resources/images/',
'fonts': './resources/fonts/',
'storage': './storage/app/',
'weapons': './resources/images/weapons/',
'semantic': './semantic/dist/'
};
/*
|--------------------------------------------------------------------------
| 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.
|
*/
elixir(function(mix) {
mix
.copy(paths.jquery + 'jquery.min.js', 'public/js/jquery.min.js')
.copy(paths.chartsjs + 'Chart.bundle.min.js', 'public/js/chart.js')
.copy(paths.fontawesome + 'css/font-awesome.min.css', 'public/css/font-awesome.min.css')
.copy(paths.fontawesome + 'fonts', 'public/fonts/')
.copy(paths.fonts, 'public/fonts')
.copy(paths.images, 'public/images/')
.copy(paths.storage + 'resources/images/h5-medals.png', 'public/css/images/h5-medals.png')
.copy(paths.images + 'bg.png', 'public/css/images/bg.png')
.copy(paths.semantic + '/themes/', 'public/build/css/themes/')
.copy(paths.css, 'public/css/')
.copy(paths.js, 'public/js/')
.styles([
paths.css + 'fonts.css',
paths.css + 'main.css',
paths.semantic + 'semantic.css',
paths.storage + 'resources/css/h5-sprites.css'
], "public/css/app.css")
.scripts([
paths.js + 'main.js',
paths.semantic + 'semantic.min.js',
paths.js + 'tablesort.js'
], "public/js/app.js")
.version(["public/css/app.css", "public/js/app.js"]);
});