21 lines
682 B
TypeScript
21 lines
682 B
TypeScript
|
/// <reference path="typings/tsd.d.ts" />
|
||
|
var plugins = {
|
||
|
beautylog: require("beautylog")("os"),
|
||
|
gulp: require("gulp"),
|
||
|
gulpBrowser: require("gulp-browser"),
|
||
|
easyserve: require("easyserve")
|
||
|
};
|
||
|
|
||
|
plugins.gulp.task('compileBrowserJS', function() {
|
||
|
var stream = plugins.gulp.src('test/browser/index.js')
|
||
|
.pipe(plugins.gulpBrowser.browserify())
|
||
|
.pipe(plugins.gulp.dest("test/browser/browserified/"));
|
||
|
return stream;
|
||
|
});
|
||
|
|
||
|
plugins.gulp.task('default',['compileBrowserJS'], function() {
|
||
|
plugins.beautylog.success('browserJS has been browserified');
|
||
|
plugins.easyserve("test/browser/");
|
||
|
});
|
||
|
|
||
|
plugins.gulp.start.apply(plugins.gulp, ['default']);
|