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