ncc
Compile a Node.js application into a single file. Supports TypeScript, binary addons and dynamic requires. More information: <https://github.com/vercel/ncc>.
Install
- All systems
-
curl cmd.cat/ncc.sh
- Debian
-
apt-get install tinyos-tools - Ubuntu
-
apt-get install tinyos-tools - Kali Linux
-
apt-get install tinyos-tools - Windows (WSL2)
-
sudo apt-get updatesudo apt-get install tinyos-tools - Raspbian
-
apt-get install tinyos-tools
Compile a Node.js application into a single file. Supports TypeScript, binary addons and dynamic requires. More information: <https://github.com/vercel/ncc>.
-
Bundle a Node.js application:
ncc build path/to/file.js -
Bundle and minify a Node.js application:
ncc build --minify path/to/file.js -
Bundle and minify a Node.js application and generate source maps:
ncc build --source-map path/to/file.js -
Automatically recompile on changes to source files:
ncc build --watch path/to/file.js -
Bundle a Node.js application into a temporary directory and run it for testing:
ncc run path/to/file.js -
Clean the `ncc` cache:
ncc clean cache
© tl;dr; authors and contributors