Skip to content

Support arbitrary dev commands alongside static server #3654

@ascorbic

Description

@ascorbic

Is your feature request related to a problem? Please describe.

Some frameworks don't use a dev server, but do have a command to watch source files and compile them to static files and/or functions. These watch commands can't be specified as the dev command because they don't open a port, and because specifying a command disables the static server.

Describe the solution you'd like

A way to specify a non-server dev command in toml and framework-info that would run as a long-running process alongside the static and functions servers. This could be a simple as making this the behaviour if no target port has been specified.

Describe alternatives you've considered

Telling users to run the watch command in a separate terminal to the ntl dev command. Using npm-run-all or equivalent.

Additional context
This is inspired by Remix, which needs this.

Can you submit a pull request?

Yes

Pull requests are welcome! If you would like to help us add this feature, please check our
contributions guidelines.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions