2015-07-08 03:34:58 -04:00
|
|
|
process.env.DISABLE_NOTIFIER = true;
|
|
|
|
|
2015-11-30 23:40:49 -05:00
|
|
|
var gulp = require("gulp"),
|
|
|
|
elixir = require('laravel-elixir'),
|
|
|
|
lessglob = require('less-plugin-glob');
|
2015-07-08 03:34:58 -04:00
|
|
|
|
|
|
|
// require livereload when not production
|
|
|
|
if (!elixir.config.production)
|
|
|
|
require('laravel-elixir-livereload');
|
|
|
|
|
|
|
|
// autoprefixer settings
|
2015-11-30 23:40:49 -05:00
|
|
|
elixir.config.autoprefix = {
|
|
|
|
remove: false,
|
|
|
|
cascade: false,
|
|
|
|
browsers: ['last 2 versions']
|
|
|
|
};
|
2015-07-08 03:34:58 -04:00
|
|
|
|
|
|
|
// javascript files in resources/assets/js/
|
|
|
|
var jsLocal = [
|
2015-09-30 00:17:09 -04:00
|
|
|
'site-vars.js',
|
2016-01-03 19:08:53 -05:00
|
|
|
'contact.js',
|
2015-07-08 03:34:58 -04:00
|
|
|
'app.js'
|
|
|
|
];
|
|
|
|
|
|
|
|
// javascript files in bower_components/
|
|
|
|
var jsBower = [
|
|
|
|
'jquery/dist/jquery.min.js',
|
|
|
|
'bootstrap/dist/js/bootstrap.min.js'
|
|
|
|
];
|
|
|
|
|
|
|
|
// less import path locations other than resources/assets/less/
|
|
|
|
var lessPaths = [
|
|
|
|
'bower_components/bootstrap/less'
|
|
|
|
];
|
|
|
|
|
|
|
|
elixir(function(mix) {
|
|
|
|
// elixir mix functions
|
|
|
|
mix.copy('bower_components/bootstrap/dist/fonts/bootstrap/**', 'public/fonts')
|
2015-11-30 23:40:49 -05:00
|
|
|
.less('app.less', 'public/css/app.css', {
|
|
|
|
paths: lessPaths,
|
|
|
|
plugins: [lessglob]
|
|
|
|
})
|
2015-07-08 03:34:58 -04:00
|
|
|
.scripts(jsLocal, 'public/js/app.js', 'resources/assets/js/')
|
|
|
|
.scripts(jsBower, 'public/js/lib.js', 'bower_components/')
|
|
|
|
.version(['css/app.css', 'js/app.js', 'js/lib.js']);
|
|
|
|
|
|
|
|
// start livereload when not production
|
|
|
|
if (!elixir.config.production)
|
|
|
|
mix.livereload();
|
|
|
|
});
|