2016-03-25 01:18:05 -07:00
|
|
|
var elixir = require('laravel-elixir');
|
2016-12-07 17:06:48 -08:00
|
|
|
require('laravel-elixir-codeception-standalone');
|
2016-12-23 18:32:07 -08:00
|
|
|
require('laravel-elixir-phpcs');
|
2017-01-11 01:27:02 -08:00
|
|
|
require('laravel-elixir-vue-2');
|
2017-01-11 17:07:27 -08:00
|
|
|
var bowerPath = './bower_components';
|
2017-01-11 01:27:02 -08:00
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
/*
|
|
|
|
|--------------------------------------------------------------------------
|
|
|
|
| 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.
|
|
|
|
|
|
|
|
|
*/
|
|
|
|
|
2017-01-11 03:38:55 -08:00
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
elixir(function(mix) {
|
|
|
|
|
2017-01-11 03:38:55 -08:00
|
|
|
mix.less(
|
|
|
|
[
|
2017-01-11 06:53:49 -08:00
|
|
|
'app.less',
|
|
|
|
bowerPath + '/iCheck/skins/minimal/*',
|
|
|
|
'AdminLTE.less',
|
|
|
|
'skins/skin-blue.less',
|
|
|
|
'overrides.less'
|
2017-01-11 03:38:55 -08:00
|
|
|
], 'public/assets/css/')
|
2017-01-11 06:53:49 -08:00
|
|
|
.copy(bowerPath + '/bootstrap-less/assets/fonts/bootstrap/**', 'public/assets/fonts')
|
2017-01-18 04:59:56 -08:00
|
|
|
.copy(bowerPath + '/font-awesome/fonts/*', 'public/build/fonts');
|
2017-01-11 03:38:55 -08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mix.webpack(
|
2017-01-11 05:51:13 -08:00
|
|
|
// jQuery is loaded from vue.js webpack process
|
2017-01-11 03:38:55 -08:00
|
|
|
'./resources/assets/js/vue.js',
|
|
|
|
'./resources/assets/js/vue-dist.js'
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
mix.scripts([
|
2017-01-11 17:07:27 -08:00
|
|
|
bowerPath + '/tether/dist/js/tether.js',
|
2017-01-11 03:38:55 -08:00
|
|
|
'vue-dist.js',
|
2017-01-11 17:07:27 -08:00
|
|
|
bowerPath + '/jquery-ui/jquery-ui.js',
|
|
|
|
bowerPath + '/jquery-slimscroll/jquery.slimscroll.js',
|
|
|
|
bowerPath + '/jquery.iframe-transport/jquery.iframe-transport.js',
|
|
|
|
bowerPath + '/blueimp-file-upload/js/jquery.fileupload.js',
|
|
|
|
bowerPath + '/fastclick/lib/fastclick.js',
|
|
|
|
bowerPath + '/bootstrap-colorpicker/dist/js/bootstrap-colorpicker.js',
|
|
|
|
bowerPath + '/bootstrap-datepicker/dist/js/bootstrap-datepicker.js',
|
|
|
|
bowerPath + '/iCheck/icheck.js',
|
|
|
|
bowerPath + '/select2/dist/js/select2.full.js',
|
|
|
|
bowerPath + '/ekko-lightbox/dist/ekko-lightbox.js',
|
2017-01-11 01:27:02 -08:00
|
|
|
'snipeit.js'
|
2016-03-25 01:18:05 -07:00
|
|
|
|
2017-01-11 03:38:55 -08:00
|
|
|
],'public/assets/js');
|
2016-03-25 03:36:37 -07:00
|
|
|
mix.version(['assets/css/app.css','assets/js/all.js']);
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
2017-01-11 01:27:02 -08:00
|
|
|
// mix.codeception(null, { flags: '--report' });
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
|
2017-01-10 23:22:00 -08:00
|
|
|
// mix.phpcs([
|
|
|
|
// 'app/**/*.php',
|
|
|
|
// 'tests/unit/*.php',
|
|
|
|
// 'tests/functional/*.php',
|
|
|
|
// 'tests/acceptance/*.php'
|
|
|
|
// ], {
|
|
|
|
// bin: 'vendor/bin/phpcs',
|
|
|
|
// standard: 'PSR2'
|
|
|
|
// });
|
2016-12-23 18:32:07 -08:00
|
|
|
|
|
|
|
|
2016-03-25 01:18:05 -07:00
|
|
|
|
|
|
|
});
|
2016-12-23 18:32:07 -08:00
|
|
|
|
|
|
|
|