1
1
mirror of https://github.com/kokonect-link/cherrypick synced 2024-11-23 22:56:53 +09:00
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
*/
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);