HomePhabricator

Do not bust cached npm-installed dependencies when source files change

Description

Do not bust cached npm-installed dependencies when source files change

Summary:
Similar to D9157, this patch reduces cache busts related to npm packages
and improves rebuild time by ~55% (~70 seconds on my machine).

Depends on D9157

Test Plan:

Run this test plan before and after this patch:

docker build --no-cache -t cashtab .

Change a Cashtab source file, then:

docker build -t cashtab .

Sanity check:

docker run -it -p 9000:80 cashtab

Reviewers: #bitcoin_abc, majcosta

Reviewed By: #bitcoin_abc, majcosta

Subscribers: majcosta

Differential Revision: https://reviews.bitcoinabc.org/D9158

Details

Provenance
jasonbcoxAuthored on Feb 3 2021, 21:19
jasonbcoxPushed on Feb 4 2021, 16:06
Reviewer
Restricted Project
Differential Revision
D9158: Do not bust cached npm-installed dependencies when source files change
Parents
rABC6daeacab5488: Do not bust cached apt-install'd dependencies when source files change
Branches
Unknown
Tags
Unknown