-
Notifications
You must be signed in to change notification settings - Fork 3
/
gulpfile.js
71 lines (57 loc) · 1.97 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
var gulp = require('gulp');
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.
|
*/
/**
* Copy any needed files.
*
* Do a 'gulp copyfiles' after bower updates
*
*/
gulp.task('copyfiles', function () {
gulp.src("vendor/bower_dl/jquery/dist/jquery.js")
.pipe(gulp.dest("resources/assets/js/"));
gulp.src("vendor/bower_dl/bootstrap-sass/assets/stylesheets/**")
.pipe(gulp.dest("resources/assets/sass/bootstrap"));
gulp.src("vendor/bower_dl/bootstrap-sass/assets/javascripts/bootstrap.js")
.pipe(gulp.dest("resources/assets/js/"));
gulp.src("vendor/bower_dl/sweetalert/dist/sweetalert.min.js")
.pipe(gulp.dest("resources/assets/js/"));
gulp.src("vendor/bower_dl/sweetalert/dist/sweetalert.css")
.pipe(gulp.dest("resources/assets/css/"));
gulp.src("vendor/bower_dl/bootstrap-sass/assets /fonts/bootstrap/**")
.pipe(gulp.dest("public/assets/fonts"));
});
/**
* Default gulp is to run this elixir stuff
*/
elixir(function(mix) {
// Combine scripts
mix.scripts([
'js/jquery.js',
'js/jquery.multi-select.js',
'js/bootstrap.js',
'js/sweetalert.min.js',
'js/deleteItems.js'
],
'public/assets/js/app.js',
'resources/assets'
);
//Compile sass
mix.sass('app.scss', 'resources/assets/css/app.css');
mix.styles([
'resources/assets/css/app.css',
'resources/assets/css/multi-select.css',
'resources/assets/css/sweetalert.css'
], 'public/assets/css/app.css', './');
// Version css
mix.version('public/assets/css/app.css');
});