update dependencies and restructure code

This commit is contained in:
2016-06-09 01:38:22 +02:00
parent bb926b7319
commit a7035a56fc
7 changed files with 50 additions and 34 deletions

View File

@@ -2,10 +2,11 @@
import plugins = require("./projectinfo.plugins");
var projectinfo:any = {};
//classes
import ProjectinfoNPM = require("./projectinfo.npm");
projectinfo.npm = function(cwdArg,optionsArg){
return new ProjectinfoNPM(cwdArg,optionsArg);
//npm
import {ProjectinfoNpm} from "./projectinfo.classes.npm";
export {ProjectinfoNpm} from "./projectinfo.classes.npm";
export let npm = function(cwdArg,optionsArg){
return new ProjectinfoNpm(cwdArg,optionsArg);
};
//quick functions
@@ -24,6 +25,4 @@ projectinfo.git = function(){
projectinfo.mojo = function(){
};
*/
export = projectinfo;
*/

View File

View File

@@ -1,6 +1,6 @@
/// <reference path="./typings/main.d.ts" />
import plugins = require("./projectinfo.plugins");
class ProjectinfoNPM {
export class ProjectinfoNpm {
packageJson;
name:string;
version:string;
@@ -24,6 +24,4 @@ class ProjectinfoNPM {
};
};
}
export = ProjectinfoNPM;
}

View File

@@ -1,7 +0,0 @@
{
"ambientDependencies": {
"node": "github:DefinitelyTyped/DefinitelyTyped/node/node.d.ts",
"mocha": "github:Bartvds/tsd-deftools/typings/DefinitelyTyped/mocha/mocha.d.ts",
"colors": "github:DefinitelyTyped/DefinitelyTyped/colors/colors.d.ts"
}
}