Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a serve field to deno.json to specify the serve entry #25523

Open
LitoMore opened this issue Sep 9, 2024 · 0 comments
Open

Add a serve field to deno.json to specify the serve entry #25523

LitoMore opened this issue Sep 9, 2024 · 0 comments
Labels
suggestion suggestions for new features (yet to be agreed)

Comments

@LitoMore
Copy link

LitoMore commented Sep 9, 2024

How about adding a new field serve to deno.json to specify the serve entry?

// deno.json
{
+	"serve": "source/app.ts"
}

After this users should be able to start the service directly by running deno serve.

This is more convenient than a deno task serve. We can also add deno serve optional support in deno.json like deno fmt does.

What do you think?

@satyarohith satyarohith added the suggestion suggestions for new features (yet to be agreed) label Sep 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
suggestion suggestions for new features (yet to be agreed)
Projects
None yet
Development

No branches or pull requests

2 participants