This repository has been archived by the owner on Dec 28, 2018. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
gulpfile.js
executable file
·42 lines (35 loc) · 1.97 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
var elixir = require('laravel-elixir');
require('laravel-elixir-vueify');
var bowerDir = './resources/assets/vendor/';
var lessPaths = [
bowerDir + "bootstrap/less"
];
/*
|--------------------------------------------------------------------------
| 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
.less('app.less', 'public/css', { paths: lessPaths })
.styles(["font.css", bowerDir + "bootstrap/dist/css/bootstrap.css", "main.css"], 'public/css/main.css')
.styles(["cover.css"], 'public/css/cover.css')
.styles(["home.css", "loading.css"], 'public/css/app.css')
.copy(bowerDir + "bootstrap/dist/fonts/glyphicons-halflings-regular.eot", 'public/build/fonts/glyphicons-halflings-regular.eot')
.copy(bowerDir + "bootstrap/dist/fonts/glyphicons-halflings-regular.svg", 'public/build/fonts/glyphicons-halflings-regular.svg')
.copy(bowerDir + "bootstrap/dist/fonts/glyphicons-halflings-regular.ttf", 'public/build/fonts/glyphicons-halflings-regular.ttf')
.copy(bowerDir + "bootstrap/dist/fonts/glyphicons-halflings-regular.woff", 'public/build/fonts/glyphicons-halflings-regular.woff')
.copy(bowerDir + "bootstrap/dist/fonts/glyphicons-halflings-regular.woff2", 'public/build/fonts/glyphicons-halflings-regular.woff2')
.scripts([
'jquery/dist/jquery.min.js',
'bootstrap/dist/js/bootstrap.min.js',
'moment/min/moment-with-locales.min.js'
], 'public/js/vendor.js', bowerDir)
.browserify(["script.js", "main.js"], 'public/js/app.js')
.version(['public/css/main.css', 'public/css/cover.css', 'public/css/app.css', 'public/js/vendor.js', 'public/js/app.js']);
});