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

View File

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

View File

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

View File

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

View File

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

View File

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