-
Notifications
You must be signed in to change notification settings - Fork 14
Expand file tree
/
Copy pathJustfile
More file actions
69 lines (58 loc) · 1.91 KB
/
Justfile
File metadata and controls
69 lines (58 loc) · 1.91 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
default:
just --list
fetch_tags:
git fetch origin --tags --force
poetry_sync:
poetry lock --no-update && poetry install --sync
pr pr_number:
git fetch -fu origin refs/pull/{{pr_number}}/head:pr/{{pr_number}}
git checkout pr/{{pr_number}}
pretty-ts:
npx prettier "src/**/*.{ts,js,json}" --write
pretty-py:
uv run ruff check --select I --fix src/clipper && uv run ruff format src/clipper
pretty-py-check:
uv run ruff format --check src/clipper
test-py update="false":
uv run pytest src/clipper -s --cov=src/clipper --cov-report=html -m "not slow" \
{{ if update == "true" { "--snapshot-update" } else { "" } }}
test-py-slow:
uv run pytest src/clipper --cov=src/clipper --cov-report=html
test-py-update:
just test-py true
lint-py:
uv run ruff check src/clipper
lint-py-fix:
uv run ruff check src/clipper --fix
poetry-sync:
poetry lock --no-update && poetry install --sync
build-ts:
npx tsc --watch
build-ts-ne:
npx tsc --noEmit --watch
build-ts-p:
run-s -c build-ts pretty
build-py $UV_PREVIEW="1":
uv run pyinstaller ./src/clipper/yt_clipper.py --icon=../../../assets/image/pepe-clipper.gif -F --workpath ./dist/py/work/ --distpath ./dist/py/ --specpath ./dist/py/spec
build-all:
run-s -c build-ts-p build-py
bundle-w:
npx parcel watch --no-scope-hoist --no-optimize --no-hmr
bundle-tc-w:
run-p -c build-ts-ne bundle-w
lint-ts:
npx tsc --noEmit && npx eslint ./src/markup ./src/command-palette
bundle-prod:
just lint-ts && npx parcel build --no-scope-hoist --no-optimize
clean-dist:
rm -r ./dist/*
clean-sandbox:
rm -r ./sandbox/*
version-patch:
npx commit-and-tag-version -r patch && uv run bumpit -p patch || true
version-minor:
npx commit-and-tag-version -r minor && uv run bumpit -p minor || true
version-major:
npx commit-and-tag-version -r major && uv run bumpit -p major || true
pigar:
pigar -P ./src/clipper -p ./src/clipper/requirements.txt --without-referenced-comments