-
Notifications
You must be signed in to change notification settings - Fork 466
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat(sqlite-storage): scaffold workspace #1071
Merged
Merged
Changes from 13 commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
662456f
chore(deps): bump follow-redirects from 1.15.4 to 1.15.6 (#1074)
dependabot[bot] 864626d
feat(default-storage): Add Privacy Manifest for iOS (#1075)
krizzu 9fa27cc
chore(release): 1.23.0 [skip ci]
AsyncStorageBot c4ed1fa
fix(default-storage): Privacy manifest missing key (#1076)
krizzu 39adcfa
chore(release): 1.23.1 [skip ci]
AsyncStorageBot 17e0e33
chore(deps): bump webpack-dev-middleware from 5.3.3 to 5.3.4 (#1077)
dependabot[bot] d4a3eee
chore: GH workflows, turbo and other chores (#1073)
krizzu 740e424
init
krizzu 86eb94f
examples
krizzu 322c03a
comments
krizzu 7c7e5f3
fix glob
krizzu 5e39eb9
namespace
krizzu 87ee8a4
windows build
krizzu 7538c01
fixing windows action
krizzu d50f198
android example search for node_modules
krizzu File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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,19 @@ | ||
name: Setup project | ||
description: Install required tools | ||
inputs: | ||
node-version: | ||
required: false | ||
description: node version to install | ||
default: 20.10.0 # is already cached in Ubuntu 22.04 runner | ||
runs: | ||
using: composite | ||
steps: | ||
- name: Enable corepack | ||
shell: bash | ||
run: | | ||
corepack enable | ||
yarn --version | ||
- uses: actions/setup-node@v4 | ||
with: | ||
node-version: ${{ inputs.node-version }} | ||
cache: "yarn" |
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,58 +1,35 @@ | ||
name: CI | ||
name: Default storage | ||
on: | ||
push: | ||
branches: | ||
- main | ||
pull_request: | ||
jobs: | ||
format: | ||
name: Format | ||
changes: | ||
name: report changed files | ||
runs-on: ubuntu-latest | ||
outputs: | ||
changed: ${{ steps.filter.outputs.storage }} | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Install JS dependencies | ||
run: yarn | ||
- name: Format | ||
run: | | ||
yarn format | ||
git diff --exit-code | ||
review: | ||
name: Review | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-name: [lint, ts] | ||
workspace: [default-storage, api] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
- uses: actions/checkout@v4 | ||
- uses: dorny/paths-filter@v3 | ||
id: filter | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Install JS dependencies | ||
run: yarn | ||
- name: Run test ${{ matrix.test-name }} | ||
run: yarn test:${{ matrix.test-name }} | ||
working-directory: packages/${{ matrix.workspace }} | ||
token: ${{ secrets.GH_RELEASE_TOKEN }} | ||
filters: | | ||
storage: | ||
- 'packages/default-storage/**' | ||
|
||
android: | ||
name: Android | ||
needs: changes | ||
if: ${{ needs.changes.outputs.changed == 'true' }} | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
uses: actions/checkout@v4 | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Install JS dependencies | ||
run: | | ||
yarn | ||
|
@@ -69,21 +46,20 @@ jobs: | |
|
||
ios: | ||
name: iOS | ||
needs: changes | ||
if: ${{ needs.changes.outputs.changed == 'true' }} | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Cache /.ccache | ||
uses: actions/cache@v3 | ||
with: | ||
path: packages/default-storage/.ccache | ||
key: ccache-ios-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ccache-ios- | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Install JS dependencies | ||
run: | | ||
yarn | ||
|
@@ -102,21 +78,20 @@ jobs: | |
|
||
macos: | ||
name: macOS | ||
needs: changes | ||
if: ${{ needs.changes.outputs.changed == 'true' }} | ||
runs-on: macos-latest | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Cache /.ccache | ||
uses: actions/cache@v3 | ||
with: | ||
path: packages/default-storage/.ccache | ||
key: ccache-macos-${{ hashFiles('yarn.lock') }} | ||
restore-keys: ccache-macos- | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Install JS dependencies | ||
run: | | ||
yarn | ||
|
@@ -140,19 +115,18 @@ jobs: | |
|
||
windows: | ||
name: Windows | ||
needs: changes | ||
if: ${{ needs.changes.outputs.changed == 'true' }} | ||
runs-on: windows-2022 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Set up MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Setup VSTest.console.exe | ||
uses: darenm/[email protected] | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Install JS dependencies | ||
run: | | ||
yarn | ||
|
@@ -167,19 +141,16 @@ jobs: | |
|
||
release: | ||
name: Release | ||
needs: [format, review, android, ios, macos, windows] | ||
needs: [android, ios, macos, windows] | ||
if: github.event_name == 'push' | ||
runs-on: ubuntu-22.04 | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v3 | ||
uses: actions/checkout@v4 | ||
with: | ||
persist-credentials: false | ||
- name: Set up Node.js | ||
uses: actions/[email protected] | ||
with: | ||
node-version: 18.16.1 | ||
cache: yarn | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Install JS dependencies | ||
run: | | ||
yarn | ||
|
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,19 @@ | ||
name: PR review | ||
on: | ||
pull_request: | ||
jobs: | ||
code-quality: | ||
name: Code quality | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
test-name: [lint, ts, format] | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Setup project | ||
uses: ./.github/actions/setup-project | ||
- name: Install dependencies | ||
run: yarn | ||
- name: test ${{ matrix.test-name }} | ||
run: yarn test:${{ matrix.test-name }} |
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,4 +1,4 @@ | ||
name: Mark stale issues and pull requests | ||
name: Stale issue | ||
on: | ||
schedule: | ||
- cron: "30 1 * * *" | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
{ | ||
"trailingComma": "es5" | ||
} |
This file was deleted.
Oops, something went wrong.
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,24 +1,31 @@ | ||
compressionLevel: mixed | ||
|
||
enableGlobalCache: false | ||
|
||
enableTelemetry: false | ||
|
||
logFilters: | ||
- code: YN0007 # X must be built because it never has been before or the last one failed | ||
- code: YN0007 | ||
level: discard | ||
- code: YN0008 # X must be rebuilt because its dependency tree changed | ||
- code: YN0008 | ||
level: discard | ||
- code: YN0013 # X can't be found in the cache and will be fetched from the remote registry | ||
- code: YN0013 | ||
level: discard | ||
|
||
nodeLinker: node-modules | ||
|
||
npmRegistryServer: "https://registry.npmjs.org" | ||
|
||
packageExtensions: | ||
"@expo/cli@*": | ||
peerDependencies: | ||
"expo-modules-autolinking": "*" | ||
"babel-preset-expo@*": | ||
expo-modules-autolinking: "*" | ||
babel-preset-expo@*: | ||
peerDependencies: | ||
"@babel/core": "^7.0.0-0" | ||
"expo@*": | ||
"@babel/core": ^7.0.0-0 | ||
expo-asset@*: | ||
peerDependencies: | ||
"@babel/core": "^7.0.0-0" | ||
"expo-asset@*": | ||
expo: "*" | ||
expo@*: | ||
peerDependencies: | ||
"expo": "*" | ||
yarnPath: .yarn/releases/yarn-3.4.1.cjs | ||
"@babel/core": ^7.0.0-0 |
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 |
---|---|---|
|
@@ -4,16 +4,24 @@ | |
"workspaces": [ | ||
"packages/*" | ||
], | ||
"packageManager": "[email protected]", | ||
"packageManager": "[email protected]", | ||
"engines": { | ||
"node": "v20.11.1" | ||
}, | ||
"scripts": { | ||
"build": "turbo run build", | ||
"format": "concurrently 'yarn:format:*'", | ||
"format:c": "clang-format -i $(git ls-files '*.cpp' '*.h' '*.m' '*.mm') --style file:.config/.clang-format", | ||
"format:js": "prettier --write --loglevel error $(git ls-files '*.js' '*.json' '*.ts' '*.tsx' '*.yml' 'README.md')" | ||
"format:js": "prettier --write $(git ls-files '*.js' '*.json' '*.ts' '*.tsx' '*.yml' 'README.md')", | ||
"test:lint": "turbo run test:lint", | ||
"test:ts": "turbo run test:ts", | ||
"test:format": "prettier --check --loglevel warn $(git ls-files '*.js' '*.json' '*.ts' '*.tsx' '*.yml' 'README.md')" | ||
}, | ||
"devDependencies": { | ||
"concurrently": "^8.2.2", | ||
"eslint": "^8.54.0", | ||
"prettier": "^2.8.8", | ||
"turbo": "^1.12.5", | ||
"typescript": "^5.3.0" | ||
}, | ||
"resolutions": { | ||
|
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
|
@@ -17,8 +17,7 @@ | |
"prepack": "yarn build", | ||
"build": "bob build", | ||
"test:lint": "eslint $(git ls-files '*.js' '*.ts' '*.tsx')", | ||
"test:ts": "tsc --noEmit", | ||
"test:jest": "jest" | ||
"test:ts": "tsc --noEmit" | ||
}, | ||
"keywords": [ | ||
"react-native", | ||
|
@@ -31,12 +30,9 @@ | |
"author": "Krzysztof Borowy <[email protected]>", | ||
"license": "MIT", | ||
"devDependencies": { | ||
"@types/jest": "29.5.4", | ||
"eslint": "^8.54.0", | ||
"jest": "29.5.0", | ||
"prettier": "^2.8.8", | ||
"react-native-builder-bob": "0.20.0", | ||
"ts-jest": "29.1.1", | ||
"typescript": "^5.3.0" | ||
}, | ||
"react-native-builder-bob": { | ||
|
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,7 +1,4 @@ | ||
{ | ||
"extends": "../../.config/tsconfig.base.json", | ||
"compilerOptions": { | ||
"types": ["jest"] | ||
}, | ||
"include": ["example", "src"] | ||
} |
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 |
---|---|---|
|
@@ -17,5 +17,5 @@ msbuild.binlog | |
buck-out/ | ||
\.buckd/ | ||
*.keystore | ||
|
||
|
||
xcuserdata | ||
xcshareddata |
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
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
small bonus 🙏