projectinfo/ts/index.ts

32 lines
574 B
TypeScript
Raw Normal View History

2016-02-20 04:05:07 +00:00
/// <reference path="./typings/main.d.ts" />
import plugins = require("./projectinfo.plugins");
//import classes
import ProjectinfoNPM = require("./projectinfo.npm");
var projectinfo:any = {};
2016-02-20 05:06:43 +00:00
//specific classes
2016-02-20 04:05:07 +00:00
projectinfo.npm = function(cwdArg){
return new ProjectinfoNPM(cwdArg);
};
2016-02-20 05:06:43 +00:00
//quick functions
projectinfo.getName = function(cwdArg){
var localNpm = projectinfo.npm(cwdArg);
if (localNpm.status === "ok"){
return localNpm.name;
}
};
2016-02-20 04:05:07 +00:00
/* TODO
projectinfo.git = function(){
};
projectinfo.mojo = function(){
};
*/
export = projectinfo;