2017-06-25 16:30:44 +00:00
|
|
|
#!/bin/bash
|
2017-07-18 18:04:47 +00:00
|
|
|
set -e
|
|
|
|
|
2017-06-25 16:30:44 +00:00
|
|
|
CLIENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
|
|
|
|
2017-06-27 20:16:03 +00:00
|
|
|
mkdir -p "$CLIENT_DIR/build"
|
2017-06-25 16:30:44 +00:00
|
|
|
rm -f "$CLIENT_DIR/app/lib"
|
2017-07-05 20:34:25 +00:00
|
|
|
ln -s "$CLIENT_DIR/../ReactNativeClient/lib" "$CLIENT_DIR/app"
|
2017-06-27 20:16:03 +00:00
|
|
|
cp "$CLIENT_DIR/package.json" "$CLIENT_DIR/build"
|
2017-08-04 16:02:43 +00:00
|
|
|
cp "$CLIENT_DIR/app/autocompletion_template.txt" "$CLIENT_DIR/build"
|
2017-06-27 20:16:03 +00:00
|
|
|
|
2017-08-03 17:48:14 +00:00
|
|
|
npm run build
|
|
|
|
#yarn run build
|
2017-07-18 18:04:47 +00:00
|
|
|
|
2017-08-03 17:48:14 +00:00
|
|
|
#NODE_PATH="$CLIENT_DIR/build" node "$CLIENT_DIR/build/build-translation.js" --silent
|