--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/client/pianoroll/gulp/tasks/dist.js Mon Jan 12 17:23:05 2015 +0100
@@ -0,0 +1,21 @@
+'use strict';
+
+var gulp = require('gulp');
+var runSequence = require('run-sequence');
+var config = require('../config');
+
+// Build
+gulp.task('dist', function() {
+ runSequence(['html', 'images:dist','styles', 'styles:dist', 'vendor', 'browserify'], 'scripts:dist', function() {
+ return gulp.src(['.tmp/css/*.css', '.tmp/js/*.js', '.tmp/img/*'], {base: '.tmp'})
+ .pipe(gulp.dest('dist'));
+ });
+});
+
+gulp.task('server', function() {
+ runSequence(['html', 'images:dist','styles', 'styles:dist', 'vendor', 'browserify'], 'scripts:dist', function() {
+ return gulp.src(['.tmp/css/*.css', '.tmp/js/*.js', '.tmp/img/*'], {base: '.tmp'})
+ .pipe(gulp.dest('dist'))
+ .pipe(gulp.dest(config.serverStatic));
+ });
+});