Skip to content

Instantly share code, notes, and snippets.

@schickling
Created February 25, 2018 15:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save schickling/9a859906d4700638096c74e2472d15c4 to your computer and use it in GitHub Desktop.
Save schickling/9a859906d4700638096c74e2472d15c4 to your computer and use it in GitHub Desktop.
NPM Best Practices

NPM Best Practices

  • Use yarn instead of npm (at least for now)
  • Check yarn.lock into version control
  • yarn.lock file is automatically ignored from publishing

graphql related

  • Make graphql a peer dependency (+ dev dependency if needed) in libraries
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment