mirror of
https://github.com/scratchfoundation/paper.js.git
synced 2024-12-29 09:22:22 -05:00
Build before testing so we dont have to track the dist files
This commit is contained in:
parent
13b1287a30
commit
6b1421eb4d
2 changed files with 10 additions and 4 deletions
4
.gitignore
vendored
4
.gitignore
vendored
|
@ -1,5 +1,3 @@
|
||||||
.nvmrc
|
.nvmrc
|
||||||
node_modules/
|
node_modules/
|
||||||
dist/*/
|
dist/*
|
||||||
dist/*.min.js
|
|
||||||
dist/paperjs.zip
|
|
||||||
|
|
|
@ -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' })
|
||||||
|
|
Loading…
Reference in a new issue