Add variable "wait". When this variable set, the annotsroll wait ignore some annotations, and wait before printing an otherone so there is no superposition. Can be passed as an options
'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));
});
});