Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69
Open
marcelovicentegc wants to merge 42 commits intomasterfrom
Open
Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69marcelovicentegc wants to merge 42 commits intomasterfrom
marcelovicentegc wants to merge 42 commits intomasterfrom
Conversation
# 1.0.0 (2024-06-25) ### Bug Fixes * **api:** bio response ([ef6dcd8](ef6dcd8)) * **cicd:** fix backend test cmd ([95056d6](95056d6)) * **cicd:** reference to unexisting step ([b50256b](b50256b)) * remove unused api view ([aac202f](aac202f)) ### Features * add backend app ([2b5a19e](2b5a19e)) * add guidelines to landing page ([fb66a5d](fb66a5d)) * add publications model ([486fce4](486fce4)) * add sentry ([ba2c11a](ba2c11a)) * create proxy to serve lazy loaded assets ([c983ac4](c983ac4)) * default superuser migration ([ce58974](ce58974)) * frontend and rest framework apps ([598d4a4](598d4a4)) * **frontend:** add publication page ([c717beb](c717beb)) * include rtc ([698f94b](698f94b)) * rest framework ([9a1fcec](9a1fcec)) * routing ([36283f4](36283f4)) * setup tailwind ([7ac38a9](7ac38a9)) * subscribers and biography models ([7dd911e](7dd911e)) * use unfold admin template ([a3179ff](a3179ff))
## [1.0.1](v1.0.0...v1.0.1) (2024-07-14) ### Bug Fixes * export subscriber and publication models ([7874f48](7874f48))
…, Jest)
Backend:
- Bump Django to ^5.1 (pyproject.toml + poetry.lock)
- Remove deprecated USE_L10N from settings (Django 5+)
- Update settings docstrings to stable docs URLs
- Add DEFAULT_AUTO_FIELD = BigAutoField to clear model warnings
Frontend:
- Fix Tailwind content paths to include .tsx (index.tsx, lib/**/*.{js,jsx,ts,tsx})
- Replace file-loader with Webpack 5 asset/resource
- Add Jest + ts-jest + jest-environment-jsdom and jest.config.js
- Add --passWithNoTests to test script for boilerplate
- Fix TS7011 in use-api.ts: explicit return types for .catch() callbacks
Docs:
- Add docs/STACK_ANALYSIS_AND_UPDATES.md with upgrade notes and AI/Tailwind notes
README: mention Django 5.1+, fix typo (non-opinionated)
Co-authored-by: Cursor <cursoragent@cursor.com>
- Dockerfile: use python:3.12-slim-bookworm (3.12-rc-slim-buster deprecated) - Dockerfile + workflows: poetry install --no-dev → --only main (Poetry 2) - deploy-vm.yml: add missing space between docker build-arg options Co-authored-by: Cursor <cursoragent@cursor.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Updates the boilerplate stack and fixes build/test validation for both backend and frontend.
Backend
^5.1(pyproject.toml + poetry.lock).USE_L10Nfromcore/settings/base.py(invalid in Django 5+).DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"to clearmodels.W042warnings.Frontend
.tsxandlib/**/*.{js,jsx,ts,tsx}so utilities used in React components are not purged.file-loaderwith built-inasset/resource(output underassets/[name][ext]).jest,ts-jest,jest-environment-jsdom,@types/jestandfrontend/jest.config.js; test script uses--passWithNoTestsso CI passes when there are no tests yet.lib/api/use-api.tsby adding explicit return types to.catch()callbacks andemptyPaginatedResponsefor the paginated error fallback.Docs
docs/STACK_ANALYSIS_AND_UPDATES.md: analysis of current vs latest versions (Django 6, React 19, Tailwind v4), deprecated/unnecessary deps, and notes on Tailwind as the default AI-friendly design system.README
Validation
poetry run python manage.py check✅ruff check✅TEST=1 poetry run python manage.py test✅pnpm run test:static✅pnpm run build✅pnpm run test✅Made with Cursor