/
gulpfile.js
executable file
·45 lines (35 loc) · 1.19 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
var gulp = require('gulp');
var shell = require('gulp-shell');
var elixir = require('laravel-elixir');
var del = require('del');
var themeInfo = require('./theme.json');
process.env.DISABLE_NOTIFIER = true;
elixir.config.publicPath = 'assets';
var publicPath = '../../public';
var themePath = publicPath + '/themes/kentacar';
var cssPath = themePath + '/css';
var jsPath = themePath + '/js';
var Task = elixir.Task;
elixir.extend('del', function(path) {
new Task('del', function() {
return del(path, {force:true});
});
});
elixir.extend('stylistPublish', function() {
new Task('stylistPublish', function() {
return gulp.src("").pipe(shell("php ../../artisan stylist:publish " + themeInfo.name));
});
});
elixir(function (mix) {
mix.sass('bootstrap.scss', cssPath + '/bootstrap.min.css')
.sass('theme/theme.scss', cssPath + '/theme.min.css');
// mix.del(['assets/css', 'assets/js']);
// mix.del(themePath+'/**');
//
// mix.sass('bootstrap.scss', 'resources/assets/css/bootstrap.min.css')
// .sass('theme/theme.scss', 'resources/assets/css/theme.min.css');
//
// mix.copy('resources/assets', 'assets');
//
// mix.stylistPublish();
});