projectinfo/ts/projectinfo.classes.projectinfo.ts

21 lines
596 B
TypeScript
Raw Normal View History

2022-04-18 20:16:46 +00:00
import * as plugins from './projectinfo.plugins.js';
import { ProjectinfoNpm } from './projectinfo.classes.npm.js';
import { ProjectinfoGit } from './projectinfo.classes.git.js';
2018-09-02 12:21:05 +00:00
export type TProjectType = 'git' | 'npm';
2016-11-26 13:45:56 +00:00
/**
* class projectinfo automatically examines a given directory and exposes relevant info about it
*/
export class ProjectInfo {
2018-09-02 12:21:05 +00:00
type: TProjectType;
npm: ProjectinfoNpm;
git: ProjectinfoGit;
/**
* constructor of class ProjectInfo
*/
constructor(cwdArg: string) {
this.npm = new ProjectinfoNpm(cwdArg);
this.git = new ProjectinfoGit(cwdArg);
}
}