mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-11 04:16:55 +00:00
80 lines
1.6 KiB
Bash
Executable File
80 lines
1.6 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
set -euxo pipefail
|
|
|
|
# echo "Run build script"
|
|
# npm install
|
|
# npm run build
|
|
#
|
|
# #echo "Emit built files."
|
|
# #pwd
|
|
# #find .
|
|
#
|
|
# # echo "Copy test files into dist"
|
|
# # cp -r test/* dist/
|
|
# #
|
|
# # echo "Copy netlify configs into dist"
|
|
# # cp _headers dist/
|
|
# # cp _redirects dist/
|
|
# #
|
|
# # echo "Copy netlify 404.html page into dist"
|
|
# # cp "404.html" dist/
|
|
# #
|
|
# # echo "List files after build"
|
|
# # find dist/
|
|
|
|
printf "==================================="
|
|
echo "List Env"
|
|
env
|
|
|
|
printf "==================================="
|
|
echo "Run build script (TODO: Make strict)"
|
|
nx build editor3d
|
|
|
|
printf "==================================="
|
|
echo "Current dir (1)"
|
|
pwd
|
|
|
|
printf "==================================="
|
|
echo "List directory files (1)"
|
|
pwd
|
|
ls -lA .
|
|
|
|
printf "==================================="
|
|
echo "List directory files (2)"
|
|
find / | grep build/server
|
|
|
|
|
|
printf "==================================="
|
|
echo "Find build manifest"
|
|
find . | grep manifest.json
|
|
|
|
printf "==================================="
|
|
echo "Change to project dir"
|
|
pushd apps/editor3d/
|
|
|
|
printf "==================================="
|
|
echo "Current dir (2)"
|
|
pwd
|
|
|
|
printf "==================================="
|
|
echo "List directory files (3)"
|
|
pwd
|
|
ls -lA .
|
|
|
|
printf "==================================="
|
|
echo "List build directory files"
|
|
ls -lA build/
|
|
|
|
#echo "Copy netlify configs into dist"
|
|
#cp _headers dist/
|
|
#cp _redirects dist/
|
|
|
|
#echo "Copy netlify 404.html page into dist"
|
|
#cp "404.html" dist/
|
|
|
|
printf "==================================="
|
|
echo "List files after build"
|
|
find dist/
|
|
|