dist | ||
test | ||
ts | ||
.gitignore | ||
.gitlab-ci.yml | ||
.npmignore | ||
LICENSE | ||
npmts.json | ||
package.json | ||
README.md | ||
tslint.json |
gulp-browser
browserify and other goodies for gulp
Availabililty
Status for master
Usage
Use TypeScript for best in class instellisense.
Browserify:
let gulp = require("gulp");
let gulpBrowser = require("gulp-browser");
let transforms = [
{
transform: "babelify",
options: {presets: ["es2015"]}
}
];
gulp.task('gulpBrowserTest',function() {
var stream = gulp.src('./test/*.js')
.pipe(gulpBrowser.browserify(transforms)) // gulp.browserify() accepts an optional array of tansforms
.pipe(gulp.dest("./test/browserifiedJS/"));
return stream;
});
Note: Be aware of how gulp.src creates values of file.base and file.path since that is important to the require statements.