-
Notifications
You must be signed in to change notification settings - Fork 10
/
gulpfile.js
42 lines (35 loc) · 1.49 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
var elixir = require('laravel-elixir');
/*
|--------------------------------------------------------------------------
| 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) {
// Imagens
mix.copy('resources/assets/img', 'public/img');
// Plugins on demand
mix.copy('resources/assets/js/datepicker', 'public/js/plugins/datepicker'); // Seleção de datas
mix.copy('resources/assets/js/datatables', 'public/js/plugins/datatables'); // Organização e pesquisa em tabelas
mix.copy('resources/assets/js/jQueryMask', 'public/js/plugins/jQueryMask'); // Máscaras de entradas
mix.copy('resources/assets/js/chartjs', 'public/js/plugins/chartjs');
// Compila o arquivos SASS contendo todos os CSS
mix.sass('app.scss', 'public/css/');
// Concatena todos os JavaScripts
mix.scripts([
'jQuery/jquery-2.2.4.min.js',
'bootstrap/bootstrap.min.js',
'adminLTE/app.min.js',
'slimScroll/jquery.slimscroll.min.js',
'fastclick/fastclick.min.js'
], 'public/js/app.js', 'resources/assets/js/'); // Destino, path dos arquivos informados
// Versiona os arquivos gerados
mix.version([
'public/js/app.js',
'public/css/app.css'
]);
});