forked from TimChild/reflex-clerk-api
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile.yml
More file actions
89 lines (72 loc) · 1.87 KB
/
Taskfile.yml
File metadata and controls
89 lines (72 loc) · 1.87 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
version: "3"
dotenv: [".env"]
tasks:
install:
cmds:
- uv sync --dev
- uv run pre-commit install
run:
dir: clerk_api_demo
cmds:
- uv run reflex run
run-docs:
cmds:
# Use non-default port to not clash with reflex backend
- uv run mkdocs serve -a localhost:9000
test:
deps:
- task: lint
- task: typecheck
cmds:
- uv sync --dev
- uv run playwright install chromium
- uv run pytest
lint:
cmds:
- uv run ruff check .
typecheck:
cmds:
- uv run pyright
bump-patch:
cmds:
- uvx hatch version patch
- uv lock
bump-minor:
cmds:
- uvx hatch version minor
- uv lock
bump-major:
cmds:
- uvx hatch version major
- uv lock
publish:
preconditions:
- sh: git status
cmds:
- git diff --quiet --staged || (echo "There are staged changes. They must be committed first" && exit 1)
- git diff --quiet || (echo "There are unstaged changes. They must be committed first." && exit 1)
- uvx hatch version | xargs -I {} git tag -a v{} -m "Release v{}"
- git push --follow-tags
pre-commit-all:
cmds:
- uv run pre-commit run --all-files
pre-commit-update:
cmds:
- uv run pre-commit autoupdate
manual-publish:
preconditions:
# Check environment variable
- sh: test -n "$PYPI_TOKEN"
msg: "PYPI_TOKEN is not set -- Add PYPI_TOKEN=... to .env file"
cmds:
- echo "Publishing to PyPI"
# - uv run reflex component build # Until https://github.com/reflex-dev/reflex/issues/5114 is resolved
- uvx reflex==0.7.5 component build
- uv publish --token $PYPI_TOKEN
manual-publish-docs:
cmds:
- uv run mkdocs gh-deploy --force
share:
desc: Share the component via the reflex library
cmds:
- uv run reflex component share