Skip to content

Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69

Open
marcelovicentegc wants to merge 42 commits intomasterfrom
emdash/django-react-typescript-update-8pc
Open

Stack update: Django 5.1, Tailwind/Webpack/Jest fixes, validation#69
marcelovicentegc wants to merge 42 commits intomasterfrom
emdash/django-react-typescript-update-8pc

Conversation

@marcelovicentegc
Copy link
Owner

Summary

Updates the boilerplate stack and fixes build/test validation for both backend and frontend.

Backend

  • Django bumped to ^5.1 (pyproject.toml + poetry.lock).
  • Removed deprecated USE_L10N from core/settings/base.py (invalid in Django 5+).
  • Updated settings docstrings to current stable docs URLs.
  • Set DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField" to clear models.W042 warnings.

Frontend

  • Tailwind: content paths now include .tsx and lib/**/*.{js,jsx,ts,tsx} so utilities used in React components are not purged.
  • Webpack: replaced file-loader with built-in asset/resource (output under assets/[name][ext]).
  • Jest: added jest, ts-jest, jest-environment-jsdom, @types/jest and frontend/jest.config.js; test script uses --passWithNoTests so CI passes when there are no tests yet.
  • TypeScript: fixed TS7011 in lib/api/use-api.ts by adding explicit return types to .catch() callbacks and emptyPaginatedResponse for 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

  • Stack table updated to "Django 5.1+"; typo fix ("non-opinionated").

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

semantic-release-bot and others added 12 commits June 25, 2024 08:25
# 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>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants