koel/gulpfile.js

45 lines
1.4 KiB
JavaScript
Raw Normal View History

2015-12-13 04:42:28 +00:00
require('events').EventEmitter.defaultMaxListeners = 30;
var elixir = require('laravel-elixir');
2016-01-08 06:47:27 +00:00
var gutils = require('gulp-util');
var b = elixir.config.js.browserify;
2015-12-13 04:42:28 +00:00
require('laravel-elixir-vueify');
2016-01-08 06:47:27 +00:00
if (gutils.env._.indexOf('watch') > -1) {
b.plugins.push({
name: "browserify-hmr",
options : {}
});
}
2015-12-13 04:42:28 +00:00
elixir(function (mix) {
mix.browserify('main.js');
mix.sass('app.scss');
mix.copy('resources/assets/img', 'public/img')
2016-01-07 06:33:58 +00:00
.copy('bower_components/fontawesome/fonts', 'public/build/fonts')
.copy('resources/assets/fonts', 'public/build/fonts');
2015-12-13 04:42:28 +00:00
mix.scripts([
2016-01-07 01:39:38 +00:00
'bower_components/plyr/dist/plyr.js',
'resources/assets/js/libs/modernizr-custom.js'
2015-12-13 04:42:28 +00:00
], 'public/js/vendors.js', './')
.styles([
'resources/assets/css/**/*.css',
'bower_components/fontawesome/css/font-awesome.min.css',
'bower_components/plyr/dist/plyr.css'
], 'public/css/vendors.css', './');
mix.version(['css/vendors.css', 'css/app.css', 'js/vendors.js', 'js/main.js']);
2016-01-08 06:47:27 +00:00
mix.browserSync({
files: [
elixir.config.appPath + '/**/*.php',
elixir.config.get('public.css.outputFolder') + '/**/*.css',
elixir.config.get('public.versioning.buildFolder') + '/rev-manifest.json',
'resources/views/**/*.php'
],
});
2015-12-13 04:42:28 +00:00
});