ProjectEvergreen/greenwood

Have develop command pick next randomly available port for dev and live reload servers

開放

#71 建立於 2019年5月1日

 (6 則留言) (0 個反應) (0 位負責人)JavaScript (15 個分叉)auto 404
CLIenhancementgood first issue

倉庫指標

星標
 (132 顆星)
PR 合併指標
 (平均合併 25天 20小時) (30 天內合併 29 個 PR)

描述

Type of Change

  • New Feature Request
  • Documentation / Website
  • Improvement / Suggestion
  • Bug
  • Other (please clarify below)

Summary

By default, instead of hardcoding the port for devServer it might be really nice to have it just pick the next available port on the user's local machine? This would in particular support running multiple instances of the dev server locally.

In addition, we should make sure to support this for the livereload port, since that will break in a similar use case (running multiple greenwood develop instances)

Details

Something similar to webpack-dev-server

Also, if we enable this, we might / should be able to run all our tests in parallel? Doesn't have to be in this PR, but a good fast follow if so! If we do run our tests in parallel, just need to be aware of this case

貢獻者指南