Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
69 commits
Select commit Hold shift + click to select a range
409fdc5
move github actions to root
tjzel May 8, 2024
079dc5b
fix android-build, validate-plugin, validate-yarn
tjzel May 8, 2024
d9f70d8
move annotation script and fix validators
tjzel May 8, 2024
4ee2a88
remove husky install step
tjzel May 8, 2024
19b2146
fix some validations and handle static checks
tjzel May 8, 2024
9487686
fix path for annotations
tjzel May 8, 2024
6cbe745
fix detect-borken-ulrs and check-ts-react-native
tjzel May 8, 2024
5260887
remove hardened mode flag for monorepo build
tjzel May 8, 2024
06ecd2d
fix docs-check and check-static-framework-nightly
tjzel May 8, 2024
70c56cd
fix build-next-example
tjzel May 8, 2024
bf0177c
fix more
tjzel May 8, 2024
62b8c3e
fix more
tjzel May 8, 2024
3d78462
more fixes
tjzel May 8, 2024
1e01e42
trying to fix some yarn.lock issues
tjzel May 8, 2024
e3d4b0d
lets see
tjzel May 8, 2024
6a32c82
disable hardened mode for v8
tjzel May 8, 2024
48c9d0c
v8 and monorepo are naughty
tjzel May 8, 2024
0a7576a
one more
tjzel May 8, 2024
818291e
testing
tjzel May 8, 2024
dfbf55b
testing v2
tjzel May 8, 2024
830c680
not sure what fails
tjzel May 8, 2024
cdaf155
yarn.lock ikd
tjzel May 8, 2024
7edb9f2
more debugging
tjzel May 8, 2024
f7dedbe
its starting to be painful
tjzel May 8, 2024
9f39505
corepack help
tjzel May 8, 2024
4bd7e9e
even more debugging
tjzel May 8, 2024
975099b
cleanup
tjzel May 9, 2024
58942ff
init
tjzel May 9, 2024
2ff1898
mergele upstream
tjzel May 9, 2024
e0126cf
mergele upstream
tjzel May 9, 2024
a84e67a
init
tjzel May 9, 2024
6606330
remove deps
tjzel May 9, 2024
67cb365
mergele upstream
tjzel May 9, 2024
02e5fdc
yarn.lock
tjzel May 9, 2024
b041080
init
tjzel May 9, 2024
4a33b72
only paper example for now
tjzel May 10, 2024
336ab36
fix CI
tjzel May 10, 2024
fd7b53f
fin
tjzel May 13, 2024
4c7bc69
favicon
tjzel May 13, 2024
da53c01
cleanup
tjzel May 13, 2024
4146ed6
cleanup v2
tjzel May 13, 2024
d56d000
mergele main
tjzel May 17, 2024
2b53648
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-github-actions
tjzel May 17, 2024
bfeba89
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-github-actions
tjzel May 17, 2024
e6b2ddd
fix plugin lint
tjzel May 17, 2024
a609884
mergele upstream
tjzel May 17, 2024
5633d52
mergele upstream
tjzel May 17, 2024
6a02ee6
mergele upstream
tjzel May 17, 2024
1dc8f74
rename
tjzel May 17, 2024
29cb135
create apps
tjzel May 17, 2024
692e079
add version for monorepo
tjzel May 17, 2024
80de4f8
mergele upstream
tjzel May 17, 2024
721537b
move to apps
tjzel May 17, 2024
9e2715f
remove duplicate app
tjzel May 17, 2024
b1cb47b
package jsons
tjzel May 20, 2024
1222399
Merge branch '@tjzel/monorepo-github-actions' into @tjzel/monorepo-hu…
tjzel May 20, 2024
41f54d1
add build script
tjzel May 20, 2024
d0e88a8
touch more CIs
tjzel May 20, 2024
6cabace
huh
tjzel May 20, 2024
a173b6d
npm package
tjzel May 20, 2024
4a4cd1b
remove rea2
tjzel May 20, 2024
4b7f8eb
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-github-actions
tjzel May 29, 2024
d3d023d
Merge branch '@tjzel/monorepo-github-actions' into @tjzel/monorepo-hu…
tjzel May 29, 2024
dfae9eb
Merge branch '@tjzel/monorepo-husky-and-precommit' into @tjzel/monore…
tjzel May 29, 2024
fa9dd19
Merge branch '@tjzel/monorepo-make-reanimated-a-workspace' into @tjze…
tjzel May 29, 2024
8bf59ef
Bump react-native-web version
m-bert Jun 5, 2024
a238f15
fix
tjzel May 29, 2024
73aa559
Monorepo [2/?] - use hoisted dependencies for Reanimated, app common …
tjzel Jun 5, 2024
2dcaac2
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-webexample
tjzel Jun 5, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 3 additions & 2 deletions apps/common-app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "common-app",
"version": "0.0.1",
"private": true,
"scripts": {
"build": "yarn patch-package",
Expand Down Expand Up @@ -45,14 +46,14 @@
"eslint": "^8.0.0-0",
"patch-package": "^7.0.0",
"prettier": "^2.8.7",
"react-dom": "18.0.0",
"react": "18.2.0",
"react-native": "0.74.0",
"react-native-gesture-handler": "^2.16.0",
"react-native-pager-view": "^6.2.3",
"react-native-reanimated": "workspace:*",
"react-native-safe-area-context": "4.10.0-rc.1",
"react-native-screens": "3.31.0-rc.1",
"react-native-svg": "^15.2.0-rc.0",
"react-native-web": "~0.18.12",
"typescript": "^5.0.2"
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,4 @@ web-build/

# macOS
.DS_Store

5 changes: 5 additions & 0 deletions apps/web-example/App.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import Apps from "common-app";

export default function App() {
return <Apps />;
}
50 changes: 50 additions & 0 deletions apps/web-example/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Welcome to your Expo app 👋

This is an [Expo](https://expo.dev) project created with [`create-expo-app`](https://www.npmjs.com/package/create-expo-app).

## Get started

1. Install dependencies

```bash
npm install
```

2. Start the app

```bash
npx expo start
```

In the output, you'll find options to open the app in a

- [development build](https://docs.expo.dev/develop/development-builds/introduction/)
- [Android emulator](https://docs.expo.dev/workflow/android-studio-emulator/)
- [iOS simulator](https://docs.expo.dev/workflow/ios-simulator/)
- [Expo Go](https://expo.dev/go), a limited sandbox for trying out app development with Expo

You can start developing by editing the files inside the **app** directory. This project uses [file-based routing](https://docs.expo.dev/router/introduction).

## Get a fresh project

When you're ready, run:

```bash
npm run reset-project
```

This command will move the starter code to the **app-example** directory and create a blank **app** directory where you can start developing.

## Learn more

To learn more about developing your project with Expo, look at the following resources:

- [Expo documentation](https://docs.expo.dev/): Learn fundamentals, or go into advanced topics with our [guides](https://docs.expo.dev/guides).
- [Learn Expo tutorial](https://docs.expo.dev/tutorial/introduction/): Follow a step-by-step tutorial where you'll create a project that runs on Android, iOS, and the web.

## Join the community

Join our community of developers creating universal apps.

- [Expo on GitHub](https://github.com/expo/expo): View our open source platform and contribute.
- [Discord community](https://chat.expo.dev): Chat with Expo users and ask questions.
10 changes: 10 additions & 0 deletions apps/web-example/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"expo": {
"name": "reanimated-web-example",
"slug": "reanimated-web-example",
"version": "0.0.1",
"web": {
"favicon": "./assets/favicon.png"
}
}
}
12 changes: 12 additions & 0 deletions apps/web-example/babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
module.exports = function (api) {
const disableBabelPlugin = process.env.DISABLE_BABEL_PLUGIN === "1";
// https://babeljs.io/docs/en/config-files#apicache
api.cache.invalidate(() => disableBabelPlugin);
if (disableBabelPlugin) {
console.log("Starting Web example without Babel plugin.");
}
return {
presets: ["babel-preset-expo"],
plugins: disableBabelPlugin ? [] : ["react-native-reanimated/plugin"],
};
};
8 changes: 8 additions & 0 deletions apps/web-example/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import { registerRootComponent } from "expo";

import App from "./App";

// registerRootComponent calls AppRegistry.registerComponent('main', () => App);
// It also ensures that whether you load the app in Expo Go or in a native build,
// the environment is set up appropriately
registerRootComponent(App);
18 changes: 18 additions & 0 deletions apps/web-example/metro.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");

// Find the project and workspace directories
const projectRoot = __dirname;
// This can be replaced with `find-yarn-workspace-root`
const monorepoRoot = path.resolve(projectRoot, "../..");

const config = getDefaultConfig(projectRoot);
// 1. Watch all files within the monorepo
config.watchFolders = [monorepoRoot];
// 2. Let Metro know where to resolve packages and in what order
config.resolver.nodeModulesPaths = [
path.resolve(projectRoot, "node_modules"),
path.resolve(monorepoRoot, "node_modules"),
];

module.exports = config;
30 changes: 30 additions & 0 deletions apps/web-example/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"name": "web-example",
"main": "index.js",
"version": "0.0.1",
"scripts": {
"start": "expo start --web",
"start:noplugin": "DISABLE_BABEL_PLUGIN=1 yarn start",
"lint": "eslint --max-warnings=0 .",
"production": "yarn expo export -p web && yarn serve dist --single",
"build": ""
},
"dependencies": {
"@expo/vector-icons": "^14.0.0",
"@react-navigation/native": "^6.0.2",
"common-app": "workspace:*",
"expo": "~51.0.2",
"react": "18.2.0",
"react-dom": "18.2.0",
"react-native": "0.74.0",
"react-native-reanimated": "workspace:*",
"react-native-web": "0.19.11"
},
"devDependencies": {
"@babel/core": "^7.20.0",
"@expo/metro-runtime": "^3.2.1",
"serve": "^14.2.3",
"typescript": "~5.3.3"
},
"private": true
}
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,14 @@
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true,
"rootDir": "..",
"paths": {
"react-native-reanimated": ["./src"]
"@/*": [
"./*"
]
}
}
},
"include": [
"**/*.ts",
"**/*.tsx"
]
}
5 changes: 0 additions & 5 deletions packages/react-native-reanimated/WebExample/.eslintrc.js

This file was deleted.

This file was deleted.

7 changes: 0 additions & 7 deletions packages/react-native-reanimated/WebExample/.prettierrc.js

This file was deleted.

3 changes: 0 additions & 3 deletions packages/react-native-reanimated/WebExample/App.tsx

This file was deleted.

33 changes: 0 additions & 33 deletions packages/react-native-reanimated/WebExample/app.json

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
26 changes: 0 additions & 26 deletions packages/react-native-reanimated/WebExample/babel.config.js

This file was deleted.

37 changes: 0 additions & 37 deletions packages/react-native-reanimated/WebExample/package.json

This file was deleted.

14 changes: 0 additions & 14 deletions packages/react-native-reanimated/WebExample/webpack.config.js

This file was deleted.

Loading