Skip to content

Latest commit

 

History

History
61 lines (46 loc) · 2.42 KB

DEPENDENCY_UPDATE.md

File metadata and controls

61 lines (46 loc) · 2.42 KB

What is this?

This documentation contains information on how to update package dependencies within this application. The documentation relies on that you are using Docker Engine to run this application.

Table of Contents

Quick steps

There are a few quick steps below on what you need to do to update the application package dependencies.

  1. Get bash to the container with make bash command
  2. Use ng update to check Angular core package updates and follow the instructions of this tool to update these packages
  3. Update rest of the packages, with one of the following commands:
    1. Use make update command to use interactive yarn update command to update all the packages.
    2. Use ncu to list remaining packages that can be updated. Then you can
      • Change the versions to package.json file and restart the application container - this will trigger yarn to install new versions of those packages and also updates yarn.lock file properly.
      • Or just use ncu -u to automatically update all of those packages and restart the application container.
    3. Run command yarn upgrade <package>@<version> which will update both package.json and yarn.lock. After doing this for all needed packages, restart the application container.
  4. Test that the application works.
  5. Profit ¯\_(ツ)_/¯

Major version update

When there is a Major version update (eg. 12.x.y to 13.0.0) within Angular we need to check proper instructions from official Angular Update Guide.

Other updates

From time to time it's a good idea to update library dependencies as well. You can do that with following command - that will update yarn.lock file.

yarn upgrade

External links and resources


Back to resources index - Back to main README.md