mirror of
https://github.com/pyscript/pyscript.git
synced 2025-12-23 22:00:25 -05:00
fixed Makefile to always clean and recopy the examples build folder (located under examples) (#772)
This commit is contained in:
committed by
GitHub
parent
d203b60f44
commit
8f658e6d85
@@ -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/
|
||||
|
||||
Reference in New Issue
Block a user