1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-14 17:35:35 +01:00
foris-js/scripts/collect_files.sh

14 lines
310 B
Bash
Raw Normal View History

2019-11-01 10:28:28 +01:00
#!/bin/sh
# Collect files
2019-12-26 23:25:12 +01:00
mkdir -p dist
2020-01-07 12:55:55 +01:00
cp -rf ./src/* dist
2019-12-26 23:25:12 +01:00
cp package.json package-lock.json README.md dist
2020-01-08 09:38:02 +01:00
sed -i 's/\/src//g' dist/package.json # remove ./src from main js file path
2019-11-01 10:28:28 +01:00
cp -rf translations dist
2020-01-08 09:38:02 +01:00
2019-11-01 10:28:28 +01:00
# Remove unwanted files
2020-01-09 11:25:29 +01:00
find dist -type d -name __tests__ -exec rm -r {} +
2019-11-01 10:28:28 +01:00
rm -rf dist/__mocks__