-
Notifications
You must be signed in to change notification settings - Fork 10.3k
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
[1.0] Question: have you looked at alternatives to gatsby-dev-cli? #1198
Comments
This is (I'm pretty sure) my dream setup yarnpkg/yarn#3294 Also might replace Lerna in time. I would have loved to use a more general purpose tool but nothing else existed and gatsby-dev-cli was the easiest kludge I could think of until workspaces is ready. |
Thanks for the reply! Why is # export your working copies of the packages
cd ~/gatsby-1.0
for f in packages/*; do (cd $f && npm link); done
# link it in new project
cd ~/my-project
npm link gatsby gatsby-link gatsby-plugin-google-analytics gatsby-plugin-manifest ...
# or
(for f in node_modules/gatsby*; do echo $(basename $f); done) | xargs npm link May have to disable hoisting in lerna though. |
The main thing that tripped me up is |
ouch, i see. |
Hey, totally off-topic, but...
I'd love to use lerna to manage monorepos.
gatsby-dev-cli
is great, but only works for Gatsby. As I understand it, its reason for living is to be a glorified npm-link that works for multiple packages.Have you tried looking for a more general-purpose tool?
The text was updated successfully, but these errors were encountered: