victorvoid / space-jekyll-template

A simple spacemacs template on jekyll. https://victorvoid.github.io/space-jekyll-template/
Other
400 stars 323 forks source link

yarn.lock file #25

Closed henriquenj closed 6 years ago

henriquenj commented 6 years ago

Hello.

First of all thanks for providing this template, it's really handy for people like me that do not have much experience in web development.

I was taking a look at the source tree, changing some details to suit my tastes and trying to understand how each tool was interacting with one another. I noticed there's the package.json with is read by npm install command and a yarn.lock which seems to be used by another dependency manager. Should I keep this file? What is the purpose of it? I don't see yarn being used anywhere in the template.

Thanks again for providing the template.

victorvoid commented 6 years ago

No problem! This project is not using npm to install the dependecies, it's using the Yarn, and you can use:

yarn install

Yarn is only a new CLI client that fetches modules from the npm registry. It's a new JavaScript package manager built by Facebook, Google, Exponent and Tilde. As can be read in the official announcement, its purpose is to solve a handful of problems that these teams faced with npm, namely:

Read more about: Announcing yarn 1.0

victorvoid commented 6 years ago

But you can use the npm to install the dependencies, and ignore the yarn.lock.

henriquenj commented 6 years ago

Thanks for the explanation. I read the documentation of yarn but didn't find anything about it on the template documentation, so I assumed yarn.lock was uploaded by mistake. But if yarn and npm are complementary to each other, there's no issue to be solved. So I'll be closing this.