Closed
Bug 1345287
Opened 9 years ago
Closed 9 years ago
Document best practices for managing node.js dependencies
Categories
(Taskcluster :: Services, enhancement)
Taskcluster
Services
Tracking
(Not tracked)
RESOLVED
FIXED
People
(Reporter: garndt, Assigned: bstack)
Details
Tracker for adding documents describing the best practices for managing dependencies of node.js applications within TaskCluster.
Some notes from the email thread:
1) lock node version in package.json
2) move to use yarn.lock instead of npm-shrinkwrap.json
3) lock yarn version in package.json
Comment 1•9 years ago
|
||
4) document it in taskcluster-docs manual/devel/best-practices :)
| Assignee | ||
Comment 2•9 years ago
|
||
Progress is trackable at https://public.etherpad-mozilla.org/p/yarnification
| Assignee | ||
Comment 3•9 years ago
|
||
PRs have been submitted and approved. The libraries have all been merged to master and I'm just slowly rolling out the services now.
Comment 4•9 years ago
|
||
:my hero:
| Assignee | ||
Comment 5•9 years ago
|
||
This is now deployed everywhere except for cloud-mirror, where there is still a review out and docker-worker which is going to take a bit more work. I'm closing this bug. To follow docker-worker stuff, go to bug 1345638.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Comment 6•9 years ago
|
||
I'd recommend using `--frozen-lockfile` with yarn install for the Travis runs, since otherwise if someone updates package.json and forgets to update yarn.lock (either by using npm or by forgetting to git add etc), then the CI won't pick it up.
There's also https://github.com/travis-ci/travis-ci/issues/7395 for making Travis default to this.
Updated•7 years ago
|
Component: Documentation → Services
You need to log in
before you can comment on or make changes to this bug.
Description
•