Extensions
Extensions
Terrabuild comes with provided extensions. They can be used without defining a script
and allows to quickly starts. If you have custom requirements, you still can implement your own.
Provided extensions identifier starts with @
.
project @npm
target build {
@npm build { arguments: "--port=1234" }
@docker build
}
Extensions can be declared both in WORKSPACE and PROJECT. If you declare in WORKSPACE, extension is made global and can be used with provided configuration in PROJECT. At anytime, you can declare the extension at project level if you want to override global configuration.
Arguments
A command uses a mapping as parameter - it is optional. Keys and values are mapped to command arguments.
Last updated on