mirror of
https://github.com/CesiumGS/obj2gltf.git
synced 2024-11-30 03:50:14 -05:00
Proper gulp4 usage
This commit is contained in:
parent
94987d7343
commit
62954bffb9
@ -42,7 +42,7 @@ function test(done) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function testWatch() {
|
function testWatch() {
|
||||||
gulp.watch(specFiles).on('change', function () {
|
return gulp.watch(specFiles).on('change', function () {
|
||||||
// We can't simply depend on the test task because Jasmine
|
// We can't simply depend on the test task because Jasmine
|
||||||
// does not like being run multiple times in the same process.
|
// does not like being run multiple times in the same process.
|
||||||
try {
|
try {
|
||||||
@ -55,7 +55,7 @@ function testWatch() {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
function coverage() {
|
async function coverage() {
|
||||||
fsExtra.removeSync('coverage/server');
|
fsExtra.removeSync('coverage/server');
|
||||||
child_process.execSync('nyc' +
|
child_process.execSync('nyc' +
|
||||||
' --all' +
|
' --all' +
|
||||||
@ -66,7 +66,7 @@ function coverage() {
|
|||||||
' JASMINE_CONFIG_PATH=specs/jasmine.json', {
|
' JASMINE_CONFIG_PATH=specs/jasmine.json', {
|
||||||
stdio: [process.stdin, process.stdout, process.stderr]
|
stdio: [process.stdin, process.stdout, process.stderr]
|
||||||
});
|
});
|
||||||
return open('coverage/lcov-report/index.html');
|
open('coverage/lcov-report/index.html');
|
||||||
}
|
}
|
||||||
|
|
||||||
function cloc() {
|
function cloc() {
|
||||||
|
Loading…
Reference in New Issue
Block a user