Open archiewood opened 1 year ago
do you mind if I work on the following issue: I want to be able to run dev environment from the monorepo root folder and be able to run it all with one or two commands?
I think this issue is related to working on evidence projects (not the evidence monorepo itself) but if you want to take a stab at improving the dev experience in this repository we're always open to pull requests!
This is what blocks us from using evidence. We have an Nx monorepo of our project and you can't run evidence in it. It breaks the CLI.
What's your setup?
Can you npm --prefix ./my-evidence-folder run sources
etc?
Hey @archiewood
It's an Nx monorepo. It has a directory called sites
and I created a monorepo/sites/business-analysis
directory for evidence.
This is what I get:
➜ npm --prefix ./sites/business-analysis run sources
> my-evidence-project@0.0.1 sources
> evidence sources
Could not find evidence plugins file. (Look at /Users/shakedlokits/Documents/Projects/monorepo/evidence.plugins.yaml)
It's looking in the wrong directory for the evidence.plugins.yaml
file, even though I gave it a prefix.
Which folder did you store your evidence.plugins.yaml in? Root or business-analysis?
I stored it in monorepo/sites/business-analysis
as it is unrelated to the other teams in the company.
@archiewood any updates?
Don't have a fix slated yet
in the meantime are you able to cd
into the correct directory and run from there?
Will also happily review PRs if this feature is important to you!
This may work if you use the VS Code extension's built-in commands. If you are in your monorepo root and click Start Evidence (or use Cmd/Ctrl + R
) it should start evidence in the subfolder it's in
Ability to have multiple evidence projects that live inside one repo and have the dev experience run smoothly.