stable

Clone or download

Read-only

Allow to bundle a pure JS app with Vite

For now, only pure JS app are taken into account. App needing to bundle CSS indepently will be taken into account in a future commit. As a demonstration the document_generation app is now built with Vite. Part of request #23415: Allow to bundle app with Vite Change-Id: Iaa1551ad963951995c8ff25c0b11fc5a4ca42ae2

Modified Files

Name
M .eslintrc.js +7 −1 Go to diff View file
M plugins/document_generation/include/document_generationPlugin.php +3 −3 Go to diff View file
M plugins/document_generation/package.json +2 −2 Go to diff View file
M plugins/document_generation/scripts/tracker-report-action/src/index.ts +5 −15 Go to diff View file
R plugins/document_generation/webpack.prod.js Go to diff View file
D plugins/document_generation/webpack.common.js +0 −46 Go to diff View file
M src/common/layout/IncludeAssets.php +1 −1 Go to diff View file
R plugins/document_generation/webpack.dev.js Go to diff View file
A src/common/layout/IncludeViteAssets.php +74 −0 Go to diff View file
M src/common/layout/JavascriptAsset.php +1 −6 Go to diff View file
M src/scripts/tuleap/gettext/gettext-init.d.ts +1 −0 Go to diff View file
M src/scripts/tuleap/gettext/gettext-init.js +5 −1 Go to diff View file
A tests/unit/common/Layout/IncludeViteAssetsTest.php +72 −0 Go to diff View file
M tools/utils/scripts/vite-configurator.ts +42 −3 Go to diff View file