2017-06-25 16:30:44 +00:00
|
|
|
#!/bin/bash
|
|
|
|
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-06-25 22:20:07 +00:00
|
|
|
ln -s "$CLIENT_DIR/../lib" "$CLIENT_DIR/app"
|
2017-06-27 20:16:03 +00:00
|
|
|
cp "$CLIENT_DIR/package.json" "$CLIENT_DIR/build"
|
|
|
|
|
|
|
|
# Always keep this as the last line so that the exist
|
|
|
|
# code of build.sh is the same as the build command:
|
|
|
|
npm run build
|