Mv build folder from examples/build to build/ (#571)

Co-authored-by: mariana <marianameireles@protonmail.com>
This commit is contained in:
Mariana Meireles
2022-07-07 11:29:09 -03:00
committed by GitHub
parent 69339fe3de
commit afa216dc5e
3 changed files with 8 additions and 7 deletions

View File

@@ -55,9 +55,10 @@ examples:
mkdir -p ./examples
cp -r ../examples/* ./examples
chmod -R 755 examples
find ./examples/toga -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../build/+g {} \;
find ./examples/webgl -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../build/+g {} \;
find ./examples -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+./build/+g {} \;
find ./examples/toga -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../build/+g {} \;
find ./examples/webgl -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../../../build/+g {} \;
find ./examples -type f -name '*.html' -exec sed -i '' s+https://pyscript.net/alpha/+../build/+g {} \;
test:
make examples
npm run build

View File

@@ -18,10 +18,10 @@ export default {
sourcemap: true,
format: "iife",
name: "app",
file: "examples/build/pyscript.js",
file: "build/pyscript.js",
},
{
file: "examples/build/pyscript.min.js",
file: "build/pyscript.min.js",
format: "iife",
sourcemap: true,
plugins: [terser()],