build(examples): generate workspace members variable (#1201)

* build(examples): add gen members task

* build(examples): include members variable
This commit is contained in:
Joseph Cruz 2023-06-17 18:19:01 -04:00 committed by GitHub
parent 24945f67bf
commit 3c6748b30d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -32,3 +32,16 @@ CARGO_MAKE_CRATE_WORKSPACE_MEMBERS = [
"todo_app_sqlite_viz",
"todomvc",
]
[tasks.gen-members]
workspace = false
description = "Generate the list of workspace members"
script = '''
examples=$(ls |
grep -v README.md |
grep -v Makefile.toml |
grep -v cargo-make |
grep -v gtk |
jq -R -s -c 'split("\n")[:-1]')
echo "CARGO_MAKE_CRATE_WORKSPACE_MEMBERS = $examples"
'''