projectinfo/ts/projectinfo.classes.projectinfo.ts

21 lines
461 B
TypeScript
Raw Normal View History

2016-11-26 13:45:56 +00:00
import * as plugins from './projectinfo.plugins'
import { ProjectinfoNpm } from './projectinfo.classes.npm'
export type TProjectType = 'git' | 'npm'
/**
* class projectinfo automatically examines a given directory and exposes relevant info about it
*/
export class ProjectInfo {
type: TProjectType
npm: ProjectinfoNpm
/**
* this constructor
*/
constructor(cwdArg: string) {
this.npm = new ProjectinfoNpm(cwdArg)
}
}