From 6b1421eb4d3dff5b4aa3ef62d9cf5e3041d4c4cc Mon Sep 17 00:00:00 2001 From: DD Date: Wed, 6 Dec 2017 17:07:59 -0500 Subject: [PATCH] Build before testing so we dont have to track the dist files --- .gitignore | 4 +--- gulp/tasks/test.js | 10 +++++++++- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/.gitignore b/.gitignore index b214f24c..23155791 100644 --- a/.gitignore +++ b/.gitignore @@ -1,5 +1,3 @@ .nvmrc node_modules/ -dist/*/ -dist/*.min.js -dist/paperjs.zip +dist/* diff --git a/gulp/tasks/test.js b/gulp/tasks/test.js index 79f1adbb..ff4265bd 100644 --- a/gulp/tasks/test.js +++ b/gulp/tasks/test.js @@ -13,9 +13,17 @@ var gulp = require('gulp'), gutil = require('gulp-util'), qunits = require('gulp-qunits'), + runSequence = require('run-sequence'); webserver = require('gulp-webserver'); -gulp.task('test', ['test:phantom', 'test:node']); +gulp.task('test', function(callback) { + runSequence( + 'build', + 'test:postbuild' + ); +}); + +gulp.task('test:postbuild', ['test:phantom', 'test:node']); gulp.task('test:phantom', ['minify:acorn'], function() { return gulp.src('index.html', { cwd: 'test' })