joshwcomeau / guppy

🐠A friendly application manager and task runner for React.js
ISC License
3.27k stars 154 forks source link

Next.js start script - second long-running task #297

Open AWolf81 opened 5 years ago

AWolf81 commented 5 years ago

Describe the bug After merging #292 we will have a new bug that's introduced by Next.js. Next.js is adding a long-running task called start which is not properly handled by Guppy. We're only expecting one devServer task per project and here we're having two. Also the task will not check that the port is not already in use.

I think this is no high priority issue as the Next.js devServer is working as expected.

To Reproduce

  1. Create/Open a Next.js project
  2. Run the start task with an open TaskDetailsModal
  3. The message tells Task completed instead of Running

Expected behavior We need to allow many long running tasks (1 to n tasks) and display this accordingly. Also adding a isPortAvailable check is needed. This could be related to #296 as we need to store the isLongRunningTask info somewhere either in state or in a configuration file.

I'm imaging it should be like every task can be toggled from short- to long-running in a tasks setting dialog & also there should be an option to select if a port check is required. Not sure if that's too complicated but that way we can add user customizable tasks for advanced users later.

Todo

Screenshots

grafik

Environment: