shared
shared
is a group of utilities that are shared between runner, nodes, and triggers. It includes utilities for logging, error handling, and other common tasks and classes.
Guide to Contributing to shared in Nanoservice-ts
The Shared module in nanoservice-ts
contains common utilities used across the framework, including the Runner, Nodes, and Triggers. These utilities handle logging, error management, and other core functionalities. This guide will help you contribute to the shared utilities effectively.
Repository & Setup
The nanoservice-ts
framework is hosted at:
🔗 GitHub Repository
Clone the Repository**
Adding Features or Fixing Bugs
1. Create a Feature Branch
2. Make Your Changes
Modify the relevant files inside /core/shared/src/
.
Example: Adding a debug log level in logger.ts
3. Test Your Changes
Run unit tests to ensure no regressions:
4. Submit a Pull Request
Push your changes and open a PR on GitHub.
In the PR description, include:
- What was changed?
- Why was it changed?
- How was it tested?
Best Practices
✅ Keep utilities generic and reusable.
✅ Write unit tests for all new functions.
✅ Follow consistent logging and error handling patterns.
✅ Ensure backward compatibility with existing modules.
Final Notes
Contributing to Shared ensures that all components of nanoservice-ts
(Runner, Nodes, and Triggers) function smoothly and consistently. If you have any questions, open an issue or PR on GitHub! 🚀