👋 naive me with naive question again
I'm looking at the folder structure scafolding of js based and cargo based template (i check pnpm / yew / leptos / sycamore) with mobile added
it look more or less like this simplified version:
-proj-name/
|--src/
|--main.[rs/js/ts]
|--src-tauri/
|--gen/
|--android/
|--src/
|--main.[rs/js/ts]
|--build.rs
|--Cargo.toml
|
|--package.json <== actual tauri cli entry `pnpm/cargo/... tauro android dev`
|--index.html <== I'm guessing what's used to inject the WebView
how easy is it to change that scaffolding around ?
trying to toy with dotnet WASM around and basically dotnet works with .csproj which would be close to what that package.json or maybe cargo.toml + trunk.toml at the same time
that csproj is generally within the same folder as source files, ie: no sub src/ folder
most of the time dotnet repo have multiple "csproj" in fact like when you try to do code splitting which would be the equivalent of multiple library + one app in the same "git repo" each library would be it own csproj and the app (WASM here) as well
the JS equivalent is generally mentionned as "npm workspace mono repo" (even though i don't like the use of mono repo for that)
is there anything that should absolutly not be changed that tauri impose ?
I'm trying to wrap my head on something that would look like this (maybe / drafting it):
-proj-name/
|--dotnet-src/
|--foo.sln // SLN file are made to load the entire dotnet workspace in IDE
|--src/
|--bar/ // WASM PROJECT HERE --- this product static assets / wasm ....
|--kix/ // LIB GOES HERE
|--test/
|--bar.tests/
|--kix.test/
|--src-tauri/
|--gen/
|--android/
|--src/
|--main.[rs/js/ts]
|--build.rs
|--Cargo.toml
unsure where goes the index.html but i'm pretty sure it's generated by the dotnet scaffolding as well
I'm also not sure if the sln file shouldn't be at root level
but sadly dotnet run which is literally the equivalent of pnpm dev cannot "run" a solution (a solution is just about scaffolding)
the app is what's running, so dotnet run is to target a specific csproj either by being in the folder or a huge long ass dotnet run --project ./path/to/csproj/file/or/folder