-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #12 from infinitered/setup-script
Setup script
- Loading branch information
Showing
7 changed files
with
50 additions
and
11 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@infinitered/react-native-mlkit-core": minor | ||
--- | ||
|
||
More testing |
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 |
---|---|---|
@@ -0,0 +1,5 @@ | ||
--- | ||
"@infinitered/react-native-mlkit-core": minor | ||
--- | ||
|
||
Added a var to test changesets |
Binary file not shown.
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,3 +1,6 @@ | ||
export * from "./useImageScale"; | ||
export * from "./useBoundingBoxStyle"; | ||
export * from "./useLayout"; | ||
|
||
export const YOU_SHOULD_DELETE_ME = true; | ||
export const AND_ME_TOO = true; |
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 |
---|---|---|
|
@@ -8,9 +8,10 @@ | |
"lint": "turbo run lint", | ||
"clean": "turbo run clean", | ||
"format": "prettier --write \"**/*.{ts,tsx,md}\"", | ||
"postinstall": "turbo run prebuild --filter=!docusaurus" | ||
"setup": "./scripts/setup.sh" | ||
}, | ||
"devDependencies": { | ||
"@changesets/cli": "^2.26.2", | ||
"@turbo/gen": "^1.9.7", | ||
"eslint": "^8.0.0", | ||
"eslint-config-react-native-mlkit": "*", | ||
|
@@ -24,8 +25,5 @@ | |
"packages/*" | ||
], | ||
"packageManager": "[email protected]", | ||
"repository": "https://www.github.com/infinitered/react-native-mlkit", | ||
"dependencies": { | ||
"@changesets/cli": "^2.26.2" | ||
} | ||
"repository": "https://www.github.com/infinitered/react-native-mlkit" | ||
} |
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 |
---|---|---|
@@ -0,0 +1,34 @@ | ||
#!/bin/bash | ||
|
||
RED="\033[0;31m" | ||
CYAN="\033[0;36m" | ||
LIGHT_GREEN="\033[1;32m" | ||
RESET="\033[0m" | ||
|
||
heading() { | ||
echo -e "\n${CYAN}>>> $1${RESET}" | ||
} | ||
|
||
success() { | ||
echo -e "\n${LIGHT_GREEN}------------------------\n$1\n------------------------${RESET}" | ||
} | ||
|
||
error() { | ||
echo -e "\n${RED}>>> $1${RESET}" | ||
exit 1 | ||
} | ||
|
||
|
||
|
||
# Build the project | ||
heading "Building the project" | ||
yarn build | ||
|
||
# Prebuild the RN App} | ||
heading "Prebuilding the RN App" | ||
cd apps/InfiniteRedAI || error "Can't find apps/InfiniteRedAI" | ||
npx expo prebuild | ||
|
||
cd ../.. | ||
|
||
success "✔✔✔ Setup complete!" |
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