Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
coorp/mobile/scripts/sync-local-deps.sh
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] progression-engine"
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] transpiling progression-engine/lib"
cd $LERNA/packages/@coorpacademy-progression-engine
npm run build:commonjs
echo "[sync-local-deps] synchronizing progression-engine/lib"
cd $MOBILE
rm -rf node_modules/@coorpacademy/progression-engine/lib/
cp -r $LERNA/packages/@coorpacademy-progression-engine/lib node_modules/@coorpacademy/progression-engine
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] player-services"
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] transpiling player-services/lib"
cd $LERNA/packages/@coorpacademy-player-services
npm run build:commonjs
echo "[sync-local-deps] synchronizing player-services/lib"
cd $MOBILE
rm -rf node_modules/@coorpacademy/player-services/lib/
cp -r $LERNA/packages/@coorpacademy-player-services/lib node_modules/@coorpacademy/player-services
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] player-store"
echo "[sync-local-deps] -------------------"
echo "[sync-local-deps] transpiling player-store/lib"
cd $LERNA/packages/@coorpacademy-player-store
npm run build:commonjs
echo "[sync-local-deps] synchronizing player-store/lib"
cd $MOBILE
rm -rf node_modules/@coorpacademy/player-store/lib/
cp -r $LERNA/packages/@coorpacademy-player-store/lib node_modules/@coorpacademy/player-store
@chrisdugne

This comment has been minimized.

Copy link
Owner Author

chrisdugne commented Jan 22, 2019

LERNA=/Users/chrisdugne/Projects/CoorpAcademy/lerna
MOBILE=/Users/chrisdugne/Projects/CoorpAcademy/mobile
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.