Build before testing so we dont have to track the dist files

This commit is contained in:
DD 2017-12-06 17:07:59 -05:00
parent 13b1287a30
commit 6b1421eb4d
2 changed files with 10 additions and 4 deletions

4
.gitignore vendored
View file

@ -1,5 +1,3 @@
.nvmrc .nvmrc
node_modules/ node_modules/
dist/*/ dist/*
dist/*.min.js
dist/paperjs.zip

View file

@ -13,9 +13,17 @@
var gulp = require('gulp'), var gulp = require('gulp'),
gutil = require('gulp-util'), gutil = require('gulp-util'),
qunits = require('gulp-qunits'), qunits = require('gulp-qunits'),
runSequence = require('run-sequence');
webserver = require('gulp-webserver'); 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() { gulp.task('test:phantom', ['minify:acorn'], function() {
return gulp.src('index.html', { cwd: 'test' }) return gulp.src('index.html', { cwd: 'test' })