2020-07-16 17:29:52 +02:00
|
|
|
#! /bin/bash
|
|
|
|
|
2020-08-26 15:36:04 +02:00
|
|
|
mkdir assets/generated
|
2020-07-26 02:01:34 +02:00
|
|
|
ts-node createLayouts.ts
|
2020-08-26 15:36:04 +02:00
|
|
|
find -name '*.png' | parallel optipng '{}'
|
2020-07-16 17:29:52 +02:00
|
|
|
npm run build
|
|
|
|
rm -rf /home/pietervdvn/git/pietervdvn.github.io/MapComplete/*
|
|
|
|
cp -r dist/* /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
2020-08-22 03:15:42 +02:00
|
|
|
|
2020-07-16 17:29:52 +02:00
|
|
|
cd /home/pietervdvn/git/pietervdvn.github.io/MapComplete/
|
|
|
|
git add .
|
|
|
|
git commit -m "New mapcomplete version"
|
|
|
|
git push
|
2020-08-17 17:23:15 +02:00
|
|
|
|
|
|
|
|
2020-08-22 03:15:42 +02:00
|
|
|
cd -
|
2020-08-17 17:23:15 +02:00
|
|
|
# clean up the mess we made
|
|
|
|
# rm *.js
|
|
|
|
# rm Logic/*.js
|
|
|
|
# rm Logic/*.js
|
|
|
|
# rm Logic/*/*.js
|
|
|
|
# rm Logic/*/*/*.js
|
|
|
|
# rm UI/*.js
|
|
|
|
# rm UI/*/*.js
|
|
|
|
# rm UI/*/*/*.js
|
|
|
|
# rm Customizations/*.js
|
|
|
|
# rm Customizations/*/*.js
|
|
|
|
# rm Customizations/*/*/*.js
|
|
|
|
|
|
|
|
rm *.webmanifest
|
|
|
|
rm assets/generated/*
|
|
|
|
|
|
|
|
for f in ./*.html; do
|
|
|
|
if [[ "$f" == "./index.html" ]] || [[ "$f" == "./land.html" ]] || [[ "$f" == "./test.html" ]] || [[ "$f" == "./preferences.html" ]] || [[ "$f" == "./customGenerator.html" ]]
|
|
|
|
then
|
|
|
|
echo "Not removing $f"
|
|
|
|
else
|
|
|
|
rm $f
|
|
|
|
fi
|
|
|
|
done
|