Runs multiple scripts. For more information about Archery itself head to vknabel/Archery.
{
"scripts": {
"format": {
"arrow": "vknabel/BashArrow",
"command": "swiftformat ."
},
"generate": {
"arrow": "vknabel/ArcheryArrow",
"run": [
"readme",
"format",
"docs"
],
"scripts": {
"readme": {
"arrow": "vknabel/StencilArrow",
"template": "README.md.stencil",
"destination": "README.md",
"searchPaths": ["Scripts"]
},
"docs": {
"arrow": "vknabel/BashArrow",
"command": "if which jazzy >/dev/null; then jazzy; else echo Skip: Jazzy not available; fi"
}
}
}
}
}
Generate will execute all scripts in the given order.
$ archery generate
# Will run readme, format and docs
Name | Type | Default |
---|---|---|
run | [String] |
Required |
scripts | [String: AnyArrow]? |
[:] |
- Valentin Knabel, @vknabel, dev@vknabel.com, @vknabel on Twitter