add travis
This commit is contained in:
8
ts/index.js
Normal file
8
ts/index.js
Normal file
@ -0,0 +1,8 @@
|
||||
//import classes
|
||||
var ProjectinfoNPM = require("./projectinfo.npm");
|
||||
var projectinfo = {};
|
||||
projectinfo.npm = function (cwdArg) {
|
||||
return new ProjectinfoNPM(cwdArg);
|
||||
};
|
||||
module.exports = projectinfo;
|
||||
//# sourceMappingURL=index.js.map
|
1
ts/index.js.map
Normal file
1
ts/index.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"index.js","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAGA,gBAAgB;AAChB,IAAO,cAAc,WAAW,mBAAmB,CAAC,CAAC;AAErD,IAAI,WAAW,GAAO,EAAE,CAAC;AAEzB,WAAW,CAAC,GAAG,GAAG,UAAS,MAAM;IAC7B,MAAM,CAAC,IAAI,cAAc,CAAC,MAAM,CAAC,CAAC;AACtC,CAAC,CAAC;AAYF,iBAAS,WAAW,CAAC"}
|
23
ts/index.ts
Normal file
23
ts/index.ts
Normal file
@ -0,0 +1,23 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
import plugins = require("./projectinfo.plugins");
|
||||
|
||||
//import classes
|
||||
import ProjectinfoNPM = require("./projectinfo.npm");
|
||||
|
||||
var projectinfo:any = {};
|
||||
|
||||
projectinfo.npm = function(cwdArg){
|
||||
return new ProjectinfoNPM(cwdArg);
|
||||
};
|
||||
|
||||
/* TODO
|
||||
projectinfo.git = function(){
|
||||
|
||||
};
|
||||
|
||||
projectinfo.mojo = function(){
|
||||
|
||||
};
|
||||
*/
|
||||
|
||||
export = projectinfo;
|
12
ts/projectinfo.npm.js
Normal file
12
ts/projectinfo.npm.js
Normal file
@ -0,0 +1,12 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = require("./projectinfo.plugins");
|
||||
var ProjectinfoNPM = (function () {
|
||||
function ProjectinfoNPM(cwdArg) {
|
||||
this.packageJson = plugins.smartfile.readFileToObject(plugins.path.join(plugins.path.resolve(cwdArg), "package.json"));
|
||||
this.name = this.packageJson.name;
|
||||
this.version = this.packageJson.version;
|
||||
}
|
||||
return ProjectinfoNPM;
|
||||
})();
|
||||
module.exports = ProjectinfoNPM;
|
||||
//# sourceMappingURL=projectinfo.npm.js.map
|
1
ts/projectinfo.npm.js.map
Normal file
1
ts/projectinfo.npm.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"projectinfo.npm.js","sourceRoot":"","sources":["projectinfo.npm.ts"],"names":["ProjectinfoNPM","ProjectinfoNPM.constructor"],"mappings":"AAAA,4CAA4C;AAC5C,IAAO,OAAO,WAAW,uBAAuB,CAAC,CAAC;AAClD;IAKIA,wBAAYA,MAAMA;QACdC,IAAIA,CAACA,WAAWA,GAAGA,OAAOA,CAACA,SAASA,CAACA,gBAAgBA,CACjDA,OAAOA,CAACA,IAAIA,CAACA,IAAIA,CACbA,OAAOA,CAACA,IAAIA,CAACA,OAAOA,CAACA,MAAMA,CAACA,EAC5BA,cAAcA,CACjBA,CACJA,CAACA;QACFA,IAAIA,CAACA,IAAIA,GAAGA,IAAIA,CAACA,WAAWA,CAACA,IAAIA,CAACA;QAClCA,IAAIA,CAACA,OAAOA,GAAGA,IAAIA,CAACA,WAAWA,CAACA,OAAOA,CAACA;IAC5CA,CAACA;IACLD,qBAACA;AAADA,CAACA,AAfD,IAeC;AAED,iBAAS,cAAc,CAAC"}
|
20
ts/projectinfo.npm.ts
Normal file
20
ts/projectinfo.npm.ts
Normal file
@ -0,0 +1,20 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
import plugins = require("./projectinfo.plugins");
|
||||
class ProjectinfoNPM {
|
||||
packageJson;
|
||||
name:string;
|
||||
version:string;
|
||||
|
||||
constructor(cwdArg){
|
||||
this.packageJson = plugins.smartfile.readFileToObject(
|
||||
plugins.path.join(
|
||||
plugins.path.resolve(cwdArg),
|
||||
"package.json"
|
||||
)
|
||||
);
|
||||
this.name = this.packageJson.name;
|
||||
this.version = this.packageJson.version;
|
||||
}
|
||||
}
|
||||
|
||||
export = ProjectinfoNPM;
|
8
ts/projectinfo.plugins.js
Normal file
8
ts/projectinfo.plugins.js
Normal file
@ -0,0 +1,8 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = {
|
||||
path: require("path"),
|
||||
Q: require("q"),
|
||||
smartfile: require("smartfile")
|
||||
};
|
||||
module.exports = plugins;
|
||||
//# sourceMappingURL=projectinfo.plugins.js.map
|
1
ts/projectinfo.plugins.js.map
Normal file
1
ts/projectinfo.plugins.js.map
Normal file
@ -0,0 +1 @@
|
||||
{"version":3,"file":"projectinfo.plugins.js","sourceRoot":"","sources":["projectinfo.plugins.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,IAAI,OAAO,GAAG;IACV,IAAI,EAAE,OAAO,CAAC,MAAM,CAAC;IACrB,CAAC,EAAE,OAAO,CAAC,GAAG,CAAC;IACf,SAAS,EAAE,OAAO,CAAC,WAAW,CAAC;CAClC,CAAC;AAEF,iBAAS,OAAO,CAAC"}
|
8
ts/projectinfo.plugins.ts
Normal file
8
ts/projectinfo.plugins.ts
Normal file
@ -0,0 +1,8 @@
|
||||
/// <reference path="./typings/main.d.ts" />
|
||||
var plugins = {
|
||||
path: require("path"),
|
||||
Q: require("q"),
|
||||
smartfile: require("smartfile")
|
||||
};
|
||||
|
||||
export = plugins;
|
7
ts/typings.json
Normal file
7
ts/typings.json
Normal file
@ -0,0 +1,7 @@
|
||||
{
|
||||
"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"
|
||||
}
|
||||
}
|
3
ts/typings/browser.d.ts
vendored
Normal file
3
ts/typings/browser.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/// <reference path="browser/ambient/colors/colors.d.ts" />
|
||||
/// <reference path="browser/ambient/mocha/mocha.d.ts" />
|
||||
/// <reference path="browser/ambient/node/node.d.ts" />
|
125
ts/typings/browser/ambient/colors/colors.d.ts
vendored
Normal file
125
ts/typings/browser/ambient/colors/colors.d.ts
vendored
Normal file
@ -0,0 +1,125 @@
|
||||
// Compiled using typings@0.6.8
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
||||
// Type definitions for Colors.js 0.6.0-1
|
||||
// Project: https://github.com/Marak/colors.js
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "colors" {
|
||||
interface Color {
|
||||
(text: string): string;
|
||||
|
||||
black: Color;
|
||||
red: Color;
|
||||
green: Color;
|
||||
yellow: Color;
|
||||
blue: Color;
|
||||
magenta: Color;
|
||||
cyan: Color;
|
||||
white: Color;
|
||||
gray: Color;
|
||||
grey: Color;
|
||||
|
||||
bgBlack: Color;
|
||||
bgRed: Color;
|
||||
bgGreen: Color;
|
||||
bgYellow: Color;
|
||||
bgBlue: Color;
|
||||
bgMagenta: Color;
|
||||
bgCyan: Color;
|
||||
bgWhite: Color;
|
||||
|
||||
reset: Color;
|
||||
bold: Color;
|
||||
dim: Color;
|
||||
italic: Color;
|
||||
underline: Color;
|
||||
inverse: Color;
|
||||
hidden: Color;
|
||||
strikethrough: Color;
|
||||
|
||||
rainbow: Color;
|
||||
zebra: Color;
|
||||
america: Color;
|
||||
trap: Color;
|
||||
random: Color;
|
||||
}
|
||||
|
||||
module e {
|
||||
export function setTheme(theme:any): void;
|
||||
|
||||
export var black: Color;
|
||||
export var red: Color;
|
||||
export var green: Color;
|
||||
export var yellow: Color;
|
||||
export var blue: Color;
|
||||
export var magenta: Color;
|
||||
export var cyan: Color;
|
||||
export var white: Color;
|
||||
export var gray: Color;
|
||||
export var grey: Color;
|
||||
|
||||
export var bgBlack: Color;
|
||||
export var bgRed: Color;
|
||||
export var bgGreen: Color;
|
||||
export var bgYellow: Color;
|
||||
export var bgBlue: Color;
|
||||
export var bgMagenta: Color;
|
||||
export var bgCyan: Color;
|
||||
export var bgWhite: Color;
|
||||
|
||||
export var reset: Color;
|
||||
export var bold: Color;
|
||||
export var dim: Color;
|
||||
export var italic: Color;
|
||||
export var underline: Color;
|
||||
export var inverse: Color;
|
||||
export var hidden: Color;
|
||||
export var strikethrough: Color;
|
||||
|
||||
export var rainbow: Color;
|
||||
export var zebra: Color;
|
||||
export var america: Color;
|
||||
export var trap: Color;
|
||||
export var random: Color;
|
||||
}
|
||||
|
||||
export = e;
|
||||
}
|
||||
|
||||
interface String {
|
||||
black: string;
|
||||
red: string;
|
||||
green: string;
|
||||
yellow: string;
|
||||
blue: string;
|
||||
magenta: string;
|
||||
cyan: string;
|
||||
white: string;
|
||||
gray: string;
|
||||
grey: string;
|
||||
|
||||
bgBlack: string;
|
||||
bgRed: string;
|
||||
bgGreen: string;
|
||||
bgYellow: string;
|
||||
bgBlue: string;
|
||||
bgMagenta: string;
|
||||
bgCyan: string;
|
||||
bgWhite: string;
|
||||
|
||||
reset: string;
|
||||
bold: string;
|
||||
dim: string;
|
||||
italic: string;
|
||||
underline: string;
|
||||
inverse: string;
|
||||
hidden: string;
|
||||
strikethrough: string;
|
||||
|
||||
rainbow: string;
|
||||
zebra: string;
|
||||
america: string;
|
||||
trap: string;
|
||||
random: string;
|
||||
}
|
40
ts/typings/browser/ambient/mocha/mocha.d.ts
vendored
Normal file
40
ts/typings/browser/ambient/mocha/mocha.d.ts
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
// Compiled using typings@0.6.8
|
||||
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
||||
// Type definitions for mocha 1.9.0
|
||||
// Project: http://visionmedia.github.io/mocha/
|
||||
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
||||
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
||||
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare var describe : {
|
||||
(description: string, spec: () => void): void;
|
||||
only(description: string, spec: () => void): void;
|
||||
skip(description: string, spec: () => void): void;
|
||||
timeout(ms: number);
|
||||
}
|
||||
|
||||
declare var it: {
|
||||
(expectation: string, assertion?: () => void): void;
|
||||
(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
only(expectation: string, assertion?: () => void): void;
|
||||
only(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
skip(expectation: string, assertion?: () => void): void;
|
||||
skip(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
timeout(ms: number);
|
||||
};
|
||||
|
||||
declare function before(action: () => void): void;
|
||||
|
||||
declare function before(action: (done: () => void) => void): void;
|
||||
|
||||
declare function aftet(action: () => void): void;
|
||||
|
||||
declare function after(action: (done: () => void) => void): void;
|
||||
|
||||
declare function beforeEach(action: () => void): void;
|
||||
|
||||
declare function beforeEach(action: (done: () => void) => void): void;
|
||||
|
||||
declare function afterEach(action: () => void): void;
|
||||
|
||||
declare function afterEach(action: (done: () => void) => void): void;
|
2196
ts/typings/browser/ambient/node/node.d.ts
vendored
Normal file
2196
ts/typings/browser/ambient/node/node.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
3
ts/typings/main.d.ts
vendored
Normal file
3
ts/typings/main.d.ts
vendored
Normal file
@ -0,0 +1,3 @@
|
||||
/// <reference path="main/ambient/colors/colors.d.ts" />
|
||||
/// <reference path="main/ambient/mocha/mocha.d.ts" />
|
||||
/// <reference path="main/ambient/node/node.d.ts" />
|
125
ts/typings/main/ambient/colors/colors.d.ts
vendored
Normal file
125
ts/typings/main/ambient/colors/colors.d.ts
vendored
Normal file
@ -0,0 +1,125 @@
|
||||
// Compiled using typings@0.6.8
|
||||
// Source: https://raw.githubusercontent.com/DefinitelyTyped/DefinitelyTyped/master/colors/colors.d.ts
|
||||
// Type definitions for Colors.js 0.6.0-1
|
||||
// Project: https://github.com/Marak/colors.js
|
||||
// Definitions by: Bart van der Schoor <https://github.com/Bartvds>
|
||||
// Definitions: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare module "colors" {
|
||||
interface Color {
|
||||
(text: string): string;
|
||||
|
||||
black: Color;
|
||||
red: Color;
|
||||
green: Color;
|
||||
yellow: Color;
|
||||
blue: Color;
|
||||
magenta: Color;
|
||||
cyan: Color;
|
||||
white: Color;
|
||||
gray: Color;
|
||||
grey: Color;
|
||||
|
||||
bgBlack: Color;
|
||||
bgRed: Color;
|
||||
bgGreen: Color;
|
||||
bgYellow: Color;
|
||||
bgBlue: Color;
|
||||
bgMagenta: Color;
|
||||
bgCyan: Color;
|
||||
bgWhite: Color;
|
||||
|
||||
reset: Color;
|
||||
bold: Color;
|
||||
dim: Color;
|
||||
italic: Color;
|
||||
underline: Color;
|
||||
inverse: Color;
|
||||
hidden: Color;
|
||||
strikethrough: Color;
|
||||
|
||||
rainbow: Color;
|
||||
zebra: Color;
|
||||
america: Color;
|
||||
trap: Color;
|
||||
random: Color;
|
||||
}
|
||||
|
||||
module e {
|
||||
export function setTheme(theme:any): void;
|
||||
|
||||
export var black: Color;
|
||||
export var red: Color;
|
||||
export var green: Color;
|
||||
export var yellow: Color;
|
||||
export var blue: Color;
|
||||
export var magenta: Color;
|
||||
export var cyan: Color;
|
||||
export var white: Color;
|
||||
export var gray: Color;
|
||||
export var grey: Color;
|
||||
|
||||
export var bgBlack: Color;
|
||||
export var bgRed: Color;
|
||||
export var bgGreen: Color;
|
||||
export var bgYellow: Color;
|
||||
export var bgBlue: Color;
|
||||
export var bgMagenta: Color;
|
||||
export var bgCyan: Color;
|
||||
export var bgWhite: Color;
|
||||
|
||||
export var reset: Color;
|
||||
export var bold: Color;
|
||||
export var dim: Color;
|
||||
export var italic: Color;
|
||||
export var underline: Color;
|
||||
export var inverse: Color;
|
||||
export var hidden: Color;
|
||||
export var strikethrough: Color;
|
||||
|
||||
export var rainbow: Color;
|
||||
export var zebra: Color;
|
||||
export var america: Color;
|
||||
export var trap: Color;
|
||||
export var random: Color;
|
||||
}
|
||||
|
||||
export = e;
|
||||
}
|
||||
|
||||
interface String {
|
||||
black: string;
|
||||
red: string;
|
||||
green: string;
|
||||
yellow: string;
|
||||
blue: string;
|
||||
magenta: string;
|
||||
cyan: string;
|
||||
white: string;
|
||||
gray: string;
|
||||
grey: string;
|
||||
|
||||
bgBlack: string;
|
||||
bgRed: string;
|
||||
bgGreen: string;
|
||||
bgYellow: string;
|
||||
bgBlue: string;
|
||||
bgMagenta: string;
|
||||
bgCyan: string;
|
||||
bgWhite: string;
|
||||
|
||||
reset: string;
|
||||
bold: string;
|
||||
dim: string;
|
||||
italic: string;
|
||||
underline: string;
|
||||
inverse: string;
|
||||
hidden: string;
|
||||
strikethrough: string;
|
||||
|
||||
rainbow: string;
|
||||
zebra: string;
|
||||
america: string;
|
||||
trap: string;
|
||||
random: string;
|
||||
}
|
40
ts/typings/main/ambient/mocha/mocha.d.ts
vendored
Normal file
40
ts/typings/main/ambient/mocha/mocha.d.ts
vendored
Normal file
@ -0,0 +1,40 @@
|
||||
// Compiled using typings@0.6.8
|
||||
// Source: https://raw.githubusercontent.com/Bartvds/tsd-deftools/master/typings/DefinitelyTyped/mocha/mocha.d.ts
|
||||
// Type definitions for mocha 1.9.0
|
||||
// Project: http://visionmedia.github.io/mocha/
|
||||
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
||||
// Definitions by: Kazi Manzur Rashid <https://github.com/kazimanzurrashid/>
|
||||
// DefinitelyTyped: https://github.com/borisyankov/DefinitelyTyped
|
||||
|
||||
declare var describe : {
|
||||
(description: string, spec: () => void): void;
|
||||
only(description: string, spec: () => void): void;
|
||||
skip(description: string, spec: () => void): void;
|
||||
timeout(ms: number);
|
||||
}
|
||||
|
||||
declare var it: {
|
||||
(expectation: string, assertion?: () => void): void;
|
||||
(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
only(expectation: string, assertion?: () => void): void;
|
||||
only(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
skip(expectation: string, assertion?: () => void): void;
|
||||
skip(expectation: string, assertion?: (done: () => void) => void): void;
|
||||
timeout(ms: number);
|
||||
};
|
||||
|
||||
declare function before(action: () => void): void;
|
||||
|
||||
declare function before(action: (done: () => void) => void): void;
|
||||
|
||||
declare function aftet(action: () => void): void;
|
||||
|
||||
declare function after(action: (done: () => void) => void): void;
|
||||
|
||||
declare function beforeEach(action: () => void): void;
|
||||
|
||||
declare function beforeEach(action: (done: () => void) => void): void;
|
||||
|
||||
declare function afterEach(action: () => void): void;
|
||||
|
||||
declare function afterEach(action: (done: () => void) => void): void;
|
2196
ts/typings/main/ambient/node/node.d.ts
vendored
Normal file
2196
ts/typings/main/ambient/node/node.d.ts
vendored
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user