@userfrosting/browserify-dependencies v4.0.1
browserify-dependencies
| Branch | Status |
|---|---|
| master |
Runs browserify against compatible dependencies in node_modules or whichever other folder you specify, outputting the results as UMD bundles in a specified location. Makes no attempt to patch node internals, Browserify options may however be provided for this purpose.
Install
npm i -D @userfrosting/browserify-dependenciesUsage
IMPORTANT This is an ES module package targeting NodeJS
^12.17.0 || >=13.2.0, refer to the NodeJS ESM docs regarding how to correctly import. ESM loaders like@babel/loaderoresmlikely won't work as expected.
import { browserifyDependencies } from "@userfrosting/browserify-dependencies";
const options = {
dependencies: [
"foo",
"bar"
],
inputDir: "./node_modules",
outputDir: "./browser_modules"
};
browserifyDependencies(options)
.then(() => console.log("Done! ✨"))
.catch(() => console.log("Things have not gone according to plan... 🔥"));Process modules are wrapped with UMD to allow consumption by most environments, exports in the browser are available via window.[normalized-package-name].
API
API documentation is regenerated for every release using API Extractor and API Documenter. The results reside in docs/api.
Release process
Generally speaking, all releases should first traverse through alpha, beta, and rc (release candidate) to catch missed bugs and gather feedback as appropriate. Aside from this however, there are a few steps that MUST always be done.
- Make sure
CHANGELOG.mdis up to date. - Update version via
npmlikenpm version 3.0.0ornpm version patch. npm publish.- Create release on GitHub from tag made by
npm version.
License
4 years ago
5 years ago
6 years ago
6 years ago
6 years ago
6 years ago
6 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago
7 years ago