2016-02-09 20:44:10 +01:00
|
|
|
#!/usr/bin/env node
|
|
|
|
|
2016-02-01 00:04:05 +01:00
|
|
|
/// <reference path="./typings/main.d.ts" />
|
2016-01-25 00:42:11 +01:00
|
|
|
var plugins = {
|
|
|
|
beautylog: require("beautylog"),
|
|
|
|
gulp: require("gulp"),
|
2016-02-01 02:28:43 +01:00
|
|
|
gulpBrowser: require("../index.js"),
|
2016-02-01 03:38:58 +01:00
|
|
|
gulpFunction: require("gulp-function")
|
2016-01-25 00:42:11 +01:00
|
|
|
};
|
2016-02-01 03:10:58 +01:00
|
|
|
describe("gulpBrowser", function () {
|
|
|
|
describe(".browserify", function () {
|
|
|
|
it("should run through smoothly", function (done) {
|
2016-02-09 20:44:10 +01:00
|
|
|
this.timeout(20000);
|
2016-02-01 03:10:58 +01: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 03:38:58 +01:00
|
|
|
.pipe(plugins.gulpFunction(done));
|
2016-02-01 03:10:58 +01:00
|
|
|
return stream;
|
|
|
|
});
|
|
|
|
plugins.gulp.start.apply(plugins.gulp, ['gulpBrowserNormal']);
|
|
|
|
});
|
|
|
|
});
|
2015-10-26 23:27:33 +01:00
|
|
|
});
|