stable

Clone or download

Read-only

Since the *shrinkwrap hooks are not executed anymore, an alternative way to clean up the lockfiles from our local dependencies. The npm CLI is wrapped inside our own script and we detect that `npm install` or `npm update` has been called we clean up the lockfile right after. Also note that we needed to implement another workaround: npm 7 considers dependencies of packages in subfolder has extraneous so it prunes them automatically (as a result we end up with broken node_modules). To avoid that we replay a `npm install` in the packages located in subfolder. npm 7 being a bit faster and the dependencies being already cached it does not seems to impact the performances in my local benchmarks. Since we rewrap the npm CLI, adding an explicit hook in each packages is no more needed (at least, it will not be forgotten anymore...). The rewraping of the npm CLI is done automatically for all the users of the environment provided by the nix environment. Users not relying on nix will have to find a way to alias `npm` to `tools/utils/nix/build-tools/npm-cli-clean-up-local-tuleap-dep.sh` when they are working the Tuleap sources. Change-Id: Ib6ccb58759f3994722f97afccffca7ab34db32f1

Modified Files

Name
M package-lock.json +31575 −779 Go to diff View file
M package.json +1 −1 Go to diff View file
M plugins/agiledashboard/package-lock.json +565 −1 Go to diff View file
M plugins/agiledashboard/package.json +1 −2 Go to diff View file
M plugins/agiledashboard/scripts/kanban/package-lock.json +393 −1 Go to diff View file
M plugins/agiledashboard/scripts/kanban/package.json +3 −6 Go to diff View file
M plugins/agiledashboard/scripts/lib/card-fields/package-lock.json +77 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/package-lock.json +121 −1 Go to diff View file
M plugins/agiledashboard/scripts/planning-v2/package.json +1 −4 Go to diff View file
M plugins/api_explorer/package-lock.json +1482 −2 Go to diff View file
M plugins/artifactsfolders/package-lock.json +9 −2 Go to diff View file
M plugins/bugzilla_reference/package-lock.json +9 −2 Go to diff View file
M plugins/captcha/package-lock.json +9 −2 Go to diff View file
M plugins/cardwall/package-lock.json +9 −2 Go to diff View file
M plugins/crosstracker/package-lock.json +469 −5 Go to diff View file
M plugins/crosstracker/package.json +3 −4 Go to diff View file
M plugins/docman/package-lock.json +19 −1 Go to diff View file
M plugins/docman/package.json +1 −2 Go to diff View file
M plugins/document/package-lock.json +832 −5 Go to diff View file
M plugins/document/package.json +1 −2 Go to diff View file
M plugins/document_generation/package-lock.json +192 −9 Go to diff View file
M plugins/embed/package-lock.json +9 −2 Go to diff View file
M plugins/forumml/package-lock.json +391 −4 Go to diff View file
M plugins/forumml/package.json +1 −2 Go to diff View file
M plugins/frs/package-lock.json +548 −1 Go to diff View file
M plugins/frs/package.json +2 −3 Go to diff View file
M plugins/git/package-lock.json +543 −5 Go to diff View file
M plugins/git/package.json +4 −5 Go to diff View file
M plugins/gitlab/package-lock.json +191 −82 Go to diff View file
M plugins/graphontrackersv5/package-lock.json +226 −1 Go to diff View file
M plugins/graphontrackersv5/package.json +2 −3 Go to diff View file
M plugins/hudson/package-lock.json +101 −1 Go to diff View file
M plugins/hudson_git/package-lock.json +42 −1 Go to diff View file
M plugins/hudson_svn/package-lock.json +9 −2 Go to diff View file
M plugins/label/package-lock.json +63 −1 Go to diff View file
M plugins/label/package.json +2 −3 Go to diff View file
M plugins/ldap/package-lock.json +35 −1 Go to diff View file
M plugins/ldap/package.json +1 −2 Go to diff View file
M plugins/mediawiki/package-lock.json +10 −2 Go to diff View file
M plugins/oauth2_server/package-lock.json +38 −15 Go to diff View file
M plugins/openidconnectclient/package-lock.json +9 −2 Go to diff View file
M plugins/pluginsadministration/package-lock.json +19 −1 Go to diff View file
M plugins/pluginsadministration/package.json +2 −3 Go to diff View file
M plugins/proftpd/package-lock.json +9 −2 Go to diff View file
M plugins/program_management/package-lock.json +502 −5 Go to diff View file
M plugins/program_management/package.json +4 −5 Go to diff View file
M plugins/project_ownership/package-lock.json +9 −2 Go to diff View file
M plugins/projectlinks/package-lock.json +8 −1 Go to diff View file
M plugins/projectmilestones/package-lock.json +610 −5 Go to diff View file
M plugins/projectmilestones/package.json +2 −3 Go to diff View file
M plugins/pullrequest/package-lock.json +131 −2 Go to diff View file
M plugins/pullrequest/package.json +2 −3 Go to diff View file
M plugins/roadmap/package-lock.json +456 −5 Go to diff View file
M plugins/roadmap/package.json +3 −4 Go to diff View file
M plugins/statistics/package-lock.json +111 −1 Go to diff View file
M plugins/statistics/package.json +2 −3 Go to diff View file
M plugins/svn/package-lock.json +35 −1 Go to diff View file
M plugins/svn/package.json +1 −2 Go to diff View file
M plugins/taskboard/package-lock.json +535 −5 Go to diff View file
M plugins/taskboard/package.json +3 −4 Go to diff View file
M plugins/testmanagement/package-lock.json +1413 −2 Go to diff View file
M plugins/testmanagement/package.json +7 −8 Go to diff View file
M plugins/testplan/package-lock.json +570 −5 Go to diff View file
M plugins/testplan/package.json +2 −3 Go to diff View file
M plugins/timetracking/package-lock.json +382 −2 Go to diff View file
M plugins/timetracking/package.json +2 −3 Go to diff View file
M plugins/tracker/grammar/package-lock.json +33 −2 Go to diff View file
M plugins/tracker/package-lock.json +907 −7 Go to diff View file
M plugins/tracker/package.json +3 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/package-lock.json +54 −1 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/package.json +1 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package-lock.json +691 −2 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package.json +1 −2 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/package-lock.json +147 −1 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/package.json +1 −2 Go to diff View file
M plugins/tracker_encryption/package-lock.json +9 −2 Go to diff View file
M plugins/tuleap_synchro/package-lock.json +10 −1 Go to diff View file
M plugins/userlog/package-lock.json +9 −2 Go to diff View file
M plugins/velocity/package-lock.json +162 −1 Go to diff View file
M src/package-lock.json +2557 −7 Go to diff View file
M src/package.json +7 −8 Go to diff View file
M src/scripts/lib/angular-async/package-lock.json +27 −1 Go to diff View file
M src/scripts/lib/angular-tlp/package-lock.json +27 −1 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/package-lock.json +166 −1 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/package.json +2 −3 Go to diff View file
M src/scripts/lib/concurrency-limit-pool/package-lock.json +10 −1 Go to diff View file
M src/scripts/lib/date-helper/package-lock.json +10 −1 Go to diff View file
M src/scripts/lib/drag-and-drop/package-lock.json +10 −1 Go to diff View file
M src/scripts/lib/filter-table/package-lock.json +10 −1 Go to diff View file
M src/scripts/lib/gettext/package-lock.json +25 −1 Go to diff View file
M src/scripts/lib/html-escaper/package-lock.json +10 −1 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/package-lock.json +17 −1 Go to diff View file
M src/scripts/lib/list-picker/package-lock.json +33 −1 Go to diff View file
M src/scripts/lib/list-picker/package.json +2 −3 Go to diff View file
M src/scripts/lib/mention/package-lock.json +38 −2 Go to diff View file
M src/scripts/lib/mention/package.json +1 −2 Go to diff View file
M src/scripts/lib/tlp-fetch/package-lock.json +21 −1 Go to diff View file
M src/scripts/lib/tlp-fetch/package.json +1 −2 Go to diff View file
M src/scripts/lib/tlp-popovers/package-lock.json +21 −1 Go to diff View file
M src/scripts/lib/tooltip/package-lock.json +27 −1 Go to diff View file
M src/scripts/lib/tooltip/package.json +1 −2 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/package-lock.json +382 −3 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/package.json +1 −2 Go to diff View file
M src/scripts/tlp-doc/package-lock.json +43 −1 Go to diff View file
M src/scripts/tlp-doc/package.json +3 −6 Go to diff View file
M src/themes/BurningParrot/package-lock.json +9 −1 Go to diff View file
M src/themes/tlp/package-lock.json +66 −1 Go to diff View file
M src/themes/tlp/package.json +2 −3 Go to diff View file
M tools/utils/nix/build-tools/build-tools-js.nix +56 −9 Go to diff View file
A tools/utils/nix/build-tools/clean-lockfile-from-local-tuleap-dep.php +81 −0 Go to diff View file
M tools/utils/nix/build-tools/default.nix +5 −3 Go to diff View file
A tools/utils/nix/build-tools/npm-cli-clean-up-local-tuleap-dep.sh +9 −0 Go to diff View file
M tools/utils/nix/build-tools/npm/node-env.nix +8 −2 Go to diff View file
M tools/utils/nix/build-tools/npm/node-packages.json +1 −1 Go to diff View file
M tools/utils/nix/build-tools/npm/node-packages.nix +4 −4 Go to diff View file
D tools/utils/scripts/clean-lockfile-from-local-tuleap-dep.php +0 −54 Go to diff View file