client/pianoroll/gulp/tasks/dist.js
author rougeronj
Thu, 22 Jan 2015 15:03:58 +0100
changeset 121 df6b39f962bc
parent 84 d7c5bffdd2d8
permissions -rw-r--r--
Add getAnnotCategories to utils and propagate the modification to annotsvizview and annotstimeline

'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));
    });
});