Files
projectinfo/ts/index.ts

28 lines
581 B
TypeScript
Raw Normal View History

2016-06-09 01:56:05 +02:00
import "typings-global"
2016-02-20 05:05:07 +01:00
import plugins = require("./projectinfo.plugins");
var projectinfo:any = {};
//npm
import {ProjectinfoNpm} from "./projectinfo.classes.npm";
export {ProjectinfoNpm} from "./projectinfo.classes.npm";
export let npm = function(cwdArg,optionsArg){
return new ProjectinfoNpm(cwdArg,optionsArg);
2016-02-20 05:05:07 +01:00
};
2016-02-20 06:06:43 +01:00
//quick functions
projectinfo.getName = function(cwdArg){
var localNpm = projectinfo.npm(cwdArg);
if (localNpm.status === "ok"){
return localNpm.name;
}
};
2016-02-20 05:05:07 +01:00
/* TODO
projectinfo.git = function(){
};
projectinfo.mojo = function(){
};
*/