mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
build(examples): generate workspace members variable (#1201)
* build(examples): add gen members task * build(examples): include members variable
This commit is contained in:
parent
24945f67bf
commit
3c6748b30d
1 changed files with 13 additions and 0 deletions
|
@ -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"
|
||||
'''
|
||||
|
|
Loading…
Reference in a new issue