mirror of
https://gitlab.nic.cz/turris/reforis/foris-js.git
synced 2024-12-25 00:11:36 +01:00
14 lines
310 B
Bash
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__
|