Skip to content

Add Vue tooling

Sarah German requested to merge 53-vue-tools into main

What does this MR do and why?

  • Adds utilities to compile Vue SFCs through Vite
  • Upgrades Yarn

Closes gitlab-org/gitlab-docs#1389 (closed) and #53 (closed).

How to set up and validate locally

Numbered steps to set up and validate the change are strongly suggested.

  1. Check out this branch and run yarn to make sure dependencies are up-to-date
  2. Run a Yarn build: yarn run build. You should see output similar to this:
$ yarn run build
vite v5.1.5 building for production...
✓ 1 modules transformed.
themes/gitlab-docs/static/vite/main.js  0.29 kB │ gzip: 0.24 kB
✓ built in 429ms

Check for: No errors, main.js gets written to themes/gitlab-docs/static/vite and is ignored by Git

Optionally, cherry-pick the survey banner component MR (!40 (604c6622)) onto this branch and run make view to see an actual component get compiled (update data/banner.yaml locally to actually see the banner). Or just skip this, we'll test each component as they come in. 😄

Merge request acceptance checklist

This checklist encourages us to confirm any changes have been analyzed to reduce risks in quality, performance, reliability, security, and maintainability.

Edited by Sarah German

Merge request reports