2022-04-28 15:10:22 +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
|
2022-04-29 03:45:07 +02:00
|
|
|
rm -rf .parcel-cache
|
|
|
|
|
2022-04-28 15:10:22 +02:00
|
|
|
cp -r web/ dist-temp/
|
2022-04-29 03:45:07 +02:00
|
|
|
|
2022-04-28 15:10:22 +02:00
|
|
|
npm i
|
2023-07-29 19:05:29 +02:00
|
|
|
pip install -r tools/ci/requirements.txt
|
|
|
|
|
2023-06-16 12:42:22 +02:00
|
|
|
python tools/ci/cdn_to_local.py
|
2022-04-28 15:10:22 +02:00
|
|
|
npx parcel build dist-temp/index.html dist-temp/**.html --dist-dir "dist" --no-source-maps --no-content-hash
|
2022-04-29 03:45:07 +02:00
|
|
|
|
2022-04-28 15:10:22 +02:00
|
|
|
rm -rf dist-temp
|
2022-04-29 03:45:07 +02:00
|
|
|
|
|
|
|
cp -r web/_img/ dist/
|
|
|
|
cp web/atlas.json dist/
|
|
|
|
cp web/*.txt dist/
|
|
|
|
cp web/_headers dist/
|
2022-07-30 23:36:27 +02:00
|
|
|
cp web/favicon.ico dist/
|
2023-04-02 07:59:30 +02:00
|
|
|
cp web/sw.js dist/
|