Skip to content

Commit

Permalink
storybook: tweak the storybook tiltfile so that it works on preview.t…
Browse files Browse the repository at this point in the history
…ilt.build (#5550)
  • Loading branch information
nicks authored Mar 2, 2022
1 parent 0c0aade commit 14c17d7
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions web/storybook.tiltfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,50 +9,60 @@ load("ext://uibutton", "cmd_button", "location")

enable_feature("disable_resources")

local_resource(
'install',
'yarn install')

local_resource(
'storybook',
serve_cmd='yarn run storybook -- --ci',
links=['http://localhost:9009'],
links=['http://localhost:9009/'],
readiness_probe=probe(http_get=http_get_action(port=9009)),
labels=["frontend"])
labels=["frontend"],
resource_deps=['install'])

local_resource(
'check:prettier',
'cd .. && make prettier',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
labels=["lint"])
labels=["lint"],
resource_deps=['install'])

local_resource(
'check:tsc',
'node_modules/.bin/tsc -p .',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
allow_parallel=True,
labels=["lint"])
labels=["lint"],
resource_deps=['install'])

local_resource(
'check:check-js',
'cd .. && make check-js',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
allow_parallel=True,
labels=["lint"])
labels=["lint"],
resource_deps=['install'])

local_resource(
'test:test-js',
'cd .. && make test-js',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
labels=["test"],
allow_parallel=True)
allow_parallel=True,
resource_deps=['install'])

local_resource(
'test:update-snapshots',
'CI=true yarn test -u',
auto_init=False,
trigger_mode=TRIGGER_MODE_MANUAL,
labels=["test"])
labels=["test"],
resource_deps=['install'])

# Add button versions for the local resources on Storybook resource

Expand Down

0 comments on commit 14c17d7

Please sign in to comment.