✨
This commit is contained in:
parent
44ef1c1a4a
commit
a134358144
5 changed files with 5 additions and 5 deletions
|
@ -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;
|
||||||
|
|
|
@ -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() {
|
||||||
|
|
|
@ -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');
|
||||||
|
|
|
@ -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 {
|
||||||
|
|
|
@ -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);
|
||||||
|
|
Loading…
Reference in a new issue