fastify / fastify/fastify-cli

Watch commands parameter => run command on watch triggered

Open
#569 1 comment 0 reactions 0 assignees View on GitHub
help wanted semver-minor
Dominant language
JavaScript
Stars
733
Forks
177
Avg merge
1d 20h
Merged PRs (30d)
3

Description

### Prerequisites

- [X] I have written a descriptive issue title
- [X] I have searched existing issues to ensure the feature has not already been requested

### 🚀 Feature Proposal

Every time there is a file change I would like to run the standard command on the code, unfortunately there is no arguments that watch takes in to configure it to do that, but it seems like a very useful feature if we could do something pre/post watch event like spotting any linting issues and reporting them in the terminal.

### Motivation

It seems like something a watch command should be able to do, since its not just a mechanism for hot server reload but sometimes it can be extra, like running a linter command.

### Example

```bash
fastify start index.js -wPV --ignore-watch='node_modules .git .vscode' --on-watch-change='standard --fix'
```

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.