2016-06-09 01:13:40 +00:00
|
|
|
"use strict";
|
2016-11-26 13:45:56 +00:00
|
|
|
function __export(m) {
|
|
|
|
for (var p in m) if (!exports.hasOwnProperty(p)) exports[p] = m[p];
|
|
|
|
}
|
2017-02-27 21:46:12 +00:00
|
|
|
Object.defineProperty(exports, "__esModule", { value: true });
|
2016-06-09 01:13:40 +00:00
|
|
|
require("typings-global");
|
2016-11-26 13:45:56 +00:00
|
|
|
// direct access to classes
|
|
|
|
__export(require("./projectinfo.classes.git"));
|
|
|
|
__export(require("./projectinfo.classes.npm"));
|
|
|
|
__export(require("./projectinfo.classes.projectinfo"));
|
|
|
|
// npm
|
2016-10-27 17:43:54 +00:00
|
|
|
const projectinfo_classes_npm_1 = require("./projectinfo.classes.npm");
|
2016-11-26 13:45:56 +00:00
|
|
|
// quick functions
|
|
|
|
/**
|
|
|
|
* gets the name from package.json in a specified directory
|
|
|
|
*/
|
|
|
|
exports.getNpmNameForDir = function (cwdArg) {
|
|
|
|
let localNpm = new projectinfo_classes_npm_1.ProjectinfoNpm(cwdArg);
|
|
|
|
if (localNpm.status === 'ok') {
|
2016-02-20 05:06:43 +00:00
|
|
|
return localNpm.name;
|
|
|
|
}
|
|
|
|
};
|
2016-06-09 01:13:40 +00:00
|
|
|
/* TODO
|
|
|
|
projectinfo.git = function(){
|
2016-02-20 04:05:07 +00:00
|
|
|
|
2016-06-09 01:13:40 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
projectinfo.mojo = function(){
|
|
|
|
|
|
|
|
};
|
2016-11-26 13:45:56 +00:00
|
|
|
*/
|
2017-02-27 21:46:12 +00:00
|
|
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi90cy9pbmRleC50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiOzs7OztBQUFBLDBCQUF1QjtBQUd2QiwyQkFBMkI7QUFDM0IsK0NBQXlDO0FBQ3pDLCtDQUF5QztBQUN6Qyx1REFBaUQ7QUFFakQsTUFBTTtBQUNOLHVFQUEwRDtBQUUxRCxrQkFBa0I7QUFFbEI7O0dBRUc7QUFDUSxRQUFBLGdCQUFnQixHQUFHLFVBQVMsTUFBTTtJQUN6QyxJQUFJLFFBQVEsR0FBRyxJQUFJLHdDQUFjLENBQUMsTUFBTSxDQUFDLENBQUE7SUFDekMsRUFBRSxDQUFDLENBQUMsUUFBUSxDQUFDLE1BQU0sS0FBSyxJQUFJLENBQUMsQ0FBQyxDQUFDO1FBQzNCLE1BQU0sQ0FBQyxRQUFRLENBQUMsSUFBSSxDQUFBO0lBQ3hCLENBQUM7QUFDTCxDQUFDLENBQUE7QUFFRDs7Ozs7Ozs7RUFRRSJ9
|