20 lines
2.6 KiB
JavaScript
20 lines
2.6 KiB
JavaScript
|
/// <reference path="typings/tsd.d.ts" />
|
||
|
var plugins = {
|
||
|
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 () {
|
||
|
console.log('browserJS has been browserified');
|
||
|
plugins.easyserve("test/browser/");
|
||
|
});
|
||
|
plugins.gulp.start.apply(plugins.gulp, ['default']);
|
||
|
|
||
|
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJzb3VyY2VzIjpbInRlc3Ricm93c2VyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlDQUF5QztBQUN6QyxJQUFJLE9BQU8sR0FBRztJQUNWLElBQUksRUFBRSxPQUFPLENBQUMsTUFBTSxDQUFDO0lBQ3JCLFdBQVcsRUFBRSxPQUFPLENBQUMsY0FBYyxDQUFDO0lBQ3BDLFNBQVMsRUFBRSxPQUFPLENBQUMsV0FBVyxDQUFDO0NBQ2xDLENBQUM7QUFFRixPQUFPLENBQUMsSUFBSSxDQUFDLElBQUksQ0FBQyxrQkFBa0IsRUFBRTtJQUNsQyxJQUFJLE1BQU0sR0FBRyxPQUFPLENBQUMsSUFBSSxDQUFDLEdBQUcsQ0FBQyx1QkFBdUIsQ0FBQztTQUNqRCxJQUFJLENBQUMsT0FBTyxDQUFDLFdBQVcsQ0FBQyxVQUFVLEVBQUUsQ0FBQztTQUN0QyxJQUFJLENBQUMsT0FBTyxDQUFDLElBQUksQ0FBQyxJQUFJLENBQUMsNEJBQTRCLENBQUMsQ0FBQyxDQUFDO0lBQzNELE1B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