Skip to content

Commit

Permalink
fix: updated configuration for packages (#138)
Browse files Browse the repository at this point in the history
* feat: removes the uvicorn dependency

* feat: use new mixin

* feat: adds public folder

* chore: update deps

* feat: updated precommit

* feat: enable public dir config
  • Loading branch information
cofin committed Mar 21, 2024
1 parent f32e890 commit 6efbef4
Show file tree
Hide file tree
Showing 17 changed files with 490 additions and 664 deletions.
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ temp/
# built files from the web UI
src/app/domain/web/public
src/app/domain/web/public/hot
public
.vite
src/app/domain/web/static
public/hot
Expand Down
7 changes: 4 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ repos:
- id: mixed-line-ending
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.3.2
rev: v0.3.3
hooks:
- id: ruff
args:
Expand All @@ -36,9 +36,10 @@ repos:
- passlib[argon2]
- asyncpg
- asyncpg-stubs
- litestar[cli,jinja,jwt,redis,sqlalchemy,standard,structlog]
- litestar[jinja,jwt,redis,sqlalchemy,structlog]
- advanced-alchemy[uuid]>=0.8.0
- litestar-granian
- litestar-vite
- litestar-vite>=0.1.21
- litestar-saq
- types-python-jose
- types-click
Expand Down
1 change: 1 addition & 0 deletions deploy/docker/dev/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ COPY pyproject.toml pdm.lock README.md .pre-commit-config.yaml LICENSE Makefile
tailwind.config.cjs postcss.config.cjs components.json \
./
COPY scripts ./scripts/
COPY public ./public/
COPY resources ./resources/
RUN python -m venv --copies /workspace/app/.venv \
&& /workspace/app/.venv/bin/pip install cython pdm nodeenv \
Expand Down
1 change: 1 addition & 0 deletions deploy/docker/run/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ COPY pyproject.toml pdm.lock README.md .pre-commit-config.yaml LICENSE Makefile
tailwind.config.cjs postcss.config.cjs components.json \
./
COPY scripts ./scripts/
COPY public ./public/
COPY resources ./resources/
RUN python -m venv --copies /workspace/app/.venv \
&& /workspace/app/.venv/bin/pip install --quiet pdm nodeenv cython \
Expand Down
1 change: 1 addition & 0 deletions deploy/docker/run/Dockerfile.distroless
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,7 @@ COPY pyproject.toml pdm.lock README.md .pre-commit-config.yaml LICENSE Makefile
RUN python -m venv --copies /workspace/app/.venv \
&& /workspace/app/.venv/bin/pip install --quiet pdm nodeenv cython mypy
COPY scripts ./scripts/
COPY public ./public/
COPY resources ./resources/
RUN pdm install ${PDM_INSTALL_ARGS} --no-self \
&& pdm export ${PDM_INSTALL_ARGS} --without-hashes --prod --output=requirements.txt
Expand Down
2 changes: 2 additions & 0 deletions docker-compose.override.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,10 @@ x-development-volumes: &development-volumes
- ./tsconfig.json:/workspace/app/tsconfig.json
- ./tsconfig.node.json:/workspace/app/tsconfig.node.json
- ./package.json:/workspace/app/package.json
- ./package-lock.json:/workspace/app/package-lock.json
- ./vite.config.ts:/workspace/app/vite.config.ts
- ./resources:/workspace/app/resources
- ./public:/workspace/app/public
- ./components.json:/workspace/app/components.json
- ./tailwind.config.cjs:/workspace/app/tailwind.config.cjs
- ./postcss.config.cjs:/workspace/app/postcss.config.cjs
Expand Down
Loading

0 comments on commit 6efbef4

Please sign in to comment.