add tests
This commit is contained in:
		@@ -12,7 +12,16 @@ gulp.task('compileTS', function() {
 | 
			
		||||
	return stream;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
gulp.task('default',['compileTS'], function() {
 | 
			
		||||
gulp.task('compileTSTest', function() {
 | 
			
		||||
	var stream = gulp.src('../test.ts')
 | 
			
		||||
			.pipe(gulpTypescript({
 | 
			
		||||
				out: "test.js"
 | 
			
		||||
			}))
 | 
			
		||||
			.pipe(gulp.dest("../../"));
 | 
			
		||||
	return stream;
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
gulp.task('default',['compileTS','compileTSTest'], function() {
 | 
			
		||||
	pr.beautylog.success('Typescript compiled');
 | 
			
		||||
});
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -3,7 +3,7 @@ var beautylog = require("beautylog");
 | 
			
		||||
var colors = require("colors");
 | 
			
		||||
 | 
			
		||||
var debugActive:boolean = false;
 | 
			
		||||
var debugsmart = {
 | 
			
		||||
var smartdebug = {
 | 
			
		||||
    log: function(message:string){
 | 
			
		||||
        if (debugActive) {
 | 
			
		||||
            beautylog.log("Debug:".zebra + ' ' + message);
 | 
			
		||||
@@ -14,4 +14,4 @@ var debugsmart = {
 | 
			
		||||
    }
 | 
			
		||||
};
 | 
			
		||||
 | 
			
		||||
module.exports = debugsmart;
 | 
			
		||||
module.exports = smartdebug;
 | 
			
		||||
 
 | 
			
		||||
							
								
								
									
										0
									
								
								ts/test.ts
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										0
									
								
								ts/test.ts
									
									
									
									
									
										Normal file
									
								
							
		Reference in New Issue
	
	Block a user