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/
|
|
|
|
cp tools/ci/postcss.config.js ./
|
|
|
|
cp tools/ci/package.json ./
|
2022-04-29 03:45:07 +02:00
|
|
|
cp tools/ci/.parcelrc ./
|
|
|
|
|
2022-04-28 15:10:22 +02:00
|
|
|
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
|
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
|
|
|
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/
|
2022-07-30 23:36:27 +02:00
|
|
|
cp web/favicon.ico dist/
|
|
|
|
cp web/pwabuilder-sw-register.js dist/
|
|
|
|
cp web/pwabuilder-sw.js dist/
|