-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathgulpfile.js
More file actions
26 lines (21 loc) · 963 Bytes
/
gulpfile.js
File metadata and controls
26 lines (21 loc) · 963 Bytes
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
var gulp = require('gulp');
var elixir = require('laravel-elixir');
var themeInfo = require('./theme.json');
// load the config class & boot the methods
config = require('../../resources/assets/js/elixir-config');
config.setConfig(elixir);
elixir(function(mix) {
// sort the scripts out
mix.scripts([
'assets/vendor/jquery/dist/jquery.js',
'assets/vendor/bootstrap/dist/js/bootstrap.js',
'../../../resources/assets/js/init.js'
], null, 'assets/css/app.js')
.exec('php ../../artisan theme:publish ' + themeInfo.name+ ' --force', '**/*.js');
// copy the fonts over
mix.copy('resources/assets/vendor/font-awesome/fonts', 'assets/fonts')
.copy('resources/assets/vendor/bootstrap/fonts', 'assets/fonts');
// do the style stuff, and send to browser everytime we change it
mix.less('app.less', 'assets/css/app.css')
.exec('php ../../artisan theme:publish ' + themeInfo.name, '**/*.less');
});