[Gekidou] Solidarity poc (#6394)

* [Gekidou] Solidarity poc

* solidarity tweaks

* Fix npm install failing with npm higher than 8.5.5

Co-authored-by: Elias Nahum <nahumhbl@gmail.com>
This commit is contained in:
Elon Volo 2022-08-22 06:13:35 -04:00 committed by GitHub
parent 2703407e3a
commit e6104bd6d3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 109 additions and 8 deletions

79
.solidarity Normal file
View file

@ -0,0 +1,79 @@
{
"$schema": "http://json.schemastore.org/solidaritySchema",
"config" : {
"output" : "moderate"
},
"requirements": {
"Node": [
{
"rule": "cli",
"binary": "node",
"semver": ">=16.0.0",
"error": "install node using nvm https://github.com/nvm-sh/nvm#installing-and-updating"
},
{
"rule": "cli",
"binary": "npm",
"semver": ">=8.5.5 <9.0.0",
"error": "install npm 8.5.5 `npm i -g npm@8.5.5"
}
],
"Android": [
{
"rule": "cli",
"binary": "emulator"
},
{
"rule": "cli",
"binary": "android"
},
{
"rule": "env",
"variable": "ANDROID_HOME",
"error": "The ANDROID_HOME environment variable must be set to your local SDK. Refer to getting started docs for help."
}
],
"iOS": [
{
"rule": "cli",
"binary": "watchman",
"error": "install watchman `brew install watchman`",
"platform": "darwin"
},
{
"rule": "cli",
"binary": "xcodebuild",
"semver": ">=13.0",
"error": "install xcode",
"platform": "darwin"
},
{
"rule": "cli",
"binary": "ruby",
"semver": ">=2.7.1 <3.0.0",
"error": "visit rvm install https://rvm.io/rvm/install",
"platform": "darwin"
},
{
"rule": "cli",
"binary": "bundler",
"semver": "2.1.4",
"error": "install watchman `gem install bundler --version 2.1.4`",
"platform": "darwin"
},
{
"rule": "cli",
"binary": "pod",
"semver": "1.11.3",
"platform": "darwin"
}
],
"Git email": [
{
"rule": "shell",
"command": "git config user.email",
"match": ".+@.+"
}
]
}
}

2
package-lock.json generated
View file

@ -29630,7 +29630,7 @@
"resolved": "https://registry.npmjs.org/@types/hoist-non-react-statics/-/hoist-non-react-statics-3.3.1.tgz",
"integrity": "sha512-iMIqiko6ooLrTh1joXodJK5X9xeEALT1kM5G3ZLhD3hszxBdIEd5C75U834D9mLcINgD4OyZf5uQXjkuYydWvA==",
"requires": {
"@types/react": "*",
"@types/react": "^18.0.15",
"hoist-non-react-statics": "^3.3.0"
}
},

View file

@ -193,6 +193,7 @@
"mmjstool": "mmjstool",
"pod-install": "cd ios && bundle exec pod install",
"postinstall": "patch-package && ./scripts/postinstall.sh",
"preinstall": "npx solidarity",
"prestorybook": "rnstl",
"start": "react-native start",
"storybook": "start-storybook -p 7007",
@ -202,13 +203,34 @@
"tsc": "NODE_OPTIONS=--max_old_space_size=12000 tsc --noEmit",
"updatesnapshot": "jest --updateSnapshot"
},
"config": {
"react-native-storybook-loader": {
"searchDir": [
"./app/components"
],
"pattern": "**/*.stories.@(js|jsx|ts|tsx)",
"outputFile": "./storybook/storyLoader.js"
"overrides": {
"@nozbe/with-observables": {
"@types/react": "^18.0.15",
"react": "^18.2.0"
},
"@react-native-community/cameraroll": {
"react": "^18.2.0"
},
"@rudderstack/rudder-sdk-react-native": {
"react-native": "^0.69.0"
},
"@testing-library/react-hooks": {
"@types/react": "^18.0.15",
"react": "^18.2.0",
"react-test-renderer": "^18.2.0"
},
"react-native": {
"react": "^18.2.0"
},
"react-native-elements": {
"react-native-safe-area-context": "^4.3.1"
},
"react-native-fast-image": {
"react": "^18.2.0"
},
"rn-placeholder": {
"react": "^18.2.0",
"react-native": "^0.69.0"
}
}
}