-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgulpfile.js
28 lines (23 loc) · 997 Bytes
/
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
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',
'assets/vendor/jquery-ujs/src/rails.js',
'assets/js/slimScroll.js',
'assets/js/admin_lte.js'
], 'assets/js/app.js', 'resources');
// 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');
});