DescriptionFreeze the versions of all nodejs dependencies.
Add a generated npm-shrinkwrap.json file that freezes the current versions
of all nodejs dependecies, even the recursive ones.
Update the package.json file keeping the currently fixed package versions.
Also remove the misleading "engines" entry (see
<https://npmjs.org/doc/json.html#engines>), and remove the useless distinction
between "dependencies" and "devDependencies" (see
<https://npmjs.org/doc/json.html#devDependencies>).
Add a documentation section, "Updating the nodejs dependencies" at the
bottom of the docs/hacking.rst file, explaining how this works and how to
update dependencies to new versions. Please check that the whole thing is
understandable and workable: you will use this stuff, after all. :-)
Sorry for the change size: it's mainly due to the 1k+ lines of the generated
npm-shrinkwrap.json file. No need to go over that one, just look at the
changes in the docs/hacking.rst and package.json files.
https://code.launchpad.net/~teknico/juju-gui/harden-npm-dependencies/+merge/158659
(do not edit description out of merge proposal)
Patch Set 1 #
Total comments: 4
Patch Set 2 : Freeze the versions of all nodejs dependencies. #
Total comments: 4
Patch Set 3 : Freeze the versions of all nodejs dependencies. #Patch Set 4 : Freeze the versions of all nodejs dependencies. #
MessagesTotal messages: 7
|