update dependencies and restructure code
This commit is contained in:
13
ts/index.ts
13
ts/index.ts
@@ -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;
|
||||
*/
|
0
ts/projectinfi.classes.git.ts
Normal file
0
ts/projectinfi.classes.git.ts
Normal 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;
|
||||
}
|
@@ -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"
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user