Page MenuHomePhabricator

Wikidata Query Builder: replace vue-cli with vite and webpack with rollup
Closed, ResolvedPublic8 Estimated Story Points

Description

Our dependency graph is crazy. In order to reduce our dependencies to make security reviews easier, we should use Vite and Rollup instead.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript
Michael triaged this task as Medium priority.Apr 9 2021, 10:55 AM

Setting to medium for now. While it certainly would be nice to have, it won't change much for the current hike anymore. However, the learning from seeing if it can be made to work with vue2 could be useful for future projects.

The priority would be raised if the sec-team has a problem with the large amount of dependencies that comes with vue-cli (+webpack).

We may need https://github.com/underfin/vite-plugin-vue2 and also maybe see https://github.com/vitejs/vite/issues/305 for background discussions.

As I understand it, the wmf teams are using vite and vue2, right? We should have a look at their setup.

Change 703870 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[wikidata/query-builder@master] [Very WIP] Migrate to vite

https://gerrit.wikimedia.org/r/703870

Change 705353 had a related patch set uploaded (by Bereket teshome; author: Bereket teshome):

[wikidata/query-builder@master] Migration of vue-cli/webpack to vite/rollup

https://gerrit.wikimedia.org/r/705353

Tarrow renamed this task from Replace vue-cli with vite and webpack with rollup to Wikidata Query Builder: replace vue-cli with vite and webpack with rollup.Jul 27 2021, 9:03 AM

Change 703870 abandoned by Ladsgroup:

[wikidata/query-builder@master] [Very WIP] Migrate to vite

Reason:

In favor of I6bd9d9f5ad59945

https://gerrit.wikimedia.org/r/703870

Change 705353 merged by jenkins-bot:

[wikidata/query-builder@master] Migration of vue-cli/webpack to vite/rollup

https://gerrit.wikimedia.org/r/705353

Change 708651 had a related patch set uploaded (by Ladsgroup; author: Ladsgroup):

[wikidata/query-builder@master] Update toolforge cron to use the build repo

https://gerrit.wikimedia.org/r/708651

Change 708651 merged by jenkins-bot:

[wikidata/query-builder@master] Update toolforge cron to use the build repo

https://gerrit.wikimedia.org/r/708651