Actions
Feature #45350
closedmgr/dashboard: We should only reinstall npm packages if needed
% 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
.
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"
Updated by Ernesto Puerta about 3 years ago
- Project changed from mgr to Dashboard
- Category changed from 132 to General
Actions