Initialize a new Gatsby project with a gitignore in yarn workspaces

Share this video with your friends

Send Tweet

We initialize a new Gatsby project while covering a few of the tripping points such as ignoring .cache and public using a .gitignore file.

Lucas Homer
Lucas Homer
~ 5 years ago

How come you don't have a www/yarn.lock?

Chris Biscardi
Chris Biscardi(instructor)
~ 5 years ago

When using Yarn workspaces there is only one yarn.lock at the root of the repo rather than one for every package.

Benoit LEGER-DERVILLE
Benoit LEGER-DERVILLE
~ 5 years ago

Can you tell again the interest (or the main goal/purpose) of going through a yarn workspace?

Will Johnson
Will Johnson
~ 5 years ago

Hi Benoit, I asked this question on twitter

Here's the response I use yarn workspaces so that I can pull packages out and use them locally without publishing, or develop a set of packages I do publish, without changing the way in which I use them

Benoit LEGER-DERVILLE
Benoit LEGER-DERVILLE
~ 5 years ago

Hey Will,

Perfect, thanks a lot.

Merci Take care of yours Benoit

Luigi Claudio
Luigi Claudio
~ 3 years ago

Hey Chris, hi. Thank you so much for this course. I'm trying to take this course a step further and by following the todo app tutorial on the fauna docs, adding relationships between lists and todos. This can be achieved by using the @relation directive on the todo field in the TodoList type. I have a doubt now about how the resolver would look like in our GraphQL server? And couldn't find anything related to this online. Do you have any docs or examples to recommend in this regard? 🙏