stable

Clone or download

Read-only

request #22680: Manage typechecking and .d.ts generation with Vite plugins

This reduce a bit the amount of boilerplate needed when creating a new library and centralize the configuration. The .d.ts files are generated with vite-dts [0]. It does that by re-exporting the entry module which is nice in our context since the sources are always available. The typechecking is handled via vite-plugin-checker [1] which work a bit like the fork-ts-checker-webpack-plugin in the Webpack world. [0] https://github.com/alloc/vite-dts [1] https://github.com/fi3ework/vite-plugin-checker Change-Id: I4b414b1284dcf9e6bfeea26fa4d1263f4e7cb63e

Modified Files

Name
M package-lock.json +680 −1056 Go to diff View file
M package.json +2 −1 Go to diff View file
M plugins/agiledashboard/scripts/lib/card-fields/vite.config.ts +17 −14 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Subtask/SubtaskHeader.vue +1 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/GanttTask.vue +1 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/components/Gantt/Task/TaskHeader.vue +1 −1 Go to diff View file
M plugins/roadmap/scripts/roadmap-widget/src/dev-arrows/vite.config.ts +7 −4 Go to diff View file
M plugins/tracker/scripts/lib/artifact-ckeditor-image-upload/vite.config.ts +10 −7 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/.gitignore +0 −1 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/package.json +2 −7 Go to diff View file
M plugins/tracker/scripts/lib/rich-text-editor/vite.config.ts +17 −14 Go to diff View file
M plugins/tracker/tsconfig.json +1 −1 Go to diff View file
M src/scripts/lib/angular-async/vite.config.ts +15 −12 Go to diff View file
M src/scripts/lib/angular-tlp/vite.config.ts +16 −13 Go to diff View file
M src/scripts/lib/ckeditor-image-upload/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/concurrency-limit-pool/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/concurrency-limit-pool/package.json +2 −7 Go to diff View file
M src/scripts/lib/concurrency-limit-pool/vite.config.ts +12 −6 Go to diff View file
M src/scripts/lib/date-helper/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/date-helper/package.json +2 −7 Go to diff View file
M src/scripts/lib/date-helper/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/drag-and-drop/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/drag-and-drop/package.json +2 −7 Go to diff View file
M src/scripts/lib/drag-and-drop/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/filter-table/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/filter-table/package.json +2 −7 Go to diff View file
M src/scripts/lib/filter-table/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/gettext/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/gettext/package.json +2 −7 Go to diff View file
M src/scripts/lib/gettext/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/html-escaper/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/package.json +2 −7 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/src/wildcards/handle-wildcards.test.ts +1 −1 Go to diff View file
M src/scripts/lib/keyboard-shortcuts/vite.config.ts +9 −6 Go to diff View file
M src/scripts/lib/list-picker/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/list-picker/package.json +2 −7 Go to diff View file
M src/scripts/lib/list-picker/vite.config.ts +26 −23 Go to diff View file
M src/scripts/lib/mention/vite.config.ts +15 −12 Go to diff View file
M src/scripts/lib/tlp-fetch/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/tlp-fetch/package.json +2 −7 Go to diff View file
M src/scripts/lib/tlp-fetch/vite.config.ts +15 −12 Go to diff View file
M src/scripts/lib/tlp-popovers/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/tlp-popovers/package.json +2 −7 Go to diff View file
M src/scripts/lib/tlp-popovers/src/index.ts +1 −0 Go to diff View file
M src/scripts/lib/tlp-popovers/vite.config.ts +15 −12 Go to diff View file
M src/scripts/lib/tooltip/vite.config.ts +15 −12 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/.gitignore +0 −1 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/package.json +2 −7 Go to diff View file
M src/scripts/lib/vue-breadcrumb-privacy/vite.config.ts +17 −14 Go to diff View file
M tools/utils/scripts/tsconfig-for-libraries.json +0 −1 Go to diff View file
M tools/utils/scripts/vite-configurator.ts +15 −1 Go to diff View file