-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
80 lines (73 loc) · 3.09 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
72
73
74
75
76
77
78
79
80
var elixir = require('laravel-elixir');
var livereload = require('gulp-livereload');
var gulp = require('gulp');
/*
|--------------------------------------------------------------------------
| 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) {
mix.sass('app.scss','resources/assets/css/app.css');
mix.styles([
'../../../bower_components/HTML5-Reset/assets/css/reset.css',
'share-button.css',
'app.css',
],'public/dist/app.css');
mix.scripts([
'../../../bower_components/jquery/dist/jquery.js',
'../../../bower_components/jquery.fitvids/jquery.fitvids.js',
'share-button.js',
'main.js',
],'public/dist/app.js');
});
elixir(function(mix) {
mix.scripts([
'../../../bower_components/jquery/dist/jquery.js',
'../../../bower_components/gsap/src/uncompressed/TweenMax.js',
],'public/dist/vitality_xmas.js');
});
elixir(function(mix) {
mix.sass('admin.scss','resources/assets/css/admin.css');
mix.styles([
"admin.css",
'../../../bower_components/Bootstrap-Admin-Theme-3/css/styles.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/css/buttons.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/css/calendar.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/css/forms.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/css/stats.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/vendors/easypiechart/jquery.easy-pie-chart.css',
'../../../bower_components/Bootstrap-Admin-Theme-3/vendors/morris/morris.css',
'../../../bower_components/codemirror/lib/codemirror.css',
'../../../bower_components/codemirror/theme/blackboard.css',
'../../../bower_components/codemirror/theme/zenburn.css,'
],'public/dist/admin.css');
mix.scripts([
'../../../bower_components/jquery/dist/jquery.js',
'../../../bower_components/Bootstrap-Admin-Theme-3/bootstrap/js/bootstrap.js',
'../../../bower_components/Bootstrap-Admin-Theme-3/vendors/morris/morris.js',
'../../../bower_components/Bootstrap-Admin-Theme-3/vendors/easypiechart/jquery.easy-pie-chart.js',
'../../../bower_components/codemirror/lib/codemirror.js',
'admin.js',
],'public/dist/admin.js').scriptsIn('resources/assets/js/redactor','public/dist/redactor.js');
});
elixir(function(mix){
mix.version(['dist/app.js','dist/app.css','dist/admin.js','dist/admin.css','dist/redactor.js'])
});
gulp.on('task_start', function (e) {
if (e.task === 'watch') {
livereload.listen();
}
});
gulp.task('watch-lr-css', function () {
// notify a CSS change, so that livereload can update it without a page refresh
livereload.changed('app.css');
});
gulp.task('watch-lr', function () {
// notify any other changes, so that livereload can refresh the page
livereload.changed('app.js');
});