Pack JS code fast & easy
Pack JS code into a single bundle fast & easy.
We want sub-1000ms bundle time and sub-100ms incremental rebundle time for medium-sized applications (around 1000 modules). We are finally there!
You can install via npm (or yarn):
% npm install fpack
To produce a development bundle:
% fpack --development ./index.js
To produce a production bundle:
% fpack ./index.js \ --postprocess 'babel --presets env' \ --postprocess 'uglify -cm'
uglify-js packages must be
fpack --help to see the available invocation options:
Make sure you have
npm install -g esy
Now install dependencies & build everything:
Then to produce the executable:
To run tests:
To test compiled executables prepend with
esy x fpack
As merlin and others live inside sandboxed environment you'd want to execute your editor from inside it:
esy vim esy nvim esy vscode esy sublime
Alternatively you can enter into sandboxed shell:
And execute commands from there.
Currently release process is assumed to be performed on macOS with Docker installed. Docker is needed to produce Linux x64 binaries.
Run either of those:
% make release-patch % make release-minor % make release-major
After that succeeds follow the printed instructions.Опубликовать в Twitter Опубликовать в Facebook