-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
77 lines (66 loc) · 1.94 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
71
72
73
74
75
76
77
var elixir = require('laravel-elixir');
elixir.config.sourcemaps = false;
var paths = {
bootstrap: './resources/assets/bower/bower_components/bootstrap-sass/assets/',
fontawesome: './resources/assets/bower/bower_components/fontawesome/',
jquery: './resources/assets/bower/bower_components/jquery/',
semantic: './resources/assets/bower/bower_components/semantic-ui/'
};
/*
|--------------------------------------------------------------------------
| 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.copy(
'node_modules/jquery/dist/jquery.js',
'resources/assets/js/jquery.js'
).copy(
'vendor/bower_components/fontawesome/scss',
'resources/assets/sass/fontawesome'
).copy(
'vendor/bower_components/fontawesome/fonts',
'public/assets/fonts'
).copy(
'resources/assets/vendor/semantic/dist/semantic.css',
'resources/assets/css'
).copy(
'resources/assets/vendor/semantic/dist/semantic.js',
'resources/assets/js'
);
mix.sass(
[
'app/app.scss',
'fontawesome/font-awesome.scss'
],
'resources/assets/css'
);
mix.styles(
[
'semantic.css',
'font-awesome.css',
'app.css'
],
'public/assets/css/all.css',
'resources/assets/css'
);
mix.scripts(
[
'jquery.js',
'semantic.js',
'main.js',
],
'public/assets/js/all.js',
'resources/assets/js'
);
mix.version([
'public/assets/css/all.css',
'public/assets/js/all.js'
]);
mix.phpUnit();
});