snipe-it/gulpfile.js

80 lines
2.1 KiB
JavaScript
Raw Normal View History

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 03:38:55 -08:00
var bowerPath = './vendor/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(
[
'AdminLTE.less',
2017-01-11 01:27:02 -08:00
'skins/skin-blue.less',
'ekko-lightbox.less',
'overrides.less',
2017-01-11 03:38:55 -08:00
'fontawesome-animated.css',
bowerPath + '/bootstrap-less/assets/stylesheets/**'
], 'public/assets/css/')
.copy(bowerPath + '/bootstrap-less/assets/fonts/bootstrap/**', 'public/assets/fonts');
mix.webpack(
'./resources/assets/js/vue.js',
'./resources/assets/js/vue-dist.js'
);
2016-03-25 01:18:05 -07:00
mix.scripts([
2017-01-11 03:38:55 -08:00
'vue-dist.js',
bowerPath + '/bootstrap/dist/js/**',
bowerPath + '/jquery-slimscroll/**',
bowerPath + '/jquery-ui/**',
bowerPath + '/jquery.iframe-transport/**',
bowerPath + '/fileupload/**',
bowerPath + '/fastclick/**',
bowerPath + '/select2/**',
bowerPath + '/bootstrap-colorpicker/**',
bowerPath + '/bootstrap-table/**',
bowerPath + '/bootstrap-datepicker/**',
bowerPath + '/iCheck/**',
bowerPath + '/ekko-lightbox/**',
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