GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — angular/yarn.lock.readme.md at master · ulebule/angular

Expand file tree

/

yarn.lock.readme.md

Copy path
More file actions
More file actions

Latest commit

 

History

History
History
25 lines (16 loc) · 1.3 KB
/

yarn.lock.readme.md

Copy path

File metadata and controls

25 lines (16 loc) · 1.3 KB
Raw
Copy raw file
Download raw file
Edit and raw actions

All of our npm dependencies are locked via the yarn.lock file for the following reasons:

  • our project has lots of dependencies which update at unpredictable times, so it's important that we update them explicitly once in a while rather than implicitly when any of us runs yarn install
  • locked dependencies allow us to reuse yarn cache on CircleCI, significantly speeding up our builds (by 5 minutes or more)
  • locked dependencies allow us to detect when node_modules folder is out of date after a branch switch which allows us to build the project with the correct dependencies every time

Before changing a dependency, do the following:

  • make sure you are in sync with upstream/master: git fetch upstream && git rebase upstream/master
  • ensure that your node_modules directory is not stale by running yarn install

To add a new dependency do the following: yarn add <packagename> --dev

To update an existing dependency do the following: run yarn upgrade <packagename>@<version|latest> --dev or yarn upgrade <packagename> --dev to update to the latest version that matches version constraint in package.json

To Remove an existing dependency do the following: run yarn remove <packagename>

Once you've changed the dependency, commit the changes to package.json & yarn.lock, and you are done.

You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.