projectinfo/ts/index.ts
2016-02-21 16:50:00 +01:00

29 lines
546 B
TypeScript

/// <reference path="./typings/main.d.ts" />
import plugins = require("./projectinfo.plugins");
var projectinfo:any = {};
//classes
import ProjectinfoNPM = require("./projectinfo.npm");
projectinfo.npm = function(cwdArg){
return new ProjectinfoNPM(cwdArg);
};
//quick functions
projectinfo.getName = function(cwdArg){
var localNpm = projectinfo.npm(cwdArg);
if (localNpm.status === "ok"){
return localNpm.name;
}
};
/* TODO
projectinfo.git = function(){
};
projectinfo.mojo = function(){
};
*/
export = projectinfo;