gulp-browser/ts/test.ts

24 lines
844 B
TypeScript
Raw Normal View History

/// <reference path="./typings/main.d.ts" />
var plugins = {
beautylog: require("beautylog"),
gulp: require("gulp"),
2016-02-01 01:28:43 +00:00
gulpBrowser: require("../index.js"),
2016-02-01 02:38:58 +00:00
gulpFunction: require("gulp-function")
};
2016-02-01 02:10:58 +00:00
describe("gulpBrowser",function(){
describe(".browserify",function(){
it("should run through smoothly",function(done){
2016-02-01 02:55:50 +00:00
this.timeout(20000);
2016-02-01 02:10:58 +00:00
plugins.gulp.task('gulpBrowserNormal',function(cb) {
var stream = plugins.gulp.src('./test/browserifyGulpTest.js')
.pipe(plugins.gulpBrowser.browserify())
.pipe(plugins.gulp.dest("./test/result/"))
2016-02-01 02:38:58 +00:00
.pipe(plugins.gulpFunction(done));
2016-02-01 02:10:58 +00:00
return stream;
});
plugins.gulp.start.apply(plugins.gulp, ['gulpBrowserNormal']);
});
});
2015-10-26 22:27:33 +00:00
});