smartlog-destination-local/test/testbrowser.js

18 lines
665 B
JavaScript
Raw Permalink Normal View History

2015-12-26 00:51:04 +00:00
/// <reference path="typings/tsd.d.ts" />
var plugins = {
gulp: require("gulp"),
gulpBrowser: require("gulp-browser"),
easyserve: require("easyserve")
};
2016-02-23 13:34:40 +00:00
plugins.gulp.task('compileBrowserJS', function () {
2015-12-26 00:51:04 +00:00
var stream = plugins.gulp.src('test/browser/index.js')
.pipe(plugins.gulpBrowser.browserify())
.pipe(plugins.gulp.dest("test/browser/browserified/"));
return stream;
});
2016-02-23 13:34:40 +00:00
plugins.gulp.task('default', ['compileBrowserJS'], function () {
2015-12-26 00:51:04 +00:00
console.log('browserJS has been browserified');
plugins.easyserve("test/browser/");
});
2016-02-23 13:34:40 +00:00
plugins.gulp.start.apply(plugins.gulp, ['default']);
//# sourceMappingURL=testbrowser.js.map