updated structure
This commit is contained in:
parent
9f871220c2
commit
83ddbb4bbb
7
dist/index.js
vendored
7
dist/index.js
vendored
@ -1,7 +1,6 @@
|
||||
//import classes
|
||||
var ProjectinfoNPM = require("./projectinfo.npm");
|
||||
var projectinfo = {};
|
||||
//specific classes
|
||||
//classes
|
||||
var ProjectinfoNPM = require("./projectinfo.npm");
|
||||
projectinfo.npm = function (cwdArg) {
|
||||
return new ProjectinfoNPM(cwdArg);
|
||||
};
|
||||
@ -14,4 +13,4 @@ projectinfo.getName = function (cwdArg) {
|
||||
};
|
||||
module.exports = projectinfo;
|
||||
|
||||
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbImluZGV4LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUdBLGdCQUFnQjtBQUNoQixJQUFPLGNBQWMsV0FBVyxtQkFBbUIsQ0FBQyxDQUFDO0FBRXJELElBQUksV0FBVyxHQUFPLEVBQUUsQ0FBQztBQUV6QixrQkFBa0I7QUFDbEIsV0FBVyxDQUFDLEdBQUcsR0FBRyxVQUFTLE1BQU07SUFDN0IsTUFBTSxDQUFDLElBQUksY0FBYyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0FBQ3RDLENBQUMsQ0FBQztBQUVGLGlCQUFpQjtBQUNqQixXQUFXLENBQUMsT0FBTyxHQUFHLFVBQVMsTUFBTTtJQUNqQyxJQUFJLFFBQVEsR0FBRyxXQUFXLENBQUMsR0FBRyxDQUFDLE1BQU0sQ0FBQyxDQUFDO0lBQ3ZDLEVBQUUsQ0FBQyxDQUFDLFFBQVEsQ0FBQyxNQUFNLEtBQUssSUFBSSxDQUFDLENBQUEsQ0FBQztRQUMxQixNQUFNLENBQUMsUUFBUSxDQUFDLElBQUksQ0FBQztJQUN6QixDQUFDO0FBQ0wsQ0FBQyxDQUFDO0FBWUYsaUJBQVMsV0FBVyxDQUFDIiwiZmlsZSI6ImluZGV4LmpzIiwic291cmNlc0NvbnR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va1wiKXtcbiAgICAgICAgcmV0dXJuIGxvY2FsTnBtLm5hbWU7XG4gICAgfVxufTtcblxuLyogVE9ET1xucHJvamVjdGluZm8uZ2l0ID0gZnVuY3Rpb24oKXtcblxufTtcblxucHJvamVjdGluZm8ubW9qbyA9IGZ1bmN0aW9uKCl7XG5cbn07XG4qL1xuXG5leHBvcnQgPSBwcm9qZWN0aW5mbzsiXSwic291cmNlUm9vdCI6Ii9zb3VyY2UvIn0=
|
||||
|
@ -1,12 +1,9 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
import plugins = require("./projectinfo.plugins");
|
||||
|
||||
//import classes
|
||||
import ProjectinfoNPM = require("./projectinfo.npm");
|
||||
|
||||
var projectinfo:any = {};
|
||||
|
||||
//specific classes
|
||||
//classes
|
||||
import ProjectinfoNPM = require("./projectinfo.npm");
|
||||
projectinfo.npm = function(cwdArg){
|
||||
return new ProjectinfoNPM(cwdArg);
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user