Skip to content

Commit

Permalink
Move to vite and fix themes
Browse files Browse the repository at this point in the history
  • Loading branch information
danielfrg committed Sep 21, 2023
1 parent 4ad1926 commit 6139468
Show file tree
Hide file tree
Showing 74 changed files with 16,227 additions and 17,835 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ jobs:
- name: Build demo docs
run: |
task docs-build
task docs:build
- name: Cache website
id: cache-build
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@ jobs:
- name: Run tests
run: |
task test-all
task test:all
task report
- name: Codecov
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ celerybeat-schedule
.pydevproject

# mkdocs documentation
site
demo/dist

# mypy
Expand Down
29 changes: 12 additions & 17 deletions Taskfile.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ env:
tasks:
build:
cmds:
- hatch build
- rye build

check:
ignore_error: true
Expand All @@ -27,7 +27,7 @@ tasks:
cmds:
- pytest -k "{{.PYTEST_K}}"

test-all:
test:all:
cmds:
- pytest .

Expand All @@ -36,47 +36,42 @@ tasks:
- coverage xml
- coverage html

lockfiles:
cmds:
- pip-compile -q --resolver=backtracking -o requirements/pyproject.txt pyproject.toml --extra=test
- pip-compile -q --resolver=backtracking -o requirements/linting.txt requirements/linting.in

publish:
cmds:
- hatch publish

py-clean:
py:clean:
cmds:
- rm -rf .pytest_cache dist htmlcov test-results .ruff_cache
- rm -f .coverage coverage.xml
- find . -type f -name '*.py[co]' -delete
- find . -type d -name __pycache__ -exec rm -rf {} +
- find . -type d -name .ipynb_checkpoints -exec rm -rf {} +

docs-build:
docs:build:
dir: demo
cmds:
- mkdocs build

# ------------------------------------------------------------------------------
# Javascript

js-install:
js:install:
dir: js
cmds:
- npm install
- pnpm install

js-build:
js:build:
dir: js
cmds:
- npm run build
- pnpm run build

js-dev:
js:dev:
dir: js
cmds:
- npm run dev
- pnpm run dev

js-clean:
js:clean:
dir: js
cmds:
- npm run clean
- pnpm run clean
Loading

0 comments on commit 6139468

Please sign in to comment.