✌️
This commit is contained in:
parent
1d107b714f
commit
7940c0901d
|
@ -13,7 +13,7 @@ import cssnano = require('gulp-cssnano');
|
||||||
import * as uglifyComposer from 'gulp-uglify/composer';
|
import * as uglifyComposer from 'gulp-uglify/composer';
|
||||||
import pug = require('gulp-pug');
|
import pug = require('gulp-pug');
|
||||||
import * as rimraf from 'rimraf';
|
import * as rimraf from 'rimraf';
|
||||||
import * as chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
import imagemin = require('gulp-imagemin');
|
import imagemin = require('gulp-imagemin');
|
||||||
import * as rename from 'gulp-rename';
|
import * as rename from 'gulp-rename';
|
||||||
import * as mocha from 'gulp-mocha';
|
import * as mocha from 'gulp-mocha';
|
||||||
|
@ -123,7 +123,7 @@ gulp.task('build:client:script', () =>
|
||||||
.pipe(replace('VERSION', JSON.stringify(version)))
|
.pipe(replace('VERSION', JSON.stringify(version)))
|
||||||
.pipe(isProduction ? uglify({
|
.pipe(isProduction ? uglify({
|
||||||
toplevel: true
|
toplevel: true
|
||||||
}) : gutil.noop())
|
} as any) : gutil.noop())
|
||||||
.pipe(gulp.dest('./built/web/assets/')) as any
|
.pipe(gulp.dest('./built/web/assets/')) as any
|
||||||
);
|
);
|
||||||
|
|
||||||
|
|
|
@ -60,8 +60,6 @@
|
||||||
"@types/riot": "3.6.1",
|
"@types/riot": "3.6.1",
|
||||||
"@types/serve-favicon": "2.2.29",
|
"@types/serve-favicon": "2.2.29",
|
||||||
"@types/uuid": "3.4.3",
|
"@types/uuid": "3.4.3",
|
||||||
"@types/webpack": "3.0.14",
|
|
||||||
"@types/uuid": "3.4.3",
|
|
||||||
"@types/webpack": "3.0.13",
|
"@types/webpack": "3.0.13",
|
||||||
"@types/webpack-stream": "3.2.8",
|
"@types/webpack-stream": "3.2.8",
|
||||||
"@types/websocket": "0.0.34",
|
"@types/websocket": "0.0.34",
|
||||||
|
@ -91,7 +89,6 @@
|
||||||
"swagger-jsdoc": "1.9.7",
|
"swagger-jsdoc": "1.9.7",
|
||||||
"tslint": "5.8.0",
|
"tslint": "5.8.0",
|
||||||
"uglify-es": "3.0.27",
|
"uglify-es": "3.0.27",
|
||||||
"uglify-js": "git+https://github.com/mishoo/UglifyJS2.git#harmony",
|
|
||||||
"uglifyjs-webpack-plugin": "1.0.1",
|
"uglifyjs-webpack-plugin": "1.0.1",
|
||||||
"webpack": "3.8.1"
|
"webpack": "3.8.1"
|
||||||
},
|
},
|
||||||
|
|
|
@ -8,7 +8,7 @@ import * as fs from 'fs';
|
||||||
import * as os from 'os';
|
import * as os from 'os';
|
||||||
import * as cluster from 'cluster';
|
import * as cluster from 'cluster';
|
||||||
import * as debug from 'debug';
|
import * as debug from 'debug';
|
||||||
import * as chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
// import portUsed = require('tcp-port-used');
|
// import portUsed = require('tcp-port-used');
|
||||||
import isRoot = require('is-root');
|
import isRoot = require('is-root');
|
||||||
import { master } from 'accesses';
|
import { master } from 'accesses';
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
import { EventEmitter } from 'events';
|
import { EventEmitter } from 'events';
|
||||||
import * as readline from 'readline';
|
import * as readline from 'readline';
|
||||||
import * as chalk from 'chalk';
|
import chalk from 'chalk';
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Progress bar
|
* Progress bar
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import * as chalk from 'chalk';
|
import chalk, { Chalk } from 'chalk';
|
||||||
|
|
||||||
export type LogLevel = 'Error' | 'Warn' | 'Info';
|
export type LogLevel = 'Error' | 'Warn' | 'Info';
|
||||||
|
|
||||||
function toLevelColor(level: LogLevel): chalk.ChalkStyle {
|
function toLevelColor(level: LogLevel): Chalk {
|
||||||
switch (level) {
|
switch (level) {
|
||||||
case 'Error': return chalk.red;
|
case 'Error': return chalk.red;
|
||||||
case 'Warn': return chalk.yellow;
|
case 'Warn': return chalk.yellow;
|
||||||
|
|
Loading…
Reference in a new issue