-
Notifications
You must be signed in to change notification settings - Fork 3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add better logging, and fix clean build
- Loading branch information
1 parent
daa0ad6
commit deb1ce8
Showing
6 changed files
with
26 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,22 @@ | ||
#!/bin/bash | ||
set -e | ||
|
||
BLUE='\033[1;34m' | ||
NC='\033[0m' | ||
|
||
ROOT_DIR=$(dirname "$(cd -- "$(dirname -- "${BASH_SOURCE[0]}")" &> /dev/null && pwd)") | ||
cd "$ROOT_DIR" || exit 1 | ||
|
||
# See if we're in the HybridApp repo | ||
IS_HYBRID_APP_REPO=$(scripts/is-hybrid-app-repo.sh) | ||
|
||
if [[ "$IS_HYBRID_APP_REPO" == "true" && "$1" != "--new-dot" ]]; then | ||
if [[ "$IS_HYBRID_APP_REPO" != "true" && "$1" != "--new-dot" ]]; then | ||
echo -e "${BLUE}Cleaning HybridApp project...${NC}" | ||
# Navigate to the OldDot repository, and clean | ||
cd .. | ||
npm run clean | ||
else | ||
# Clean NewDot | ||
echo -e "${BLUE}Cleaning standalone NewDot project...${NC}" | ||
npx react-native clean-project-auto | ||
fi |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters