vacuum-packer
Plugin helper for makeshift-ctrl, it does four things and four things only:
- Builds the package into a single file using rollup
- Hashes the file and shoves it into manifest.json
- Extracts function names from the entry point and dumps it into a manifest.json
- Zips everything up (UNDER CONSTRUCTION)
Installation
It's recommended to install as a devDependency:
npm install --save-dev @eos-makeshift/vacuum-packer
Or a global executable:
npm install --global @eos-makeshift/vacuum-packer
Usage
Run through npx
or npm exec
if not installed globally
npx vacuum-packer
Using a Custom Configuration
vacuum-packer does some string-replacement on a default configuration file and saves it to your project root as rollup.config.js
, and it will always use the generated file afterwards. If your plugin requires something more specific, you should edit the generated rollup.config.js
to accomodate - see rollup documentation for specifics on how to do so.
Known Issues
rollup is known to not play well with platform-specific code, join the discord server if you would like to discuss this issue
TODO: fix example copy-pasta