From 83850d7a0cd7e406024968b292a555d1865da5ae Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Mon, 11 Apr 2016 17:31:44 -0500 Subject: [PATCH] feat: build api doc after prod build --- package.json | 2 +- tasks/gulp-build.js | 9 +++++++-- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/package.json b/package.json index 33279bd2ab..665d791ba1 100644 --- a/package.json +++ b/package.json @@ -81,6 +81,7 @@ "push-notify": "^1.1.1", "q": "^1.4.1", "request": "~2.44.0", + "run-sequence": "^1.1.4", "s3-upload-stream": "^1.0.6", "serve-favicon": "^2.3.0", "stripe": "^4.2.0", @@ -149,7 +150,6 @@ "protractor": "^3.1.1", "rewire": "^2.3.3", "rimraf": "^2.4.3", - "run-sequence": "^1.1.4", "shelljs": "^0.5.3", "sinon": "^1.17.2", "sinon-chai": "^2.8.0", diff --git a/tasks/gulp-build.js b/tasks/gulp-build.js index 7d3244f1fa..923caad2c8 100644 --- a/tasks/gulp-build.js +++ b/tasks/gulp-build.js @@ -1,4 +1,5 @@ import gulp from 'gulp'; +import runSequence from 'run-sequence'; import babel from 'gulp-babel'; require('gulp-grunt')(gulp); @@ -32,6 +33,10 @@ gulp.task('build:dev:watch', ['build:dev'], () => { gulp.watch(['website/public/**/*.styl', 'common/script/*']); }); -gulp.task('build:prod', ['browserify', 'build:server', 'prepare:staticNewStuff', 'apidoc'], (done) => { - gulp.start('grunt-build:prod', done); +gulp.task('build:prod', ['browserify', 'build:server', 'prepare:staticNewStuff'], (done) => { + runSequence( + 'grunt-build:prod', + 'apidoc', + done + ); });