chore: add nodemon dev script for hot-reload during development
Type of change
- Bug Fix
- Feature
- Pipeline
- Test
- Documentation
Does this introduce a change in the core logic?
- No
- Yes
Does this introduce a change in the cloud provider implementation, if so which cloud?
- AWS
- Anthos
- Azure
- GCP
- IBM
Does this follow conventional commits spec?
- No
- Yes
Have you set the target Milestone?
- No
- Yes
Have you set the no-detached-pipeline label?
- No
- Yes
Summary
- Add
npm run devscript that uses nodemon to watch for file changes and automatically rebuild/restart the server - Add nodemon ^3.1.10 as a devDependency
Motivation
This improves the developer experience by enabling hot-reload during local development. When source files are modified, nodemon will automatically trigger a rebuild and restart the server, eliminating the need to manually stop and restart after each change.
Usage
npm install
npm run dev
Test plan
-
Run
npm installto install nodemon -
Run
npm run devto start the development server -
Modify a file in
src/and verify the server automatically rebuilds and restarts