extract test task to build/gulpfile.test.js

pull/14086/head
Alex Dima 2016-10-20 15:15:29 +02:00
parent a2c9dfa94d
commit 05c0eee675
2 changed files with 15 additions and 7 deletions

View File

@ -0,0 +1,15 @@
/*---------------------------------------------------------------------------------------------
* Copyright (c) Microsoft Corporation. All rights reserved.
* Licensed under the MIT License. See License.txt in the project root for license information.
*--------------------------------------------------------------------------------------------*/
'use strict';
const gulp = require('gulp');
const mocha = require('gulp-mocha');
gulp.task('test', function () {
return gulp.src('test/all.js')
.pipe(mocha({ ui: 'tdd', delay: true }))
.once('end', function () { process.exit(); });
});

View File

@ -9,7 +9,6 @@
require('events').EventEmitter.defaultMaxListeners = 100;
const gulp = require('gulp');
const mocha = require('gulp-mocha');
const util = require('./build/lib/util');
const path = require('path');
const glob = require('glob');
@ -38,12 +37,6 @@ gulp.task('clean-build', ['clean-client-build', 'clean-extensions-build']);
gulp.task('compile-build', ['compile-client-build', 'compile-extensions-build']);
gulp.task('watch-build', ['watch-client-build', 'watch-extensions-build']);
gulp.task('test', function () {
return gulp.src('test/all.js')
.pipe(mocha({ ui: 'tdd', delay: true }))
.once('end', function () { process.exit(); });
});
var ALL_EDITOR_TASKS = [
'clean-optimized-editor',
'optimize-editor',