A CommonJS Packager in Erlang.
- Bundle Common JS modules in parallel using Erlang processes. It is expected to work like browserify.
- Watch and incrementally rebuild Common JS modules concurrently using Erlang processes. It is expected to work like watchify.
- It's expected to be a tiny and simple CommonJS Packager. I do't plan to implement all the features like browserify.
- The core features of Common Js packager/loader was done(It can bundle the
test/commonjs/entry.js
now). - Watch and rebuild feature was done, Design Ref:
- If the changed js's dependencies also changed, process the js and it's dependent modules.
- If the dependencies of the changed js are not changed, only update the changed js itself.
The project structure was generated by rebar3 new lib commonjs
$ rebar3 compile
commonjs:bundle_single_js(Js_entry_file, Output_file)
commonjs:bundle_js_in_dir(Input_dir, Output_dir, Watch_mode)
rebar3 eunit