atlas/tools/ci/build-prod.sh

23 lines
522 B
Bash
Raw Normal View History

# 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
pip install -r tools/ci/requirements.txt
python tools/ci/cdn_to_local.py
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/
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/