Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
83 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
b85a590
many good change
tjzel May 14, 2024
78f2ecf
close to fin
tjzel May 15, 2024
b974616
fin moving
tjzel May 15, 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
24a3efe
fix
tjzel May 29, 2024
b20c1ce
Merge branch '@tjzel/monorepo-make-reanimated-a-workspace' into @tjze…
tjzel May 29, 2024
c8a4cab
fix
tjzel May 29, 2024
77c7eb9
Merge branch '@tjzel/monorepo-github-actions' into @tjzel/monorepo-hu…
tjzel May 29, 2024
e9e8df6
Merge branch '@tjzel/monorepo-husky-and-precommit' into @tjzel/monore…
tjzel May 29, 2024
767119e
Merge branch '@tjzel/monorepo-make-reanimated-a-workspace' into @tjze…
tjzel May 29, 2024
14cd18d
Merge branch '@tjzel/monorepo-webexample' into @tjzel/monorepo-configs
tjzel May 29, 2024
56ed840
rm
tjzel May 29, 2024
4174334
another successful config
tjzel Jun 1, 2024
f30730f
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-husky-and-precommit
tjzel Jun 1, 2024
d88f930
Merge branch '@tjzel/monorepo-husky-and-precommit' into @tjzel/monore…
tjzel Jun 1, 2024
0adc59f
Merge branch '@tjzel/monorepo-make-reanimated-a-workspace' into @tjze…
tjzel Jun 1, 2024
17bc43f
Merge branch '@tjzel/monorepo-webexample' into @tjzel/monorepo-configs
tjzel Jun 1, 2024
aada5e9
eslint-plugin configs
tjzel Jun 5, 2024
c7c94e4
Merge branch '@tjzel/monorepo' into @tjzel/monorepo-configs
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
91 changes: 91 additions & 0 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,91 @@
module.exports = {
root: true,
overrides: [
{
files: ['*.ts', '*.tsx'],
parser: '@typescript-eslint/parser',
parserOptions: {
project: true,
tsconfigRootDir: __dirname,
},
extends: ['plugin:@typescript-eslint/recommended-type-checked'],
rules: {
'@typescript-eslint/no-unsafe-call': 'off',
'@typescript-eslint/no-unsafe-member-access': 'off',
'@typescript-eslint/no-unsafe-return': 'off',
'@typescript-eslint/no-unsafe-assignment': 'off',
'@typescript-eslint/no-unsafe-argument': 'off',
'@typescript-eslint/no-explicit-any': 'warn',
'@typescript-eslint/ban-ts-comment': [
'error',
{
'ts-ignore': 'allow-with-description',
'ts-expect-error': 'allow-with-description',
},
],
'@typescript-eslint/no-unused-vars': [
'error',
{ argsIgnorePattern: '^_' },
],
'@typescript-eslint/no-var-requires': 'warn',
'@typescript-eslint/consistent-type-imports': [
'error',
{ prefer: 'type-imports' },
],
'@typescript-eslint/consistent-type-exports': [
'error',
{ fixMixedExportsWithInlineTypeSpecifier: false },
],
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-duplicate-type-constituents': 'error',
'@typescript-eslint/no-shadow': 'error',
},
},
],
parserOptions: {
requireConfigFile: false,
},
extends: [
'standard',
'prettier',
'plugin:import/typescript',
'plugin:react-hooks/recommended',
],
plugins: [
'react',
'react-native',
'import',
'jest',
'@typescript-eslint',
'eslint-plugin-tsdoc',
],
env: {
'react-native/react-native': true,
'jest/globals': true,
},
settings: {
'import/resolver': {
'babel-module': {
extensions: ['.js', '.jsx', '.ts', '.tsx'],
},
},
},
rules: {
'object-shorthand': 'error',
curly: ['error', 'all'],
'no-case-declarations': 'error',
'import/no-unresolved': 'error',
'import/consistent-type-specifier-style': ['error', 'prefer-top-level'],
'react/jsx-uses-vars': 'error',
'react/jsx-uses-react': 'error',
'no-use-before-define': 'off',
eqeqeq: 'error',
'no-unreachable': 'error',
'tsdoc/syntax': 'error',
'jest/no-disabled-tests': 'warn',
'jest/no-focused-tests': 'error',
'jest/no-identical-title': 'error',
'jest/prefer-to-have-length': 'warn',
'jest/valid-expect': 'error',
},
};
2 changes: 1 addition & 1 deletion .github/workflows/android-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ jobs:
- name: Setup Java 17
uses: actions/setup-java@v3
with:
distribution: "zulu"
distribution: 'zulu'
java-version: 17

- name: Restore Reanimated node_modules from cache
Expand Down
4 changes: 2 additions & 2 deletions apps/common-app/.eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
module.exports = {
root: true,
extends: ['@react-native', 'prettier'],
plugins: ['eslint-plugin-no-inline-styles', 'reanimated'],
extends: ['@react-native', 'prettier', '../../.eslintrc.js'],
plugins: ['eslint-plugin-no-inline-styles', 'eslint-plugin-reanimated'],
ignorePatterns: ['**/*.snapshot.ts'],
rules: {
'@typescript-eslint/no-use-before-define': 'off',
Expand Down
1 change: 1 addition & 0 deletions apps/common-app/.prettierignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.snapshot.ts
2 changes: 1 addition & 1 deletion apps/common-app/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: ['../plugin'],
plugins: ['react-native-reanimated/plugin'],
};
10 changes: 6 additions & 4 deletions apps/common-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,8 @@
"private": true,
"scripts": {
"build": "yarn patch-package",
"lint": "eslint --max-warnings=0 ."
"lint": "eslint --max-warnings=0 .",
"format": "prettier --write --list-different ."
},
"peerDependencies": {
"@fortawesome/fontawesome-svg-core": "*",
Expand Down Expand Up @@ -43,9 +44,10 @@
"@tsconfig/react-native": "^3.0.0",
"@types/d3-shape": "^3.1.1",
"d3-shape": "^3.2.0",
"eslint": "^8.0.0-0",
"eslint": "^8.57.0",
"eslint-plugin-reanimated": "workspace:*",
"patch-package": "^7.0.0",
"prettier": "^2.8.7",
"prettier": "2.8.8",
"react": "18.2.0",
"react-native": "0.74.0",
"react-native-gesture-handler": "^2.16.0",
Expand All @@ -54,6 +56,6 @@
"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",
"typescript": "^5.0.2"
"typescript": "~5.3.0"
}
}
10 changes: 1 addition & 9 deletions apps/common-app/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{
"extends": "../react-native-reanimated/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"react-native-reanimated": ["../"],
"react": ["./node_modules/@types/react"]
}
},
"exclude": []
"extends": "../../tsconfig.json"
}
4 changes: 0 additions & 4 deletions apps/paper-example/.eslintrc.js

This file was deleted.

7 changes: 0 additions & 7 deletions apps/paper-example/.prettierrc.js

This file was deleted.

4 changes: 3 additions & 1 deletion apps/paper-example/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
module.exports = {
presets: ['module:@react-native/babel-preset'],
plugins: [['react-native-reanimated/plugin', {processNestedWorklets: true}]],
plugins: [
['react-native-reanimated/plugin', { processNestedWorklets: true }],
],
};
8 changes: 2 additions & 6 deletions apps/paper-example/index.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,5 @@
/**
* @format
*/

import {AppRegistry} from 'react-native';
import { AppRegistry } from 'react-native';
import App from './App';
import {name as appName} from './app.json';
import { name as appName } from './app.json';

AppRegistry.registerComponent(appName, () => App);
Original file line number Diff line number Diff line change
@@ -1,14 +1,14 @@
{
"images" : [
"images": [
{
"filename" : "1024.png",
"idiom" : "universal",
"platform" : "ios",
"size" : "1024x1024"
"filename": "1024.png",
"idiom": "universal",
"platform": "ios",
"size": "1024x1024"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"info" : {
"version" : 1,
"author" : "xcode"
"info": {
"version": 1,
"author": "xcode"
}
}
Original file line number Diff line number Diff line change
@@ -1,21 +1,21 @@
{
"images" : [
"images": [
{
"filename" : "reanimated_logo_transparent_balanced.png",
"idiom" : "universal",
"scale" : "1x"
"filename": "reanimated_logo_transparent_balanced.png",
"idiom": "universal",
"scale": "1x"
},
{
"idiom" : "universal",
"scale" : "2x"
"idiom": "universal",
"scale": "2x"
},
{
"idiom" : "universal",
"scale" : "3x"
"idiom": "universal",
"scale": "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
"info": {
"author": "xcode",
"version": 1
}
}
3 changes: 0 additions & 3 deletions apps/paper-example/jest.config.js

This file was deleted.

2 changes: 1 addition & 1 deletion apps/paper-example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const {getDefaultConfig, mergeConfig} = require('@react-native/metro-config');
const { getDefaultConfig, mergeConfig } = require('@react-native/metro-config');

const path = require('path');

Expand Down
5 changes: 3 additions & 2 deletions apps/paper-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"android": "react-native run-android",
"ios": "react-native run-ios",
"lint": "eslint --max-warnings=0 .",
"format": "prettier --write --list-different .",
"start": "react-native start",
"test": "jest"
},
Expand Down Expand Up @@ -39,12 +40,12 @@
"@types/react": "^18.2.6",
"@types/react-test-renderer": "^18.0.0",
"babel-jest": "^29.6.3",
"eslint": "^8.0.0-0",
"eslint": "^8.57.0",
"jest": "^29.6.3",
"patch-package": "^8.0.0",
"prettier": "2.8.8",
"react-test-renderer": "18.2.0",
"typescript": "5.0.4"
"typescript": "~5.3.0"
},
"engines": {
"node": ">=18"
Expand Down
10 changes: 1 addition & 9 deletions apps/paper-example/tsconfig.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,3 @@
{
"extends": "../react-native-reanimated/tsconfig.json",
"compilerOptions": {
"baseUrl": ".",
"paths": {
"react-native-reanimated": ["../"],
"react": ["./node_modules/@types/react"]
}
},
"exclude": []
"extends": "../../tsconfig.json"
}
2 changes: 1 addition & 1 deletion apps/web-example/App.tsx
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import Apps from "common-app";
import Apps from 'common-app';

export default function App() {
return <Apps />;
Expand Down
8 changes: 4 additions & 4 deletions apps/web-example/babel.config.js
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
module.exports = function (api) {
const disableBabelPlugin = process.env.DISABLE_BABEL_PLUGIN === "1";
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.");
console.log('Starting Web example without Babel plugin.');
}
return {
presets: ["babel-preset-expo"],
plugins: disableBabelPlugin ? [] : ["react-native-reanimated/plugin"],
presets: ['babel-preset-expo'],
plugins: disableBabelPlugin ? [] : ['react-native-reanimated/plugin'],
};
};
4 changes: 2 additions & 2 deletions apps/web-example/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import { registerRootComponent } from "expo";
import { registerRootComponent } from 'expo';

import App from "./App";
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,
Expand Down
10 changes: 5 additions & 5 deletions apps/web-example/metro.config.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
const { getDefaultConfig } = require("expo/metro-config");
const path = require("path");
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 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"),
path.resolve(projectRoot, 'node_modules'),
path.resolve(monorepoRoot, 'node_modules'),
];

module.exports = config;
6 changes: 5 additions & 1 deletion apps/web-example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"start": "expo start --web",
"start:noplugin": "DISABLE_BABEL_PLUGIN=1 yarn start",
"lint": "eslint --max-warnings=0 .",
"format": "prettier --write --list-different .",
"production": "yarn expo export -p web && yarn serve dist --single",
"build": ""
},
Expand All @@ -23,8 +24,11 @@
"devDependencies": {
"@babel/core": "^7.20.0",
"@expo/metro-runtime": "^3.2.1",
"@types/eslint": "^8",
"eslint": "^8.57.0",
"prettier": "2.8.8",
"serve": "^14.2.3",
"typescript": "~5.3.3"
"typescript": "~5.3.0"
},
"private": true
}
Loading