-
Notifications
You must be signed in to change notification settings - Fork 252
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support workspaces and -p #719
Comments
is this meaning that we can use workspace with multiple crates to reduce the compilation time? |
You can already do that, assuming that workspace is an "all WASM" workspace. But you can split up your code like that already. Even adding the ability to use |
@ctron Do you have recommendations for the implementation? This is now a high priority item for me, since most of the repos I work will workspace examples or demos. Thanks! |
I would add a new And then, during the initialization of the configuration, perform the lookup, and change the base directory. Not actually change, but start processing with a different path. |
Something else that should come with this is that Trunk should detect changes in the workspace by default. No need for a Trunk.toml or watch list addition to the parent and member packages. |
Coming out of a discussion on #670 … it might make more sense to support workspace projects and the ability to run
trunk build -p frontend
, which would:frontend
crate inside the workspacetrunk build/watch/serve --config <frontend>/Trunk.toml
The text was updated successfully, but these errors were encountered: