Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
fix bundle inclusions
Browse files Browse the repository at this point in the history
  • Loading branch information
renardeinside committed Feb 21, 2024
1 parent 9adc8c4 commit 4318411
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 4 deletions.
12 changes: 10 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,14 @@ docs-deploy:
cd docs/deployment && terraform apply --var-file=.tfvars
@echo "Done."

docs-build:
docker build --no-cache -t schorle-docs -f docs/Dockerfile.docs .

docs-serve: docs-build
@echo "Serving docs..."
docker run -p 4444:4444 -it schorle-docs
@echo "Done."

fmt:
hatch run lint:fmt .

Expand All @@ -41,9 +49,9 @@ serve-docs:

build-bundle:
@echo "Building bundle..."
cd src/typescript && yarn build
yarn --cwd src/typescript build
@echo "Done."

watch-bundle:
@echo "Watching bundle..."
cd src/typescript && yarn watch
yarn --cwd src/typescript watch
2 changes: 1 addition & 1 deletion docs/Dockerfile.docs
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ RUN mkdir -p /app/raw
WORKDIR /app
COPY docs/landing.py /app/docs/landing.py
COPY raw /app/raw
ENTRYPOINT ["uvicorn", "docs.landing:app", "--host", "0.0.0.0", "--port", "4444"]
#ENTRYPOINT ["uvicorn", "docs.landing:app", "--host", "0.0.0.0", "--port", "4444"]
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,9 @@ source = "vcs"
[tool.hatch.build.targets.wheel]
packages = ["src/python/schorle"]

[tool.hatch.build.targets.wheel.force-include]
"src/python/schorle/assets/bundle.js" = "schorle/assets/bundle.js"

[tool.hatch.build.hooks.vcs]
version-file = "src/python/schorle/_version.py"

Expand Down
2 changes: 1 addition & 1 deletion src/python/schorle/__init__.py
Original file line number Diff line number Diff line change
@@ -1 +1 @@

from schorle._version import __version__, __version_tuple__ # noqa: F401

0 comments on commit 4318411

Please sign in to comment.