Skip to content

Commit

Permalink
Fix tilt config to allow running deps in parallel (#10438)
Browse files Browse the repository at this point in the history
Allows devtools to be started sooner in the cloud dev flow. It currently
waits until all other resources have completed before starting the devtools
steps.
  • Loading branch information
ryanjduffy authored Mar 14, 2024
1 parent 360966c commit 71b7c92
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Tiltfile
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
def devtools(working_directory=config.main_dir, api='https://api.replay.io/v1/graphql', subscriptions='wss://api.replay.io/v1/graphql', dispatch='wss://dispatch.replay.io'):
local_resource("devtools deps", "yarn install", deps=["package.json"], dir=working_directory)
local_resource("devtools webpack", serve_cmd="rm -rf .next && yarn dev", deps=[], resource_deps=["devtools deps"], serve_dir=working_directory, serve_env={"NEXT_PUBLIC_API_URL": api, "NEXT_PUBLIC_DISPATCH_URL": dispatch, "NEXT_PUBLIC_API_SUBSCRIPTION_URL": subscriptions})
def devtools(working_directory=config.main_dir, api='https://api.replay.io/v1/graphql', subscriptions='wss://api.replay.io/v1/graphql', dispatch='wss://dispatch.replay.io', resource_deps=[]):
local_resource("devtools deps", "yarn install", deps=["package.json"], dir=working_directory, allow_parallel=True)
local_resource("devtools webpack", serve_cmd="rm -rf .next && yarn dev", deps=[], resource_deps=["devtools deps"] + resource_deps, serve_dir=working_directory, serve_env={"NEXT_PUBLIC_API_URL": api, "NEXT_PUBLIC_DISPATCH_URL": dispatch, "NEXT_PUBLIC_API_SUBSCRIPTION_URL": subscriptions})

0 comments on commit 71b7c92

Please sign in to comment.