Update gulp*

This commit is contained in:
2026-03-25 21:10:11 +01:00
parent 3eb40a1e26
commit be2f5755b1
10 changed files with 11225 additions and 15398 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ function getLabel(arg: LogArgument | undefined) {
if (typeof arg === 'string') {
return arg;
} else if (arg && 'message' in arg) {
return arg.message + (arg.stack || '');
return (arg as any).message + (arg.stack || '');
} else {
return arg ? arg.toString() : '';
}
+14 -1
View File
@@ -6,7 +6,20 @@ import 'core-js/stable/promise/finally';
import 'reflect-metadata';
import * as Bluebird from 'bluebird';
import * as fs from 'fs';
import { argv } from 'yargs';
import * as yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
const argv = (yargs as any)(hideBin(process.argv))
.option('beta', {
type: 'boolean',
default: false
})
.option('tools', {
type: 'boolean',
default: false
})
.parseSync();
(global as any).DEVELOPMENT = process.env.NODE_ENV !== 'production';
(global as any).BETA = !!argv.beta;
+16 -1
View File
@@ -1,5 +1,20 @@
import { argv } from 'yargs';
import { ServerConfig } from '../common/adminInterfaces';
import * as yargs from 'yargs';
import { hideBin } from 'yargs/helpers';
const argv = (yargs as any)(hideBin(process.argv))
.option('port', { type: 'string' })
.option('login', { type: 'boolean', default: false })
.option('admin', { type: 'boolean', default: false })
.option('standaloneadmin', { type: 'boolean', default: false })
.option('game', { type: 'string', default: DEVELOPMENT })
.option('superadmin', { type: 'string' })
.option('users', { type: 'boolean', default: false })
.option('tools', { type: 'boolean', default: false })
.option('webpack', { type: 'boolean', default: false })
.option('local', { type: 'boolean', default: false })
.option('nocleanup', { type: 'boolean', default: false })
.parse();
export interface AppConfig {
title: string;
+2 -2
View File
@@ -4,7 +4,7 @@ import '../server/boot';
import * as mongoose from 'mongoose';
import * as fs from 'fs';
import * as path from 'path';
import * as del from 'del';
import { deleteAsync } from 'del';
import { once, mapValues } from 'lodash';
import { spawnSync } from 'child_process';
import { createStubInstance, SinonStubbedInstance, stub } from 'sinon';
@@ -51,7 +51,7 @@ export function generateDiff(expectedPath: string, actualPath: string) {
}
export async function clearCompareResults(group: string) {
await del([pathTo('tools', 'temp', group, '*.png').replace(/\\/g, '/')]);
await deleteAsync([pathTo('tools', 'temp', group, '*.png').replace(/\\/g, '/')]);
}
export function compareCanvases(