2023-07-01 18:53:48 +02:00
|
|
|
# This command should be run on CI/Netlify enviroment!
|
|
|
|
# If you really wanted to run it, run it on the root.
|
|
|
|
|
|
|
|
rm -rf dist-temp
|
|
|
|
rm -rf dist
|
|
|
|
rm -rf .parcel-cache
|
|
|
|
|
|
|
|
cp -r web/ dist-temp/
|
|
|
|
|
|
|
|
npm i
|
2023-07-29 19:05:29 +02:00
|
|
|
pip install -r tools/ci/requirements.txt
|
|
|
|
|
2023-07-01 18:53:48 +02:00
|
|
|
python tools/ci/cdn_to_local.py
|
2023-07-20 11:58:04 +02:00
|
|
|
python tools/merge_out.py # On previews, attempt to merge patches
|
2023-07-01 18:53:48 +02:00
|
|
|
npx parcel build dist-temp/index.html dist-temp/**.html --dist-dir "dist" --no-source-maps --no-content-hash
|
|
|
|
|
|
|
|
rm -rf dist-temp
|
|
|
|
|
|
|
|
cp -r web/_img/ dist/
|
|
|
|
cp web/atlas.json dist/
|
|
|
|
cp web/*.txt dist/
|
|
|
|
cp web/_headers dist/
|
|
|
|
cp web/favicon.ico dist/
|
|
|
|
cp web/sw.js dist/
|