-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
59 lines (55 loc) · 1.86 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
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 paths = {
'bower': './bower_components/',
'bootstrap': './bower_components/bootstrap-sass-official/assets/'
};
elixir.config.sourcemaps = false;
elixir(function(mix) {
mix
.sass(
[
"frontend/style.scss",
], 'public/css/',
{includePaths: [paths.bootstrap + 'stylesheets/',
paths.bower + 'bourbon/app/assets/stylesheets/',
paths.bower + 'fontawesome/scss/']}
)
.sass(
[
"backend/backend.scss"
], 'public/css/',
{includePaths: [paths.bower + 'uikit/scss/',
paths.bower + 'fontawesome/scss/']}
)
.copy(
paths.bootstrap + 'fonts/bootstrap/', 'public/fonts/bootstrap/',
paths.bower + 'modernizr/modernizr.js', 'public/js/modernizr.js',
paths.bower + 'fontawesome/fonts/', 'public/fonts/awesome/')
.scripts(
[
paths.bower + "jquery-1.9.1.min/index.js",
paths.bootstrap + "javascripts/bootstrap.js",
"/resources/assets/js/custom.js"
], 'public/js/app.js', './')
.scripts(
[
paths.bower + "jquery-1.9.1.min/index.js",
paths.bower + "uikit/js/uikit.min.js",
'/resources/js/select2.min.js'
], 'public/js/back.js', './');
mix.styles(
[
'select2.min.css'
]
);
});