mirror of
https://github.com/storytold/artcraft.git
synced 2026-11-05 09:48:44 +00:00
97 lines
1.9 KiB
Bash
Executable File
97 lines
1.9 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
|
|
find / 2> /dev/null | grep build/server
|
|
|
|
|
|
printf "==================================="
|
|
echo "LIST DIRECTORY FILES (3)"
|
|
#find / | grep build/server
|
|
find / 2> /dev/null | grep EnvironmentVar
|
|
find / 2> /dev/null | grep PageEnigma
|
|
|
|
|
|
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 (4)"
|
|
pwd
|
|
ls -lA .
|
|
|
|
printf "==================================="
|
|
echo "List build directory files"
|
|
ls -lA build/
|
|
|
|
mkdir dist/
|
|
|
|
printf "==================================="
|
|
echo "Copy files"
|
|
cp -r build/server/* dist/
|
|
cp -r build/client/* 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/
|
|
|
|
|
|
printf "==================================="
|
|
echo "List files after build"
|
|
find dist/
|
|
|
|
|