ReleaseEngineering/How To/Mirror NPM Packages

< ReleaseEngineering‎ | How To
Revision as of 18:02, 10 October 2013 by Djmitche (talk | contribs) (Created page with "http://npm-mirror.pub.build.mozilla.org is a mirror of NPM packages that are used in build and test automation. When the time comes to add more files to this mirror, you'll n...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

http://npm-mirror.pub.build.mozilla.org is a mirror of NPM packages that are used in build and test automation.

When the time comes to add more files to this mirror, you'll need to know which package's dependencies need to be mirrored. The requester should point you at a package.json file (a manifest).

login to the releng web cluster admin host (relengwebadm.private.scl3.mozilla.com), sudo to root, and

 cd /data/releng/src/npm-mirror
 # download the manifest the requester pointed you at
 curl -o /tmp/package.json https://raw.github.com/mozilla-b2g/gaia/master/package.json
 ./mirror.sh /tmp/package.json

You should see it downloading a mess of packages. That's it!