stable

Clone or download

Read-only

request #23396: Use pnpm to replace npm and Lerna

The lockfile is not shared accross the workspace to avoid a dependencies to external plugins. In the Nix based environment the `npm` CLI is replaced by a shell script exiting with an error code to avoid misusages. A few dependencies are added in some packages. The way pnpm organizes the node_modules folder forces us to explicitly define all our dependencies. angular-locker, dragular and ckeditor4 are no more transformed by Babel when running the tests. Their format module combined with Babel, node and pnpm does not seem to play well together. Anyway they do not need to be transformed because they can be loaded in a node env directly. No changes is made to the production build setup. Change-Id: Iaa6b19b3489a34da3b5f64a363605376c25c2832

Modified Files

Name
M .gitattributes +1 −1 Go to diff View file
A .npmrc +1 −0 Go to diff View file
M Makefile +9 −8 Go to diff View file
A adr/0007-js-package-manager.md +79 −0 Go to diff View file
D package-lock.json +0 −50569 Go to diff View file
M package.json +2 −2 Go to diff View file
D plugins/agiledashboard/package-lock.json +0 −973 Go to diff View file
M plugins/agiledashboard/package.json +3 −6 Go to diff View file
A plugins/agiledashboard/pnpm-lock.yaml +362 −0 Go to diff View file
D plugins/agiledashboard/scripts/kanban/package-lock.json +0 −696 Go to diff View file
A plugins/agiledashboard/scripts/kanban/pnpm-lock.yaml +281 −0 Go to diff View file
D plugins/agiledashboard/scripts/lib/card-fields/package-lock.json +0 −117 Go to diff View file
M plugins/agiledashboard/scripts/lib/card-fields/package.json +3 −6 Go to diff View file
A plugins/agiledashboard/scripts/lib/card-fields/pnpm-lock.yaml +47 −0 Go to diff View file
D plugins/agiledashboard/scripts/planning-v2/package-lock.json +0 −195 Go to diff View file
A plugins/agiledashboard/scripts/planning-v2/pnpm-lock.yaml +91 −0 Go to diff View file
D plugins/api_explorer/package-lock.json +0 −2546 Go to diff View file
M plugins/api_explorer/package.json +3 −5 Go to diff View file
A plugins/api_explorer/pnpm-lock.yaml +982 −0 Go to diff View file
D plugins/artifactsfolders/package-lock.json +0 −11 Go to diff View file
M plugins/artifactsfolders/package.json +2 −5 Go to diff View file
D plugins/bugzilla_reference/package-lock.json +0 −11 Go to diff View file
M plugins/bugzilla_reference/package.json +2 −5 Go to diff View file
D plugins/captcha/package-lock.json +0 −11 Go to diff View file
M plugins/captcha/package.json +2 −5 Go to diff View file
D plugins/cardwall/package-lock.json +0 −11 Go to diff View file
M plugins/cardwall/package.json +2 −5 Go to diff View file
D plugins/crosstracker/package-lock.json +0 −807 Go to diff View file
M plugins/crosstracker/package.json +3 −6 Go to diff View file
A plugins/crosstracker/pnpm-lock.yaml +310 −0 Go to diff View file
D plugins/docman/package-lock.json +0 −24 Go to diff View file
M plugins/docman/package.json +2 −5 Go to diff View file
A plugins/docman/pnpm-lock.yaml +7 −0 Go to diff View file
D plugins/document/package-lock.json +0 −1439 Go to diff View file
M plugins/document/package.json +3 −6 Go to diff View file
A plugins/document/pnpm-lock.yaml +556 −0 Go to diff View file
D plugins/document_generation/package-lock.json +0 −347 Go to diff View file
M plugins/document_generation/package.json +3 −6 Go to diff View file
A plugins/document_generation/pnpm-lock.yaml +139 −0 Go to diff View file
D plugins/embed/package-lock.json +0 −11 Go to diff View file
M plugins/embed/package.json +3 −6 Go to diff View file
D plugins/forumml/package-lock.json +0 −687 Go to diff View file
M plugins/forumml/package.json +3 −6 Go to diff View file
A plugins/forumml/pnpm-lock.yaml +258 −0 Go to diff View file
D plugins/frs/package-lock.json +0 −960 Go to diff View file
M plugins/frs/package.json +3 −6 Go to diff View file
A plugins/frs/pnpm-lock.yaml +382 −0 Go to diff View file
D plugins/git/package-lock.json +0 −912 Go to diff View file
M plugins/git/package.json +3 −6 Go to diff View file
A plugins/git/pnpm-lock.yaml +355 −0 Go to diff View file
D plugins/gitlab/package-lock.json +0 −194 Go to diff View file
M plugins/gitlab/package.json +3 −6 Go to diff View file
A plugins/gitlab/pnpm-lock.yaml +86 −0 Go to diff View file
D plugins/graphontrackersv5/package-lock.json +0 −373 Go to diff View file
M plugins/graphontrackersv5/package.json +2 −5 Go to diff View file
A plugins/graphontrackersv5/pnpm-lock.yaml +164 −0 Go to diff View file
D plugins/hudson/package-lock.json +0 −165 Go to diff View file
M plugins/hudson/package.json +2 −5 Go to diff View file
A plugins/hudson/pnpm-lock.yaml +71 −0 Go to diff View file
M plugins/hudson/scripts/test-results-pie-chart.js +1 −1 Go to diff View file
M plugins/hudson/webpack.common.js +0 −6 Go to diff View file
D plugins/hudson_git/package-lock.json +0 −78 Go to diff View file
M plugins/hudson_git/package.json +2 −5 Go to diff View file
A plugins/hudson_git/pnpm-lock.yaml +33 −0 Go to diff View file
D plugins/hudson_svn/package-lock.json +0 −11 Go to diff View file
M plugins/hudson_svn/package.json +2 −5 Go to diff View file
D plugins/label/package-lock.json +0 −97 Go to diff View file
M plugins/label/package.json +3 −6 Go to diff View file
A plugins/label/pnpm-lock.yaml +46 −0 Go to diff View file
D plugins/ldap/package-lock.json +0 −51 Go to diff View file
M plugins/ldap/package.json +2 −5 Go to diff View file
A plugins/ldap/pnpm-lock.yaml +22 −0 Go to diff View file
D plugins/mediawiki/package-lock.json +0 −12 Go to diff View file
M plugins/mediawiki/package.json +2 −5 Go to diff View file
D plugins/oauth2_server/package-lock.json +0 −41 Go to diff View file
M plugins/oauth2_server/package.json +3 −6 Go to diff View file
A plugins/oauth2_server/pnpm-lock.yaml +21 −0 Go to diff View file
D plugins/openidconnectclient/package-lock.json +0 −11 Go to diff View file
M plugins/openidconnectclient/package.json +2 −5 Go to diff View file
D plugins/pluginsadministration/package-lock.json +0 −24 Go to diff View file
M plugins/pluginsadministration/package.json +2 −5 Go to diff View file
A plugins/pluginsadministration/pnpm-lock.yaml +7 −0 Go to diff View file
D plugins/proftpd/package-lock.json +0 −11 Go to diff View file
M plugins/proftpd/package.json +2 −5 Go to diff View file
D plugins/program_management/package-lock.json +0 −841 Go to diff View file
M plugins/program_management/package.json +3 −6 Go to diff View file
A plugins/program_management/pnpm-lock.yaml +320 −0 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/feature-moving.test.ts +2 −0 Go to diff View file
M plugins/program_management/scripts/program_management/src/helpers/feature-reordering.test.ts +2 −0 Go to diff View file
D plugins/project_ownership/package-lock.json +0 −11 Go to diff View file
M plugins/project_ownership/package.json +2 −5 Go to diff View file
D plugins/projectlinks/package-lock.json +0 −11 Go to diff View file
M plugins/projectlinks/package.json +2 −5 Go to diff View file
D plugins/projectmilestones/package-lock.json +0 −1057 Go to diff View file
M plugins/projectmilestones/package.json +3 −6 Go to diff View file
A plugins/projectmilestones/pnpm-lock.yaml +420 −0 Go to diff View file
D plugins/pullrequest/package-lock.json +0 −244 Go to diff View file
M plugins/pullrequest/package.json +3 −6 Go to diff View file
A plugins/pullrequest/pnpm-lock.yaml +108 −0 Go to diff View file
D plugins/roadmap/package-lock.json +0 −766 Go to diff View file
M plugins/roadmap/package.json +4 −7 Go to diff View file
A plugins/roadmap/pnpm-lock.yaml +293 −0 Go to diff View file
D plugins/statistics/package-lock.json +0 −175 Go to diff View file
M plugins/statistics/package.json +2 −5 Go to diff View file
A plugins/statistics/pnpm-lock.yaml +73 −0 Go to diff View file
D plugins/svn/package-lock.json +0 −51 Go to diff View file
M plugins/svn/package.json +2 −5 Go to diff View file
A plugins/svn/pnpm-lock.yaml +22 −0 Go to diff View file
D plugins/taskboard/package-lock.json +0 −925 Go to diff View file
M plugins/taskboard/package.json +3 −6 Go to diff View file
A plugins/taskboard/pnpm-lock.yaml +364 −0 Go to diff View file
D plugins/testmanagement/package-lock.json +0 −2160 Go to diff View file
M plugins/testmanagement/package.json +3 −6 Go to diff View file
A plugins/testmanagement/pnpm-lock.yaml +833 −0 Go to diff View file
D plugins/testplan/package-lock.json +0 −980 Go to diff View file
M plugins/testplan/package.json +3 −6 Go to diff View file
A plugins/testplan/pnpm-lock.yaml +378 −0 Go to diff View file
D plugins/timetracking/package-lock.json +0 −677 Go to diff View file
M plugins/timetracking/package.json +3 −6 Go to diff View file
A plugins/timetracking/pnpm-lock.yaml +246 −0 Go to diff View file
D plugins/tracker/grammar/package-lock.json +0 −49 Go to diff View file
A plugins/tracker/grammar/pnpm-lock.yaml +25 −0 Go to diff View file
D plugins/tracker/package-lock.json +0 −1453 Go to diff View file
M plugins/tracker/package.json +3 −6 Go to diff View file
A plugins/tracker/pnpm-lock.yaml +523 −0 Go to diff View file
D plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/package-lock.json +0 −77 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/package.json +3 −6 Go to diff View file
A plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/pnpm-lock.yaml +32 −0 Go to diff View file
D plugins/tracker/scripts/lib/artifact-modal/package-lock.json +0 −1142 Go to diff View file
M plugins/tracker/scripts/lib/artifact-modal/package.json +4 −6 Go to diff View file
A plugins/tracker/scripts/lib/artifact-modal/pnpm-lock.yaml +426 −0 Go to diff View file
D plugins/tracker/scripts/lib/rich-text-editor/package-lock.json +0 −239 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/package.json +3 −6 Go to diff View file
A plugins/tracker/scripts/lib/rich-text-editor/pnpm-lock.yaml +93 −0 Go to diff View file
D plugins/tracker_encryption/package-lock.json +0 −11 Go to diff View file
M plugins/tracker_encryption/package.json +2 −5 Go to diff View file
D plugins/tuleap_synchro/package-lock.json +0 −14 Go to diff View file
M plugins/tuleap_synchro/package.json +2 −5 Go to diff View file
D plugins/userlog/package-lock.json +0 −11 Go to diff View file
M plugins/userlog/package.json +2 −5 Go to diff View file
D plugins/velocity/package-lock.json +0 −273 Go to diff View file
M plugins/velocity/package.json +2 −5 Go to diff View file
A plugins/velocity/pnpm-lock.yaml +117 −0 Go to diff View file
A pnpm-lock.yaml +10002 −0 Go to diff View file
A pnpm-workspace.yaml +7 −0 Go to diff View file
M src/common/layout/IncludeAssets.php +2 −2 Go to diff View file
D src/package-lock.json +0 −12809 Go to diff View file
M src/package.json +4 −7 Go to diff View file
A src/pnpm-lock.yaml +3458 −0 Go to diff View file
D src/scripts/lib/angular-async/package-lock.json +0 −31 Go to diff View file
M src/scripts/lib/angular-async/package.json +2 −5 Go to diff View file
D src/scripts/lib/angular-tlp/package-lock.json +0 −46 Go to diff View file
M src/scripts/lib/angular-tlp/package.json +3 −6 Go to diff View file
A src/scripts/lib/angular-tlp/pnpm-lock.yaml +19 −0 Go to diff View file
D src/scripts/lib/ckeditor-image-upload/package-lock.json +0 −322 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/package.json +3 −6 Go to diff View file
A src/scripts/lib/ckeditor-image-upload/pnpm-lock.yaml +128 −0 Go to diff View file
D src/scripts/lib/concurrency-limit-pool/package-lock.json +0 −14 Go to diff View file
M src/scripts/lib/concurrency-limit-pool/package.json +3 −6 Go to diff View file
D src/scripts/lib/date-helper/package-lock.json +0 −14 Go to diff View file
M src/scripts/lib/date-helper/package.json +3 −6 Go to diff View file
D src/scripts/lib/drag-and-drop/package-lock.json +0 −14 Go to diff View file
M src/scripts/lib/drag-and-drop/package.json +3 −6 Go to diff View file
D src/scripts/lib/filter-table/package-lock.json +0 −14 Go to diff View file
M src/scripts/lib/filter-table/package.json +3 −6 Go to diff View file
D src/scripts/lib/gettext/package-lock.json +0 −45 Go to diff View file
M src/scripts/lib/gettext/package.json +2 −5 Go to diff View file
A src/scripts/lib/gettext/pnpm-lock.yaml +19 −0 Go to diff View file
D src/scripts/lib/html-escaper/package-lock.json +0 −14 Go to diff View file
M src/scripts/lib/html-escaper/package.json +2 −5 Go to diff View file
D src/scripts/lib/keyboard-shortcuts/package-lock.json +0 −29 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/package.json +3 −6 Go to diff View file
A src/scripts/lib/keyboard-shortcuts/pnpm-lock.yaml +13 −0 Go to diff View file
D src/scripts/lib/list-picker/package-lock.json +0 −38 Go to diff View file
M src/scripts/lib/list-picker/package.json +3 −6 Go to diff View file
A src/scripts/lib/list-picker/pnpm-lock.yaml +15 −0 Go to diff View file
D src/scripts/lib/mention/package-lock.json +0 −43 Go to diff View file
M src/scripts/lib/mention/package.json +2 −5 Go to diff View file
A src/scripts/lib/mention/pnpm-lock.yaml +7 −0 Go to diff View file
D src/scripts/lib/tlp-fetch/package-lock.json +0 −27 Go to diff View file
M src/scripts/lib/tlp-fetch/package.json +3 −6 Go to diff View file
A src/scripts/lib/tlp-fetch/pnpm-lock.yaml +7 −0 Go to diff View file
D src/scripts/lib/tlp-popovers/package-lock.json +0 −33 Go to diff View file
M src/scripts/lib/tlp-popovers/package.json +3 −6 Go to diff View file
A src/scripts/lib/tlp-popovers/pnpm-lock.yaml +13 −0 Go to diff View file
D src/scripts/lib/tooltip/package-lock.json +0 −31 Go to diff View file
M src/scripts/lib/tooltip/package.json +2 −5 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/jest.config.js +1 −1 Go to diff View file
D src/scripts/lib/vue-breadcrumb-privacy/package-lock.json +0 −675 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/package.json +3 −6 Go to diff View file
A src/scripts/lib/vue-breadcrumb-privacy/pnpm-lock.yaml +245 −0 Go to diff View file
M src/scripts/project/registration/src/components/Information/Input/ProjectInformationInputPrivacyList.test.ts +9 −0 Go to diff View file
D src/scripts/tlp-doc/package-lock.json +0 −60 Go to diff View file
A src/scripts/tlp-doc/pnpm-lock.yaml +23 −0 Go to diff View file
D src/themes/BurningParrot/package-lock.json +0 −12 Go to diff View file
D src/themes/tlp/package-lock.json +0 −103 Go to diff View file
M src/themes/tlp/package.json +2 −5 Go to diff View file
A src/themes/tlp/pnpm-lock.yaml +43 −0 Go to diff View file
M src/webpack.common.js +5 −3 Go to diff View file
M tests/Jenkinsfile +1 −1 Go to diff View file
M tests/actions.groovy +3 −3 Go to diff View file
M tests/e2e/distlp/wrap.sh +1 −1 Go to diff View file
M tests/e2e/full/wrap.sh +1 −1 Go to diff View file
M tests/jest/jest.base.config.js +6 −1 Go to diff View file
M tools/rpm/Makefile +3 −4 Go to diff View file
M tools/rpm/tuleap.rhel7.spec +2 −2 Go to diff View file
M tools/utils/githooks/pre-commit-03-stylelint +2 −2 Go to diff View file
M tools/utils/githooks/pre-commit-04-eslint +2 −2 Go to diff View file
M tools/utils/nix/build-tools/build-tools-js.nix +11 −35 Go to diff View file
D tools/utils/nix/build-tools/clean-lockfile-from-local-tuleap-dep.php +0 −81 Go to diff View file
D tools/utils/nix/build-tools/npm-cli-clean-up-local-tuleap-dep.sh +0 −10 Go to diff View file
D tools/utils/nix/build-tools/npm/node-packages.json +0 −1 Go to diff View file
D tools/utils/nix/build-tools/npm/node-packages.nix +0 −27 Go to diff View file
R tools/utils/nix/build-tools/npm/README.md Go to diff View file
R tools/utils/nix/build-tools/npm/default.nix Go to diff View file
R tools/utils/nix/build-tools/npm/generate-env.nix Go to diff View file
R tools/utils/nix/build-tools/npm/generate.sh Go to diff View file
R tools/utils/nix/build-tools/npm/node-env.nix Go to diff View file
A tools/utils/nix/build-tools/pnpm/node-packages.json +1 −0 Go to diff View file
A tools/utils/nix/build-tools/pnpm/node-packages.nix +27 −0 Go to diff View file