2015-01-05 10:36:00 +00:00
|
|
|
var del = require('del');
|
2014-11-17 14:32:59 +00:00
|
|
|
var elixir = require('laravel-elixir');
|
2015-01-02 14:29:07 +00:00
|
|
|
var gulp = require('gulp');
|
|
|
|
var jshint = require('laravel-elixir-jshint');
|
2014-12-30 11:23:03 +00:00
|
|
|
|
2015-01-02 14:29:07 +00:00
|
|
|
elixir.extend('rm', function(source) {
|
2015-01-05 10:36:00 +00:00
|
|
|
gulp.task('rm', function(callback) {
|
|
|
|
del(source, callback);
|
2014-12-30 11:23:03 +00:00
|
|
|
});
|
|
|
|
|
2015-01-02 14:29:07 +00:00
|
|
|
return this.queueTask('rm');
|
2014-12-30 11:23:03 +00:00
|
|
|
});
|
2014-11-17 14:32:59 +00:00
|
|
|
|
2015-01-02 14:29:07 +00:00
|
|
|
gulp.task('default', function() {
|
|
|
|
elixir(function (mix) {
|
|
|
|
mix.sass('app/assets/sass/main.scss')
|
|
|
|
.rm('public/build/fonts')
|
|
|
|
.jshint('app/assets/js/*.js')
|
|
|
|
.styles([
|
|
|
|
'app/assets/bower_components/ionicons/css/ionicons.min.css',
|
|
|
|
'app/assets/bower_components/jquery-minicolors/jquery.minicolors.css',
|
|
|
|
'public/css/main.css',
|
|
|
|
], './')
|
|
|
|
.scripts([
|
|
|
|
'bower_components/jquery/dist/jquery.js',
|
|
|
|
'bower_components/bootstrap-sass-official/assets/javascripts/bootstrap.js',
|
|
|
|
'bower_components/lodash/dist/lodash.js',
|
|
|
|
'bower_components/messenger/build/js/messenger.js',
|
|
|
|
'bower_components/Sortable/Sortable.js',
|
2015-01-07 18:48:10 -06:00
|
|
|
'bower_components/moment/min/moment-with-locales.js',
|
|
|
|
'bower_components/livestampjs/livestamp.js',
|
2015-01-02 14:29:07 +00:00
|
|
|
'bower_components/jquery-minicolors/jquery.minicolors.js',
|
|
|
|
'bower_components/jquery-serialize-object/jquery.serialize-object.js',
|
|
|
|
'js/app.js',
|
|
|
|
'js/**/*.js',
|
|
|
|
], './app/assets/')
|
|
|
|
.version(['public/css/all.css', 'public/js/all.js'])
|
|
|
|
.copy('app/assets/bower_components/ionicons/fonts', 'public/build/fonts');
|
2015-01-01 18:12:51 +00:00
|
|
|
});
|
2014-12-05 13:38:07 +00:00
|
|
|
});
|