Create Tilt resources from package.json scripts in a yarn workspace.
load('ext://yarn', 'yarn')
yarn('path/to/package.json')
See Configuration for parameter descriptions. Function parameters are merged with tilt_config.json values.
load('ext://yarn', 'yarn')
yarn('path/to/package.json', auto_init=[], enabled_workspaces=[], enabled_scripts=[])
yarn_auto_init
( List [ str ] ) – List of scripts to automatically run. The full resource name is expected like<script>-<workspace>
.yarn_enabled_workspaces
( List [ str ] ) - List of workspaces to enable.yarn_enabled_scripts
( List [ str ] ) - List of scripts to enable for yarn. Common examples includestart
,test
,build
.