2019-12-30 10:45:28 +00:00
|
|
|
|
|
|
|
[env]
|
|
|
|
CARGO_MAKE_EXTEND_WORKSPACE_MAKEFILE = "true"
|
|
|
|
|
|
|
|
[env.sdk]
|
|
|
|
CARGO_MAKE_WORKSPACE_INCLUDE_MEMBERS = "duckscript_sdk;duckscript_cli"
|
|
|
|
|
|
|
|
[config]
|
2019-12-31 18:39:46 +00:00
|
|
|
main_project_member = "duckscript_cli"
|
2019-12-30 10:45:28 +00:00
|
|
|
additional_profiles = [
|
|
|
|
"ci-coverage-tasks",
|
|
|
|
"ci-all-build-tasks",
|
|
|
|
"publish-pre-cleanup"
|
|
|
|
]
|
|
|
|
|
|
|
|
[tasks.generate-sdk-docs]
|
|
|
|
workspace = false
|
2020-01-01 18:59:33 +00:00
|
|
|
command = "cargo"
|
2020-01-01 19:09:57 +00:00
|
|
|
args = [ "run", "--bin", "duckscript", "--", "./sdkdocs.ds" ]
|
2019-12-30 10:45:28 +00:00
|
|
|
|
|
|
|
[tasks.generate-readme]
|
|
|
|
script = [
|
|
|
|
'''
|
|
|
|
echo "generating readme file"
|
|
|
|
rm -f ./README.md
|
|
|
|
cat ./docs/_includes/README.md ./docs/_includes/nav.md ./docs/_includes/content.md >> README.md
|
|
|
|
sed -i 's,https://github.com/sagiegurari/duckscript/blob/master/.github,.github,g' ./README.md
|
|
|
|
'''
|
|
|
|
]
|
|
|
|
|
|
|
|
[tasks.workspace-docs]
|
|
|
|
dependencies = [
|
|
|
|
"generate-sdk-docs",
|
|
|
|
"generate-readme"
|
|
|
|
]
|
|
|
|
|
|
|
|
[tasks.install_local]
|
|
|
|
workspace = false
|
|
|
|
cwd = "./duckscript_cli"
|
|
|
|
command = "cargo"
|
|
|
|
args = [ "install", "--force", "--path", "." ]
|