added ProjectInfo main class

This commit is contained in:
2016-11-26 23:18:33 +01:00
parent 481ab58d02
commit c17db19b9f
12 changed files with 83 additions and 26 deletions

View File

@@ -1,6 +1,6 @@
import * as plugins from './projectinfo.plugins'
import { ProjectinfoNpm } from './projectinfo.classes.npm'
import { ProjectinfoGit } from './projectinfo.classes.git'
export type TProjectType = 'git' | 'npm'
/**
@@ -9,13 +9,12 @@ export type TProjectType = 'git' | 'npm'
export class ProjectInfo {
type: TProjectType
npm: ProjectinfoNpm
git: ProjectinfoGit
/**
* this constructor
* constructor of class ProjectInfo
*/
constructor(cwdArg: string) {
this.npm = new ProjectinfoNpm(cwdArg)
this.git = new ProjectinfoGit(cwdArg)
}
}