projectinfo/ts/projectinfo.classes.projectinfo.ts

20 lines
601 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'
2016-11-26 22:18:33 +00:00
import { ProjectinfoGit } from './projectinfo.classes.git'
2016-11-26 13:45:56 +00:00
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
2016-11-26 22:18:33 +00:00
git: ProjectinfoGit
2016-11-26 13:45:56 +00:00
/**
2016-11-26 22:18:33 +00:00
* constructor of class ProjectInfo
2016-11-26 13:45:56 +00:00
*/
constructor(cwdArg: string) {
this.npm = new ProjectinfoNpm(cwdArg)
2016-11-26 22:18:33 +00:00
this.git = new ProjectinfoGit(cwdArg)
2016-11-26 13:45:56 +00:00
}
}