Skip to content

Watch commands parameter => run command on watch triggered聽#569

Description

@adminy

Prerequisites

  • I have written a descriptive issue title
  • 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

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

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedHelp the community by contributing to this issuesemver-minorIssue or PR that should land as semver minor

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions