Skip to content

Commit ae7188a

Browse files
feat: monorepo (#330)
## Description This PR introduces new structure of repository: - apps directory - contains standalone applications which are using package from `packages` directory - packages - contains react native executorch library ### Type of change - [ ] Bug fix (non-breaking change which fixes an issue) - [ ] New feature (non-breaking change which adds functionality) - [ ] Breaking change (fix or feature that would cause existing functionality to not work as expected) - [ ] Documentation update (improves or adds clarity to existing documentation) ### Tested on - [x] iOS - [x] Android ### Testing instructions <!-- Provide step-by-step instructions on how to test your changes. Include setup details if necessary. --> ### Screenshots <!-- Add screenshots here, if applicable --> ### Related issues <!-- Link related issues here using #issue-number --> ### Checklist - [ ] I have performed a self-review of my code - [ ] I have commented my code, particularly in hard-to-understand areas - [ ] I have updated the documentation accordingly - [ ] My changes generate no new warnings ### Additional notes <!-- Include any additional information, assumptions, or context that reviewers might need to understand this PR. --> --------- Co-authored-by: pweglik <[email protected]>
1 parent 4c61f9d commit ae7188a

File tree

587 files changed

+8150
-49638
lines changed

Some content is hidden

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

587 files changed

+8150
-49638
lines changed

.eslintrc

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

.eslintrc.js

Lines changed: 38 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,38 @@
1+
const path = require('path');
2+
3+
module.exports = {
4+
parserOptions: {
5+
requireConfigFile: false,
6+
babelOptions: {
7+
presets: ['@babel/preset-react'],
8+
},
9+
},
10+
root: true,
11+
extends: [
12+
'@react-native',
13+
'plugin:@cspell/recommended',
14+
'plugin:prettier/recommended',
15+
],
16+
rules: {
17+
'react/react-in-jsx-scope': 'off',
18+
'prettier/prettier': [
19+
'error',
20+
{
21+
quoteProps: 'consistent',
22+
singleQuote: true,
23+
tabWidth: 2,
24+
trailingComma: 'es5',
25+
useTabs: false,
26+
},
27+
],
28+
'@cspell/spellchecker': [
29+
'warn',
30+
{
31+
customWordListFile: path.resolve(__dirname, '.cspell-wordlist.txt'),
32+
},
33+
],
34+
'camelcase': 'error',
35+
},
36+
plugins: ['prettier'],
37+
ignorePatterns: ['node_modules/', 'lib/'],
38+
};

.github/workflows/build-android-llm-example.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,24 @@ on:
55
- .github/workflows/build-android-llm-example.yml
66
- android/**
77
- third-party/android/**
8-
- examples/llm/package.json
9-
- examples/llm/android/**
8+
- apps/llm/package.json
9+
- apps/llm/android/**
1010
push:
1111
branches:
1212
- main
1313
paths:
1414
- .github/workflows/build-android-llm-example.yml
1515
- android/**
1616
- third-party/android/**
17-
- examples/llm/package.json
18-
- examples/llm/android/**
17+
- apps/llm/package.json
18+
- apps/llm/android/**
1919
workflow_dispatch:
2020
jobs:
2121
build:
2222
if: github.repository == 'software-mansion/react-native-executorch'
2323
runs-on: ubuntu-latest
2424
env:
25-
WORKING_DIRECTORY: examples/llm
25+
WORKING_DIRECTORY: apps/llm
2626
concurrency:
2727
group: android-${{ github.ref }}
2828
cancel-in-progress: true

.github/workflows/build-ios-llm-example.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@ on:
66
paths:
77
- '.github/workflows/build-ios-llm-example.yml'
88
- '*.podspec'
9-
- 'examples/llm/ios/**'
10-
- 'examples/llm/package.json'
9+
- 'apps/llm/ios/**'
10+
- 'apps/llm/package.json'
1111
pull_request:
1212
paths:
1313
- '.github/workflows/build-ios-llm-example.yml'
1414
- '*.podspec'
15-
- 'examples/llm/ios/**'
16-
- 'examples/llm/package.json'
15+
- 'apps/llm/ios/**'
16+
- 'apps/llm/package.json'
1717
workflow_dispatch:
1818
jobs:
1919
build:
@@ -29,13 +29,13 @@ jobs:
2929
- name: Check out Git repository
3030
uses: actions/checkout@v4
3131
- name: Install node dependencies
32-
working-directory: examples/llm
32+
working-directory: apps/llm
3333
run: yarn
3434
- name: Install pods
35-
working-directory: examples/llm/ios
35+
working-directory: apps/llm/ios
3636
run: pod install
3737
- name: Build app
38-
working-directory: examples/llm/ios
38+
working-directory: apps/llm/ios
3939
run: |
4040
set -o pipefail && xcodebuild \
4141
-workspace llm.xcworkspace \

.github/workflows/ci.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,4 +36,6 @@ jobs:
3636
uses: ./.github/actions/setup
3737

3838
- name: Build package
39-
run: yarn prepare
39+
run: |
40+
cd packages/react-native-executorch
41+
yarn prepare

.prettierignore

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,5 @@
1-
**/*.mdx
1+
**/*.mdx
2+
third-party
3+
.github
4+
.yarn
5+
README.md

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

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

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

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

.yarn/releases/yarn-3.6.1.cjs

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

.yarn/releases/yarn-4.1.1.cjs

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

0 commit comments

Comments
 (0)