Initialize a new Gatsby project with a gitignore in yarn workspaces

Chris Biscardi
InstructorChris Biscardi

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
~ a year ago

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

Chris Biscardi
Chris Biscardiinstructor
~ a year 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
~ a year ago

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

Will Johnson
Will Johnson
~ a year 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
~ a year ago

Hey Will,

Perfect, thanks a lot.

Merci Take care of yours Benoit