Skip to content

Commit

Permalink
Merge pull request #12 from infinitered/setup-script
Browse files Browse the repository at this point in the history
Setup script
  • Loading branch information
trevor-coleman authored Sep 14, 2023
2 parents 6681fb5 + a287809 commit 4d9dc86
Show file tree
Hide file tree
Showing 7 changed files with 50 additions and 11 deletions.
5 changes: 5 additions & 0 deletions .changeset/forty-cycles-rush.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"@infinitered/react-native-mlkit-core": minor
---

More testing
5 changes: 5 additions & 0 deletions .changeset/slow-cows-eat.md
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 modified .yarn/install-state.gz
Binary file not shown.
3 changes: 3 additions & 0 deletions modules/react-native-mlkit-core/src/hooks/index.ts
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;
8 changes: 3 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": "*",
Expand All @@ -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"
}
34 changes: 34 additions & 0 deletions scripts/setup.sh
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!"
6 changes: 0 additions & 6 deletions turbo.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,12 +18,6 @@
"dev": {
"cache": false,
"persistent": true
},
"prebuild": {},
"postinstall": {
"dependsOn": [
"^build"
]
}
}
}

0 comments on commit 4d9dc86

Please sign in to comment.