-
Notifications
You must be signed in to change notification settings - Fork 2
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
Monorepo plugin #630
base: main
Are you sure you want to change the base?
Monorepo plugin #630
Conversation
a617d77
to
456ce34
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i'm very happy that this is so simple! though the proof is in the cp-content-pipeline pudding...
b451dfb
to
32c9c65
Compare
32c9c65
to
15d7b26
Compare
15d7b26
to
3c24d34
Compare
0e0ae70
to
5a89031
Compare
a1b1e34
to
a9b88bd
Compare
5a89031
to
52b4fc2
Compare
a9b88bd
to
5355541
Compare
52b4fc2
to
4f9a816
Compare
4f9a816
to
68a31e5
Compare
d2b5026
to
9a99482
Compare
53f2298
to
e90de8b
Compare
9a99482
to
66e744c
Compare
85ada6c
to
f23e8d1
Compare
… and log which packages (instead of logging a bunch of "no task configured for test:local: skipping assignment...")
2285d00
to
4d706d1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Tested it locally with a simple monorepo and worked perfectly 🎉 Easy to follow thanks to the nice comprehensive README
npm install --save-dev @dotcom-tool-kit/monorepo | ||
``` | ||
|
||
Add the plugin to your [Tool Kit configuration](https://github.com/financial-times/dotcom-tool-kit/blob/main/readme.md#configuration): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nitpick: This link doesn't seem to show me the configuration section
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
praise: plus one
just exports a task. if you want to run commands in your workspace packages, run that task at the toplevel, and it will run the same command in the workspace
example
.toolkitrc.yml
packages/something/.toolkitrc.yml
npx dotcom-tool-kit test:local
in the root runstest:local
inpackages/something
, which runsCypress
refactors some stuff in the core to expose some internals needed for the monorepo task→ make tool kit config loading agnostic of CWD #709collects workspace package command errors into an
AggregateError
to make use of the new(ish)AggregateError
handling better error formatting #716