This repository has been archived by the owner on Jul 16, 2024. It is now read-only.
forked from andifahruddinakas/laravel-bridge
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
43 lines (41 loc) · 1.44 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
require('gulp-util').env.production = true;
var elixir = require('laravel-elixir');
var path = require('path');
/*
|--------------------------------------------------------------------------
| 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) {
var publicPath = elixir.config.publicPath;
var cssOutputFolder = elixir.config.get('public.css.outputFolder');
var jsOutputFolder = elixir.config.get('public.js.outputFolder');
var fontOutputFolder = publicPath + '/fonts/';
var imgOutputFolder = publicPath + '/img/';
mix
.sass([
'bundle.scss'
], cssOutputFolder + '/bundle.css')
.browserify([
'bundle.js'
], jsOutputFolder + '/bundle.js')
.browserSync({
files: [
'src/**/*.php',
'resources/views/**/*.php',
cssOutputFolder + '/**/*.css',
jsOutputFolder + '/**/*.js',
],
proxy: {
target: '127.0.0.1'
},
startPath: '/project/terminal'
})
.copy(publicPath, path.normalize(__dirname + '/../../../../vendor/terminal'))
.phpUnit();
});