mirror of
https://github.com/placeAtlas/atlas.git
synced 2024-11-18 16:03:23 +01:00
9a1dd4476c
Ref: 74130e2d76
23 lines
No EOL
522 B
Bash
23 lines
No EOL
522 B
Bash
# 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/
|
|
cp web/favicon.ico dist/
|
|
cp web/sw.js dist/ |