joplin/CliClient/build.sh

13 lines
395 B
Bash
Raw Normal View History

2017-06-25 16:30:44 +00:00
#!/bin/bash
CLIENT_DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
2017-07-17 20:22:05 +00:00
yarn install
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-07-03 22:12:03 +00:00
# Always keep this as the last line so that the exit
2017-06-27 20:16:03 +00:00
# code of build.sh is the same as the build command:
2017-07-17 18:46:09 +00:00
#npm run build
yarn run build