Skip to content

Commit 924a6d3

Browse files
exzosexzos
authored andcommitted
refactor: rewrite logic
1 parent b0ffa57 commit 924a6d3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

42 files changed

+16636
-21258
lines changed

.gitattributes

Lines changed: 0 additions & 3 deletions
This file was deleted.

.github/actions/setup/action.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ runs:
1515
with:
1616
path: |
1717
**/node_modules
18-
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
18+
.yarn/install-state.gz
19+
key: ${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}-${{ hashFiles('**/package.json', '!node_modules/**') }}
1920
restore-keys: |
21+
${{ runner.os }}-yarn-${{ hashFiles('yarn.lock') }}
2022
${{ runner.os }}-yarn-
2123
2224
- name: Install dependencies
2325
if: steps.yarn-cache.outputs.cache-hit != 'true'
24-
run: |
25-
yarn install --cwd example --frozen-lockfile
26-
yarn install --frozen-lockfile
26+
run: yarn install --immutable
2727
shell: bash

.github/workflows/ci.yml

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches:
88
- main
9+
merge_group:
10+
types:
11+
- checks_requested
912

1013
jobs:
1114
lint:
@@ -35,7 +38,7 @@ jobs:
3538
- name: Run unit tests
3639
run: yarn test --maxWorkers=2 --coverage
3740

38-
build:
41+
build-library:
3942
runs-on: ubuntu-latest
4043
steps:
4144
- name: Checkout
@@ -45,4 +48,17 @@ jobs:
4548
uses: ./.github/actions/setup
4649

4750
- name: Build package
48-
run: yarn prepack
51+
run: yarn prepare
52+
53+
build-web:
54+
runs-on: ubuntu-latest
55+
steps:
56+
- name: Checkout
57+
uses: actions/checkout@v3
58+
59+
- name: Setup
60+
uses: ./.github/actions/setup
61+
62+
- name: Build example for Web
63+
run: |
64+
yarn example expo export --platform web

.gitignore

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,14 @@ buck-out/
6060
android/app/libs
6161
android/keystores/debug.keystore
6262

63+
# Yarn
64+
.yarn/*
65+
!.yarn/patches
66+
!.yarn/plugins
67+
!.yarn/releases
68+
!.yarn/sdks
69+
!.yarn/versions
70+
6371
# Expo
6472
.expo/
6573

@@ -68,3 +76,7 @@ android/keystores/debug.keystore
6876

6977
# generated by bob
7078
lib/
79+
80+
# React Native Codegen
81+
ios/generated
82+
android/generated

.nvmrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
16.18.1
1+
v18

.watchmanconfig

Lines changed: 0 additions & 1 deletion
This file was deleted.

.yarn/plugins/@yarnpkg/plugin-interactive-tools.cjs

Lines changed: 541 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/plugins/@yarnpkg/plugin-workspace-tools.cjs

Lines changed: 28 additions & 0 deletions
Large diffs are not rendered by default.

.yarn/releases/yarn-3.6.1.cjs

Lines changed: 874 additions & 0 deletions
Large diffs are not rendered by default.

.yarnrc

Lines changed: 0 additions & 3 deletions
This file was deleted.

0 commit comments

Comments
 (0)