- [deps] Update standard + snazzy
- [deps] Update tempfile
- [deps] Update ora
- [deps] Upgrade update-notifier
- [deps] Upgrade browserify and envify
- [deps] Misc. minor deps updates/cleanup
- [deps] Update uglify-es from 3.0.3 -> 3.0.4
- [deps] Update butternut from ^0.3.4 -> ^0.3.6
- [deps] Update Google Closure Compiler from 20170124.0.0 -> ^20170409.0.0
- [deps] Update babili preset from 0.0.11 -> 0.0.12
- [deps] Upgrade resolve-from to 3.0 and don't throw on unresolved entries
- Support using Butternut as minifier.
- The --output flag will now write the final result to stdout. This means that it by default will output the gzipped bundle to stdout by default.
- [deps] Replace the harmony branch of UglifyJS with the uglify-es package
- [deps] Now using the harmony branch of UglifyJS. Should be able to parse and compress a lot more modules.
- [deps] Update babel-preset-babili to
0.0.11
and google closure compiler to20170124.0.0
- Added
--env
flag withproduction
as default value. - Added
--output
flag that will output the compiled bundle. [deps]
Updated babel-preset-babili to0.0.5
[deps]
Updated Google Closure Compiler to20161024.0.0
-
Babili support! Weigh using babili as minifier with
-m babili
-
More bundlers with
-b
flag: weigh now supports specifying a bundler other than browserify with the-b
flag.So far there are two supported bundlers:
browserify
(default)concat
Just concat the modules. Will use node's module resolution on the modules given as arguments, but will not do any fancy recursive AST traversal to include any imported dependencies.
- Drop Node 0.12 support
- Internal refactor. No API changes.
- Fix a bug that caused local files not to be included in bundle
- Add update-notifier and notify about updates
- Minor formatting
- Improved warning when missing peer deps
- Made removing local node_modules cache folder default behavior and removed --clean option
- Add --version flag and show help when no packages are specified
✨ Closure compiler support! You can now minify using closure compiler by passing option --minifier closure
- Removed the possibility to pass subargs to UglifyJS. As a consequence, this is no longer possible:
weigh request -- --mangle --screw-ie-8 --comments
- Better error reporting when weighing a package with peer dependencies
- New options:
--minifier, -m
Specify which JavaScript minifier to use. Can be eitheruglify
for UglifyJS (default) orclosure
for Closure Compiler.--clean
Remove local node_modules cache before installing--no-minify
Don't minify--no-gzip
Don't gzip--uncompressed, -u
Shorthand for --no-minify --no-gzip
- Updated dependencies:
- browserify: 13.0.0
- uglify-js: 2.6.2
- ++
- TESTS OMG!
- Envify is now passed as a global transform so it will respect process.env.NODE_ENV
- Added --verbose flag
- Use
npm ls --json
to get the list of installed modules instead of undocumented/unsupportednpm install --json ...
- Misc. output improvements
- Improved support for different package formats (e.g. you can now do
weigh @myorg/mypkg@2.1.4/foo/bar.js
) - Misc code cleanup
- Pass --silent option to 'npm install' in order to prevent non-parseable stdout
- Fix a few lint errors
- Prettify eslint output
- Strip out non-JSON lines from npm stdout (Justin Deal)
- Map flat package object to an array for backwards compatability with npm 2.x (Craig Bilner)
- Supports package-relative module names, e.g.
weigh lodash/collection/map
- Misc readme and minor formatting fixes
- First release