1
0
mirror of https://gitlab.nic.cz/turris/reforis/foris-js.git synced 2024-11-13 17:25:34 +01:00
foris-js/scripts/collect_files.sh
2020-01-09 11:25:29 +01:00

14 lines
310 B
Bash

#!/bin/sh
# Collect files
mkdir -p dist
cp -rf ./src/* dist
cp package.json package-lock.json README.md dist
sed -i 's/\/src//g' dist/package.json # remove ./src from main js file path
cp -rf translations dist
# Remove unwanted files
find dist -type d -name __tests__ -exec rm -r {} +
rm -rf dist/__mocks__