This commit is contained in:
Aya Morisawa 2017-01-03 04:39:44 +09:00
parent 42929b5d3d
commit d404d07053
5 changed files with 5 additions and 5 deletions

View File

@ -5,7 +5,7 @@ import * as chalk from 'chalk';
/**
* Progress bar
*/
export default class ProgressBar extends ev.EventEmitter {
export default class extends ev.EventEmitter {
public max: number;
public value: number;
public text: string;

View File

@ -1,7 +1,7 @@
import Logger from './logger';
import { exec } from 'shelljs';
export default class DependencyInfo {
export default class {
logger: Logger;
constructor() {

View File

@ -1,6 +1,6 @@
import Logger from './logger';
export default class EnvironmentInfo {
export default class {
static show(): void {
const env = process.env.NODE_ENV;
let logger = new Logger('Env');

View File

@ -3,7 +3,7 @@ import * as chalk from 'chalk';
const prominence = require('prominence');
const git = require('git-last-commit');
export default class LastCommitInfo {
export default class {
static async show(): Promise<void> {
let logger = new Logger('LastCommit');
try {

View File

@ -1,7 +1,7 @@
import * as os from 'os';
import Logger from './logger';
export default class MachineInfo {
export default class {
static show(): void {
const totalmem = (os.totalmem() / 1024 / 1024 / 1024).toFixed(1);
const freemem = (os.freemem() / 1024 / 1024 / 1024).toFixed(1);