pinf-it-bundler
v0.1.13
Published
*Status: DEV*
Downloads
11
Readme
Status: DEV
Code Bundler
Code bundle standards are evolving but there are various differences across communities.
This library attempts to generate normalized code bundles for any code modules and packages that can be parsed by the Package Insight and Module Insight libraries.
This bundler is intended to replace the following tools and conventions:
- RequireJS
- RequireJS Optimizer
- almond
- component builder
- component require
- Grunt plugins and scripts that create concatenated and optimized code bundles
- Build scripts that create concatenated and optimized code bundles
Install
npm install pinf-it-bundler
Usage
const BUNDLER = require("pinf-it-bundler");
BUNDLER.bundleFile("<path>", {
distPath: "<target directory>"
}, function(err, descriptor) {
});
BUNDLER.bundlePackage("<path>", {
distPath: "<target directory>"
}, function(err, descriptor) {
});
Development
make test
Links
Integrate:
- https://github.com/philbooth/complexity-report
- https://github.com/douglascrockford/JSDev