-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathMakefile
More file actions
99 lines (73 loc) · 3.3 KB
/
Makefile
File metadata and controls
99 lines (73 loc) · 3.3 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
90
91
92
93
94
95
96
97
98
99
.PHONY: js docs test docs-serve docs-build docs-llm docs-gh marimo-notebook marimo-sessions
install:
# install the build tool for JS written in Golang
curl -fsSL https://esbuild.github.io/dl/v0.19.11 | sh
uv venv --allow-existing
uv pip install -e '.[test,docs]'
npm i
test:
uv pip install -e '.[test]'
uv run pytest --ignore=tests/test_browser
test-browser:
uv pip install -e '.[test-browser]'
uv run playwright install chromium
uv run pytest tests/test_browser -v
test-all:
uv pip install -e '.[test-browser]'
uv run playwright install chromium
uv run pytest -v
pypi: clean
uv build
uv publish
js-edgedraw:
./esbuild --watch=forever --bundle --format=esm --outfile=wigglystuff/static/edgedraw.js js/edgedraw.js
js-gamepad:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/gamepad-widget.js js/gamepad/widget.js
js-keystroke:
# build the keyboard shortcut widget bundle
./esbuild --bundle --format=esm --outfile=wigglystuff/static/keystroke-widget.js js/keystroke/widget.js
js-copybutton:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/copybutton.js js/copybutton/widget.tsx
js-talk:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/talk-widget.js js/talk/widget.js
js-driver-tour:
cp js/driver-tour/styles.css wigglystuff/static/driver-tour.css
./esbuild --bundle --format=esm --loader:.css=text --outfile=wigglystuff/static/driver-tour.js js/driver-tour/widget.js
js-paint:
cp js/paint/styles.css wigglystuff/static/paint.css
./node_modules/.bin/esbuild js/paint/widget.tsx --bundle --format=esm --outfile=wigglystuff/static/paint.js --minify
js-pulsar-chart:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/pulsar-chart.js js/pulsar-chart/widget.js
js-neo4j-widget:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/neo4j-widget.js js/neo4j-widget/widget.js
js-diff-viewer:
./esbuild --bundle --format=esm --outfile=wigglystuff/static/diff-viewer.js js/diff-viewer/widget.js --minify
js-scatter-widget:
cp js/scatter-widget/styles.css wigglystuff/static/scatter-widget.css
./esbuild --bundle --format=esm --outfile=wigglystuff/static/scatter-widget.js js/scatter-widget/widget.js
js-spline-draw:
cp js/spline-draw/styles.css wigglystuff/static/spline-draw.css
./esbuild --bundle --format=esm --outfile=wigglystuff/static/spline-draw.js js/spline-draw/widget.js
js-parallel-coords:
cp js/parallel-coords/styles.css wigglystuff/static/parallel-coords.css
./node_modules/.bin/esbuild js/parallel-coords/widget.jsx --bundle --format=esm --outfile=wigglystuff/static/parallel-coords.js --minify --loader:.jsx=jsx
clean:
rm -rf .ipynb_checkpoints build dist drawdata.egg-info
docs:
mkdocs build -f mkdocs.yml 2>&1 | grep -v '^\[WARNING\] Div at'
uv run python scripts/copy_docs_md.py
docs-serve:
uv run python -m http.server --directory site
docs-build:
DISABLE_MKDOCS_2_WARNING=true uv run mkdocs build -f mkdocs.yml 2>&1 | grep -v '^\[WARNING\] Div at'
uv run python scripts/copy_docs_md.py
docs-llm:
uv run python scripts/copy_docs_md.py
docs-gh: docs-build
uv run mkdocs gh-deploy -f mkdocs.yml --dirty
marimo-sessions:
-uv run marimo export session demos/
-uv run marimo export session examples/
marimo-notebook:
uv run marimo -y export html-wasm notebook.py --output docs/index.html --mode edit
uv run python -m http.server 8000 --directory docs