MuckRock / squarelet

MuckRock User Service
GNU Affero General Public License v3.0
11 stars 10 forks source link

Vite migration #116

Closed eyeseast closed 4 weeks ago

eyeseast commented 1 month ago

This touches lots for files. It consolidates all frontend code in the frontend directory and builds everything with Vite.

It adds one Python dependency: https://github.com/MrBin99/django-vite?tab=readme-ov-file

It adds a JS dependency -- Vite -- and removes lots of others.

Node is upgraded to v22. Install it locally to run npm scripts.

To test locally, run:

docker compose up

# in another tab
npm run build
inv manage collectstatic
allanlasser commented 1 month ago

Also looks like an issue where image files are missing. I get this warning when running collectstatic:

?: (staticfiles.W004) The directory '/app/squarelet/static' in the STATICFILES_DIRS setting does not exist.

Allan profile

eyeseast commented 1 month ago

@allanlasser The collectstatic issue should be fixed now. Please check.