From 4609ff6eb11c778c6e71b90915ccf0abd63b68d5 Mon Sep 17 00:00:00 2001 From: S4NKALP Date: Thu, 28 May 2026 09:32:52 +0545 Subject: [PATCH] feat(src/djinit/templates/project): add optional Tailwind, HTMX, and database URL dependenciesAdd conditional dependencies for Tailwind, HTMX, and database URL in pyproject.toml template; update dockerignore to include staticfiles; fix Dockerfile CMD newline handling. Details: - New Features: Conditional Tailwind, HTMX, and database URL dependencies - Enhancements: Updated dockerignore to include staticfiles - Bug Fixes: Fixed Dockerfile CMD newline handling --- src/djinit/templates/project/Dockerfile-tpl | 2 +- src/djinit/templates/project/dockerignore-tpl | 2 +- src/djinit/templates/project/pyproject.toml-tpl | 6 ++++++ 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/src/djinit/templates/project/Dockerfile-tpl b/src/djinit/templates/project/Dockerfile-tpl index d61ebe4..8095b7f 100644 --- a/src/djinit/templates/project/Dockerfile-tpl +++ b/src/djinit/templates/project/Dockerfile-tpl @@ -41,4 +41,4 @@ RUN python manage.py collectstatic --noinput || true EXPOSE 8000 -CMD ["gunicorn", "[[ module_name ]].wsgi:application", "--bind", "0.0.0.0:8000"] \ No newline at end of file +CMD ["gunicorn", "[[ module_name ]].wsgi:application", "--bind", "0.0.0.0:8000"] diff --git a/src/djinit/templates/project/dockerignore-tpl b/src/djinit/templates/project/dockerignore-tpl index 505d698..c24ccdb 100644 --- a/src/djinit/templates/project/dockerignore-tpl +++ b/src/djinit/templates/project/dockerignore-tpl @@ -23,4 +23,4 @@ node_modules *.log db.sqlite3 media -staticfiles \ No newline at end of file +staticfiles diff --git a/src/djinit/templates/project/pyproject.toml-tpl b/src/djinit/templates/project/pyproject.toml-tpl index 10a2ef2..37e9a4f 100644 --- a/src/djinit/templates/project/pyproject.toml-tpl +++ b/src/djinit/templates/project/pyproject.toml-tpl @@ -20,6 +20,12 @@ dependencies = [ # @IF database_type == 'postgresql' "psycopg[binary]", # @ENDIF +# @IF use_tailwind + "django-tailwind-cli", +# @ENDIF +# @IF use_htmx + "django-htmx", +# @ENDIF # @IF use_database_url "dj-database-url", # @ENDIF