Getting Started
Installation
Install snodeb as a development or global dependency in your Node.js project:
- NPX
- Script
- Global
Run directly without installing using npx
. This is very useful during a ci job to not have an impact on node_modules while bundling.
npm install -D snodeb
npm install -g snodeb
Basic Usage
If you're lucky the default options might work for you! But you probably should look into the configuration options.
- NPX
- Script
- Global
npx snodeb
Add snodeb as a script
"scripts": {
"build:deb": "snodeb"
}
Run the script
npm run build:deb
Run the script
snodeb
The tool will create a .deb package in the deb
directory.
Example Project
For a comprehensive usage example, check out the examples/kitchen-sink
directory in the GitHub repository.
Next Steps
- Learn about all available configuration options
- Understand how to customize systemd services
- Explore build optimization for smaller package sizes
- Check out tips and best practices for production deployments