yarn
Provides build/test helpers for projects using yarn and a package.json.
Defaults outputs to dist/** and infers dependencies from package.json to link Terrabuild graphs.
Available Commands
| Command | Description |
|---|---|
| test | Runs the test script via yarn test. |
| run | Runs an arbitrary yarn script (yarn <command>). |
| install | Installs packages with yarn install, optionally updating the lockfile or ignoring engines. |
| build | Runs the build script via yarn build. |
| <command> | Runs an arbitrary yarn command (Terrabuild action name is forwarded to yarn). |
Project Initializer
Infers project metadata from package.json (dependencies and default outputs).
project {
@yarn { }
}Equivalent to:
project {
ignores = [ "node_modules/**" ]
outputs = [ "dist/**" ]
}Last updated on