atlas/tools/ci/build-prod.sh
Hans5958 70c1468994 Improve build script
All images excluded, use folders to group based on extension
2022-04-29 01:45:07 +00:00

25 lines
589 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/
cp tools/ci/postcss.config.js ./
cp tools/ci/package.json ./
cp tools/ci/.parcelrc ./
npm i
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
rm -rf postcss.config.js
rm -rf .parcelrc
cp -r web/_img/ dist/
cp web/atlas.json dist/
cp web/*.txt dist/
cp web/_headers dist/
cp web/favicon.ico dist/