Skip to content
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

use workspaces #2308

Merged
merged 4 commits into from Oct 2, 2017
Merged

use workspaces #2308

merged 4 commits into from Oct 2, 2017

Conversation

jquense
Copy link
Contributor

@jquense jquense commented Oct 2, 2017

Uses yarn workspaces! gatsby dev now requires yarn ^1.0.2

@KyleAMathews
Copy link
Contributor

Deploy preview failed.

Built with commit 36e2fed

https://app.netlify.com/sites/using-glamor/deploys/59d28095a6188f0bce89ea2e

@KyleAMathews
Copy link
Contributor

KyleAMathews commented Oct 2, 2017

Deploy preview failed.

Built with commit 924dd6e

https://app.netlify.com/sites/using-glamor/deploys/59d2b689df99532e5cfb1d85

@gatsbybot
Copy link
Collaborator

Deploy preview ready!

Built with commit 36e2fed

https://deploy-preview-2308--gatsbygram.netlify.com

@gatsbybot
Copy link
Collaborator

gatsbybot commented Oct 2, 2017

Deploy preview ready!

Built with commit 924dd6e

https://deploy-preview-2308--gatsbygram.netlify.com

Copy link
Contributor

@KyleAMathews KyleAMathews left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looking good!

Need to update Yarn on Netlify for all the sites for this to work. Will do this later.

@@ -0,0 +1,12 @@
"use strict";
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

For some reason the .gitignore file isn't ignoring this

@@ -48,7 +51,7 @@
"lint": "npm run check-versions && eslint --ext .js,.jsx --ignore-path .gitignore .",
"lint:flow": "babel-node scripts/flow-check.js",
"plop": "plop",
"bootstrap": "yarn && npm run check-versions && lerna bootstrap",
"bootstrap": "yarn && npm run check-versions && lerna run prepublish",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we want to run prepublish for bootstrapping? Perhaps this is a problem just with my workflow but I'm always watching the repo to do changes so don't need to compile files as part of bootstrap. Or does prepublish do more than just compile now?

Though probably it makes sense as the default. With workspaces I can just run yarn now to install everything everywhere right?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's safe thing to do, and required for tests to pass. The issue is on packages that depend on each other, if gatsby-foo needs gatsby-foo jest isn't going to resolve gatsby-foo to the src directory so the compiled files need to exist. It's not strictly required to get going tho. You can just run yarn and start working and everything will be installed 👍

@KyleAMathews
Copy link
Contributor

Thanks!

@KyleAMathews KyleAMathews merged commit 3449cbf into master Oct 2, 2017
@KyleAMathews KyleAMathews deleted the workspaces branch October 2, 2017 21:58
mwfrost pushed a commit to mwfrost/gatsby that referenced this pull request Apr 20, 2023
* use workspaces

* Update ignore file
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants