Cachet/gulpfile.js

41 lines
1.6 KiB
JavaScript
Raw Normal View History

var del = require('del');
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) {
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
});
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',
'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
});