@@ -72,9 +72,8 @@ reactpy = "reactpy._console.cli:entry_point"
7272
7373[[tool .hatch .build .hooks .build-scripts .scripts ]]
7474commands = [
75- " hatch --env default run javascript:build" ,
76- ' python "src/build_scripts/copy_dir.py" "src/js/node_modules/@pyscript/core/dist" "src/reactpy/static/pyscript"' ,
77- ' python "src/build_scripts/copy_dir.py" "src/js/node_modules/morphdom/dist" "src/reactpy/static/morphdom"' ,
75+ ' hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/@pyscript/core/dist" "src/reactpy/static/pyscript"' ,
76+ ' hatch --env default run "src/build_scripts/copy_dir.py" "src/js/node_modules/morphdom/dist" "src/reactpy/static/morphdom"' ,
7877]
7978artifacts = []
8079
@@ -84,13 +83,15 @@ artifacts = []
8483[tool .hatch .envs .hatch-test .scripts ]
8584run = [
8685 ' hatch --env default run "src/build_scripts/install_playwright.py"' ,
86+ " hatch --env default run javascript:build --dev" ,
8787 " hatch --env default build -t wheel" ,
8888 " pytest{env:HATCH_TEST_ARGS:} {args}" ,
8989]
9090run-cov = [
91- ' hatch --env default run "src/build_scripts/delete_old_coverage.py"' ,
9291 ' hatch --env default run "src/build_scripts/install_playwright.py"' ,
92+ " hatch --env default run javascript:build --dev" ,
9393 " hatch --env default build -t wheel" ,
94+ ' hatch --env default run "src/build_scripts/delete_old_coverage.py"' ,
9495 " coverage run -m pytest{env:HATCH_TEST_ARGS:} {args}" ,
9596]
9697cov-combine = " coverage combine"
@@ -198,22 +199,15 @@ test = ['hatch run javascript:build_event_to_object', 'bun test']
198199build = [
199200 ' hatch run "src/build_scripts/clean_js_dir.py"' ,
200201 ' bun install --cwd "src/js"' ,
201- ' hatch run javascript:build_event_to_object' ,
202- ' hatch run javascript:build_client' ,
203- ' hatch run javascript:build_app' ,
202+ ' hatch run javascript:build_event_to_object {args} ' ,
203+ ' hatch run javascript:build_client {args} ' ,
204+ ' hatch run javascript:build_app {args} ' ,
204205]
205206build_event_to_object = [
206- ' bun install --cwd "src/js/packages/event-to-object"' ,
207- ' bun run --cwd "src/js/packages/event-to-object" build' ,
208- ]
209- build_client = [
210- ' bun install --cwd "src/js/packages/@reactpy/client"' ,
211- ' bun run --cwd "src/js/packages/@reactpy/client" build' ,
212- ]
213- build_app = [
214- ' bun install --cwd "src/js/packages/@reactpy/app"' ,
215- ' bun run --cwd "src/js/packages/@reactpy/app" build' ,
207+ ' hatch run "src/build_scripts/build_js_event_to_object.py" {args}' ,
216208]
209+ build_client = [' hatch run "src/build_scripts/build_js_client.py" {args}' ]
210+ build_app = [' hatch run "src/build_scripts/build_js_app.py" {args}' ]
217211publish_event_to_object = [
218212 ' hatch run javascript:build_event_to_object' ,
219213 ' cd "src/js/packages/event-to-object" && bun publish --access public' ,
0 commit comments