add travis
This commit is contained in:
		
							
								
								
									
										2
									
								
								ts/compile/compile.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ts/compile/compile.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
nvm use v0.12.7
 | 
			
		||||
gulp
 | 
			
		||||
							
								
								
									
										16
									
								
								ts/compile/gulpfile.js
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										16
									
								
								ts/compile/gulpfile.js
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,16 @@
 | 
			
		||||
// import gulp
 | 
			
		||||
var gulp = require("gulp"),
 | 
			
		||||
	gulpTypescript = require("gulp-typescript");
 | 
			
		||||
 | 
			
		||||
gulp.task('compileTS', function() {
 | 
			
		||||
	var stream = gulp.src('../index.ts')
 | 
			
		||||
	  .pipe(gulpTypescript({
 | 
			
		||||
	  	out: "index.js"
 | 
			
		||||
	  }))
 | 
			
		||||
	  .pipe(gulp.dest("../../"));
 | 
			
		||||
	return stream;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
gulp.task('default',['compileTS'], function() {
 | 
			
		||||
	console.log('Typescript compiled');
 | 
			
		||||
});
 | 
			
		||||
							
								
								
									
										2
									
								
								ts/compile/readme.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										2
									
								
								ts/compile/readme.md
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,2 @@
 | 
			
		||||
# How to compile.
 | 
			
		||||
Make sure gulp and gulp-taypescript from npm are available. Then run the gulpfile in this directory.
 | 
			
		||||
							
								
								
									
										14
									
								
								ts/index.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										14
									
								
								ts/index.ts
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,14 @@
 | 
			
		||||
/// <reference path="typings/tsd.d.ts" />
 | 
			
		||||
var path, through;
 | 
			
		||||
 | 
			
		||||
through = require("through2");
 | 
			
		||||
path = require("path");
 | 
			
		||||
 | 
			
		||||
module.exports = (jsonObject,type = undefined) => {
 | 
			
		||||
    
 | 
			
		||||
 | 
			
		||||
    return through.obj((file, enc, cb) => {
 | 
			
		||||
        //tell gulp that we are complete
 | 
			
		||||
        return cb(null, file);
 | 
			
		||||
    });
 | 
			
		||||
};
 | 
			
		||||
							
								
								
									
										12
									
								
								ts/tsd.json
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								ts/tsd.json
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,12 @@
 | 
			
		||||
{
 | 
			
		||||
  "version": "v4",
 | 
			
		||||
  "repo": "borisyankov/DefinitelyTyped",
 | 
			
		||||
  "ref": "master",
 | 
			
		||||
  "path": "typings",
 | 
			
		||||
  "bundle": "typings/tsd.d.ts",
 | 
			
		||||
  "installed": {
 | 
			
		||||
    "node/node.d.ts": {
 | 
			
		||||
      "commit": "efa0c1196d7280640e624ac1e7fa604502e7bd63"
 | 
			
		||||
    }
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
							
								
								
									
										2079
									
								
								ts/typings/node/node.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										2079
									
								
								ts/typings/node/node.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							
							
								
								
									
										1
									
								
								ts/typings/tsd.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							
							
						
						
									
										1
									
								
								ts/typings/tsd.d.ts
									
									
									
									
										vendored
									
									
										Normal file
									
								
							@@ -0,0 +1 @@
 | 
			
		||||
/// <reference path="node/node.d.ts" />
 | 
			
		||||
		Reference in New Issue
	
	Block a user