fixed Makefile to always clean and recopy the examples build folder (located under examples) (#772)

This commit is contained in:
Subramanian Mahadevan
2022-09-21 19:55:13 +05:30
committed by GitHub
parent d203b60f44
commit 8f658e6d85

View File

@@ -66,7 +66,9 @@ examples:
find ./examples/webgl -type f -name '*.html' -exec sed $(SED_I_ARG) s+https://pyscript.net/latest/+../../../build/+g {} \;
find ./examples -type f -name '*.html' -exec sed $(SED_I_ARG) s+https://pyscript.net/latest/+../build/+g {} \;
npm run build
cp -R ./build/ ./examples/build
rm -rf ./examples/build
mkdir -p ./examples/build
cp -R ./build/* ./examples/build
@echo "To serve examples run: $(conda_run) python -m http.server 8080 --directory examples"
# run prerequisites and serve pyscript examples at http://localhost:8000/examples/