Security News
Fluent Assertions Faces Backlash After Abandoning Open Source Licensing
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
gulp-browserify-watchify-glob
Advanced tools
Create a Browserify bundler with multiple entries based on a glob pattern. Rebuild incrementally watching for changes, including additions and deletions of files that match the glob pattern.
Create a Browserify bundler with multiple entries based on a glob pattern. Rebuild incrementally watching for changes, including additions and deletions of files that match the glob pattern.
npm i gulp-browserify-watchify-glob -D
# or
yarn add gulp-browserify-watchify-glob --dev
import globbedBrowserify from 'gulp-browserify-watchify-glob';
// or
const globbedBrowserify = require('gulp-browserify-watchify-glob');
// Use as a drop-in replacement for browserify.
const unittestBundler = globbedBrowserify({
entries: 'src/**/*-test.js',
debug: true,
// cache and packageCache default to {}
}).transform(/* whatever */);
// Something you want to do at least once, but maybe multiple times
// with the same bundler.
export function runTests() {
return unittestBundler.bundle().pipe(/* whatever */);
}
// Keep track of file changes, file additions and file deletions.
export function watch() {
// Tell the bundler that you want to runTests on changes to any
// file that matches the glob pattern.
const startWatchingTests = unittestBundler.watch(runTests);
// startWatchingTests is a task that wraps runTests.
startWatchingTests();
// Magic is now happening: runTests will run again when you add,
// modify or delete a file that matches the glob pattern.
// Shorthand for the above, if you don't need to combine the
// startWatchingTests task in a gulp.series or a gulp.parallel.
unittestBundler.watch(runTests)();
// Maybe you want to kick off with a different task than the one
// you'll be running on every change.
const wrapsKickoff = unittestBundler.watch(runTests, kickoff);
wrapsKickoff();
// This works as long as kickoff calls unittestBundler.bundle().
}
1.0.0-3 — 2019-10-03 (hotfix)
.close()
method from watchify so that additional file watching logic introduced by gulp-browserify-watchify-glob is also stopped.FAQs
Create a Browserify bundler with multiple entries based on a glob pattern. Rebuild incrementally watching for changes, including additions and deletions of files that match the glob pattern.
The npm package gulp-browserify-watchify-glob receives a total of 7 weekly downloads. As such, gulp-browserify-watchify-glob popularity was classified as not popular.
We found that gulp-browserify-watchify-glob demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
Fluent Assertions is facing backlash after dropping the Apache license for a commercial model, leaving users blindsided and questioning contributor rights.
Research
Security News
Socket researchers uncover the risks of a malicious Python package targeting Discord developers.
Security News
The UK is proposing a bold ban on ransomware payments by public entities to disrupt cybercrime, protect critical services, and lead global cybersecurity efforts.