Project

General

Profile

Actions

Feature #45350

closed

mgr/dashboard: We should only reinstall npm packages if needed

Added by Tiago Melo almost 4 years ago. Updated about 3 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
General
Target version:
-
% Done:

0%

Source:
Tags:
Backport:
Reviewed:
Affected Versions:
Pull request ID:

Description

Angular 9 requires the compilation of all npm packages used in build.
This is only done once and cached in node_modules.

Since we require to strictly install the packages in package-lock.json,
we normally use npm ci to install the packages.

The problem with this is that npm ci will remove node_modules before install the packages, thus also removing angular cache.
To prevent this I add a new npm scripts, that will verify if package-lock.json is modified, and only if it is, runs npm ci.

Actions #1

Updated by Tiago Melo almost 4 years ago

  • Status changed from In Progress to Closed

We can achieve this by running "make mgr-dashboard-frontend-deps"

Actions #2

Updated by Ernesto Puerta about 3 years ago

  • Project changed from mgr to Dashboard
  • Category changed from 132 to General
Actions

Also available in: Atom PDF