Go to file
2024-04-01 21:33:03 +02:00
test fix(core): update to latest standards 2019-02-13 00:22:18 +01:00
ts fix(core): update to latest standards 2019-02-13 00:22:18 +01:00
.gitignore update docs 2017-07-07 18:35:20 +02:00
.gitlab-ci.yml fix(core): update 2019-02-13 00:24:14 +01:00
.npmignore cleanup 2016-02-09 17:06:26 +01:00
LICENSE fix(core): update 2019-02-13 00:24:14 +01:00
npmextra.json update npmextra.json: githost 2024-04-01 21:33:03 +02:00
package-lock.json 3.0.19 2019-02-14 11:07:58 +01:00
package.json switch to new org scheme 2023-07-10 02:41:14 +02:00
README.md fix(core): update 2019-02-13 00:29:32 +01:00
tsconfig.json update npmextra.json: githost 2024-04-01 21:33:03 +02:00

@pushrocks/gulp-browser

browserify and other goodies for gulp

Status for master

build status coverage report npm downloads per month Known Vulnerabilities TypeScript node JavaScript Style Guide

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.

Contributors

For further information read the linked docs at the top of this readme.

MIT licensed | © Lossless GmbH | By using this npm module you agree to our privacy policy

repo-footer