2016-06-08 23:56:05 +00:00
|
|
|
import "typings-global"
|
2016-02-20 04:05:07 +00:00
|
|
|
import plugins = require("./projectinfo.plugins");
|
|
|
|
|
2016-06-08 23:38:22 +00:00
|
|
|
//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 04:05:07 +00:00
|
|
|
};
|
|
|
|
|
2016-02-20 05:06:43 +00:00
|
|
|
//quick functions
|
2016-06-09 01:13:40 +00:00
|
|
|
export let getName = function(cwdArg){
|
|
|
|
var localNpm = new ProjectinfoNpm(cwdArg);
|
2016-02-20 05:06:43 +00:00
|
|
|
if (localNpm.status === "ok"){
|
|
|
|
return localNpm.name;
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
2016-02-20 04:05:07 +00:00
|
|
|
/* TODO
|
|
|
|
projectinfo.git = function(){
|
|
|
|
|
|
|
|
};
|
|
|
|
|
|
|
|
projectinfo.mojo = function(){
|
|
|
|
|
|
|
|
};
|
2016-06-08 23:38:22 +00:00
|
|
|
*/
|