Skip to content

Commit a7b37b4

Browse files
authored
Merge pull request #2 from Braden1996/feature/readme-improvements
Improve READMEs across packages and simplify repo deps
2 parents 21ba644 + f7d0baa commit a7b37b4

File tree

11 files changed

+151
-269
lines changed

11 files changed

+151
-269
lines changed

package.json

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,19 @@
2525
"lint-fix": "turbo run lint-fix",
2626
"clean": "turbo run clean",
2727
"clean-node-modules": "rm -rf **/node_modules",
28-
"graph": "turbo run build --graph=graph.pdf"
28+
"graph": "turbo run build --graph=graph.pdf",
29+
"root:eslint": "cd $INIT_CWD && eslint",
30+
"root:rimraf": "cd $INIT_CWD && rimraf",
31+
"root:tsc": "cd $INIT_CWD && tsc"
2932
},
3033
"devDependencies": {
34+
"eslint": "8.32.0",
3135
"eslint-config-universe": "^11.1.1",
36+
"prettier": "^2.8.3",
37+
"rimraf": "^4.3.0",
3238
"syncpack": "^9.3.2",
33-
"turbo": "latest"
39+
"turbo": "latest",
40+
"typescript": "~4.9.4"
3441
},
3542
"workspaces": {
3643
"packages": [

packages/deep-freeze/package.json

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -27,26 +27,27 @@
2727
"scripts": {
2828
"build": "bob build",
2929
"test": "yarn run test-typescript",
30-
"test-typescript": "tsc --noEmit",
31-
"lint": "eslint ./src --ext .ts",
30+
"test-typescript": "yarn run root:tsc --noEmit",
31+
"lint": "yarn run root:eslint ./src --ext .ts",
3232
"lint-fix": "yarn run lint --fix",
33-
"clean": "rm -rf dist .turbo"
33+
"clean": "yarn run root:rimraf dist .turbo"
3434
},
3535
"devDependencies": {
3636
"@braden1996/tsconfig": "^0.0.1",
37-
"eslint": "8.32.0",
38-
"eslint-config-universe": "^11.1.1",
39-
"prettier": "^2.8.3",
40-
"react-native-builder-bob": "^0.20.3",
41-
"typescript": "~4.9.4"
37+
"react-native-builder-bob": "^0.20.3"
4238
},
4339
"react-native-builder-bob": {
4440
"source": "src",
4541
"output": "dist",
4642
"targets": [
4743
"commonjs",
4844
"module",
49-
"typescript"
45+
[
46+
"typescript",
47+
{
48+
"tsc": "../../node_modules/.bin/tsc"
49+
}
50+
]
5051
]
5152
},
5253
"eslintConfig": {

packages/example/client-shared/package.json

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -8,22 +8,18 @@
88
"type": "module",
99
"scripts": {
1010
"test": "yarn run test-typescript",
11-
"test-typescript": "tsc --noEmit",
12-
"lint": "eslint ./src --ext .js,.ts,.tsx",
11+
"test-typescript": "yarn run root:tsc --noEmit",
12+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
1313
"lint-fix": "yarn run lint --fix",
14-
"clean": "rm -rf .turbo"
14+
"clean": "yarn run root:rimraf .turbo"
1515
},
1616
"devDependencies": {
17-
"@braden1996/tsconfig": "^0.0.1",
18-
"eslint": "8.32.0",
19-
"eslint-config-universe": "^11.1.1",
20-
"prettier": "^2.8.3",
21-
"typescript": "~4.9.4"
17+
"@braden1996/tsconfig": "^0.0.1"
2218
},
2319
"peerDependencies": {
24-
"react": "18.2.0",
25-
"replicache": "12.2.0",
26-
"replicache-react": "^2.10.0"
20+
"react": ">=18.2.0",
21+
"replicache": ">=12.2.0",
22+
"replicache-react": ">=2.10.0"
2723
},
2824
"eslintConfig": {
2925
"extends": "universe"

packages/example/mobile-react-native/package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,11 @@
99
"ios": "expo run:ios",
1010
"prebuild": "expo prebuild",
1111
"test": "yarn run test-typescript",
12-
"test-typescript": "tsc --noEmit",
13-
"lint": "eslint ./src/**/*.{ts,tsx}",
12+
"test-typescript": "yarn run root:tsc --noEmit",
13+
"lint": "yarn run root:eslint ./src/**/*.{ts,tsx}",
1414
"lint-fix": "yarn run lint --fix",
15-
"clean": "rm -rf .turbo .expo ios android",
16-
"clean-expo": "rm -rf .expo ios android",
15+
"clean": "yarn run root:rimraf .turbo .expo ios android",
16+
"clean-expo": "yarn run root:rimraf .expo ios android",
1717
"clean-cache": "rm -rf $TMPDIR/metro-cache ~/Library/Developer/Xcode/DerivedData/ && watchman watch-del-all",
1818
"start": "expo start --dev-client"
1919
},
@@ -44,11 +44,7 @@
4444
"@types/react": "^18.0.28",
4545
"@types/react-native": "~0.71.2",
4646
"@types/react-native__assets": "^1.0.0",
47-
"eslint": "8.32.0",
48-
"eslint-config-universe": "^11.1.1",
49-
"get-yarn-workspaces": "^1.0.2",
50-
"prettier": "^2.8.3",
51-
"typescript": "~4.9.4"
47+
"get-yarn-workspaces": "^1.0.2"
5248
},
5349
"eslintConfig": {
5450
"extends": "universe/native"

packages/example/server/package.json

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -27,10 +27,10 @@
2727
"start": "node -r dotenv/config ./dist/server.js",
2828
"dev": "NODE_ENV=development nodemon",
2929
"test": "yarn run test-typescript",
30-
"test-typescript": "tsc --noEmit",
31-
"lint": "eslint ./src --ext .js,.ts,.tsx",
30+
"test-typescript": "yarn run root:tsc --noEmit",
31+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
3232
"lint-fix": "yarn run lint --fix",
33-
"clean": "rm -rf dist .turbo"
33+
"clean": "yarn run root:rimraf dist .turbo"
3434
},
3535
"dependencies": {
3636
"@react-native-replicache/example-shared": "0.0.0",
@@ -45,12 +45,8 @@
4545
"@types/express": "^4.17.13",
4646
"@types/node": "^16.11.50",
4747
"@vercel/ncc": "^0.36.0",
48-
"eslint": "8.32.0",
49-
"eslint-config-universe": "^11.1.1",
5048
"nodemon": "^2.0.19",
51-
"prettier": "^2.8.3",
52-
"ts-node": "^10.9.1",
53-
"typescript": "~4.9.4"
49+
"ts-node": "^10.9.1"
5450
},
5551
"eslintConfig": {
5652
"extends": "universe/native"

packages/example/shared/package.json

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,24 +8,20 @@
88
"type": "module",
99
"scripts": {
1010
"test": "yarn run test-typescript",
11-
"test-typescript": "tsc --noEmit",
12-
"lint": "eslint ./src --ext .js,.ts,.tsx",
11+
"test-typescript": "yarn run root:tsc --noEmit",
12+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
1313
"lint-fix": "yarn run lint --fix",
14-
"clean": "rm -rf dist .turbo"
14+
"clean": "yarn run root:rimraf dist .turbo"
1515
},
1616
"devDependencies": {
1717
"@braden1996/tsconfig": "^0.0.1",
1818
"@types/express": "^4.17.13",
1919
"@types/node": "^16.11.50",
20-
"eslint": "8.32.0",
21-
"eslint-config-universe": "^11.1.1",
2220
"nodemon": "^2.0.19",
23-
"prettier": "^2.8.3",
24-
"ts-node": "^10.9.1",
25-
"typescript": "~4.9.4"
21+
"ts-node": "^10.9.1"
2622
},
2723
"peerDependencies": {
28-
"replicache": "12.2.0"
24+
"replicache": ">=12.2.0"
2925
},
3026
"eslintConfig": {
3127
"extends": "universe"

packages/example/web-react/package.json

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
"start": "vite start",
99
"build": "vite build",
1010
"test": "yarn run test-typescript",
11-
"test-typescript": "tsc --noEmit",
12-
"lint": "eslint ./src --ext .js,.ts,.tsx",
11+
"test-typescript": "yarn run root:tsc --noEmit",
12+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
1313
"lint-fix": "yarn run lint --fix",
14-
"clean": "rm -rf dist .turbo"
14+
"clean": "yarn run root:rimraf dist .turbo"
1515
},
1616
"dependencies": {
1717
"@react-native-replicache/example-client-shared": "0.0.0",
@@ -26,16 +26,10 @@
2626
},
2727
"devDependencies": {
2828
"@braden1996/tsconfig": "^0.0.1",
29-
"@rocicorp/eslint-config": "^0.1.2",
30-
"@rocicorp/prettier-config": "^0.1.1",
3129
"@types/babel__core": "^7.20.0",
3230
"@types/react": "^18.0.28",
3331
"@types/react-dom": "^18.0.6",
3432
"@vitejs/plugin-react": "^2.0.1",
35-
"concurrently": "^7.4.0",
36-
"eslint": "8.32.0",
37-
"eslint-config-universe": "^11.1.1",
38-
"prettier": "^2.8.3",
3933
"typescript": "~4.9.4",
4034
"vite": "^3.0.7"
4135
},

packages/react-native-expo-sqlite/package.json

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -28,34 +28,35 @@
2828
"scripts": {
2929
"build": "bob build",
3030
"test": "yarn run test-typescript",
31-
"test-typescript": "tsc --noEmit",
32-
"lint": "eslint ./src --ext .js,.ts,.tsx",
31+
"test-typescript": "yarn run root:tsc --noEmit",
32+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
3333
"lint-fix": "yarn run lint --fix",
34-
"clean": "rm -rf dist .turbo"
34+
"clean": "yarn run root:rimraf dist .turbo"
3535
},
3636
"dependencies": {
3737
"@react-native-replicache/replicache-generic-sqlite": "1.0.0"
3838
},
3939
"devDependencies": {
4040
"@braden1996/tsconfig": "^0.0.1",
4141
"@types/react": "^18.0.28",
42-
"eslint": "8.32.0",
43-
"eslint-config-universe": "^11.1.1",
44-
"prettier": "^2.8.3",
45-
"react-native-builder-bob": "^0.20.3",
46-
"typescript": "~4.9.4"
42+
"react-native-builder-bob": "^0.20.3"
4743
},
4844
"peerDependencies": {
49-
"expo-sqlite": "11.0.0",
50-
"react-native": "^0.71.0"
45+
"expo-sqlite": ">=11.0.0",
46+
"react-native": ">=0.71.0"
5147
},
5248
"react-native-builder-bob": {
5349
"source": "src",
5450
"output": "dist",
5551
"targets": [
5652
"commonjs",
5753
"module",
58-
"typescript"
54+
[
55+
"typescript",
56+
{
57+
"tsc": "../../node_modules/.bin/tsc"
58+
}
59+
]
5960
]
6061
},
6162
"eslintConfig": {

packages/react-native-quick-sqlite/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -28,33 +28,34 @@
2828
"scripts": {
2929
"build": "bob build",
3030
"test": "yarn run test-typescript",
31-
"test-typescript": "tsc --noEmit",
32-
"lint": "eslint ./src --ext .js,.ts,.tsx",
31+
"test-typescript": "yarn run root:tsc --noEmit",
32+
"lint": "yarn run root:eslint ./src --ext .js,.ts,.tsx",
3333
"lint-fix": "yarn run lint --fix",
34-
"clean": "rm -rf dist .turbo"
34+
"clean": "yarn run root:rimraf dist .turbo"
3535
},
3636
"dependencies": {
3737
"@react-native-replicache/replicache-generic-sqlite": "1.0.0"
3838
},
3939
"devDependencies": {
4040
"@braden1996/tsconfig": "^0.0.1",
4141
"@types/react": "^18.0.28",
42-
"eslint": "8.32.0",
43-
"eslint-config-universe": "^11.1.1",
44-
"prettier": "^2.8.3",
45-
"react-native-builder-bob": "^0.20.3",
46-
"typescript": "~4.9.4"
42+
"react-native-builder-bob": "^0.20.3"
4743
},
4844
"peerDependencies": {
49-
"react-native-quick-sqlite": "8.0.0-beta.2"
45+
"react-native-quick-sqlite": ">=8.0.0-beta.2"
5046
},
5147
"react-native-builder-bob": {
5248
"source": "src",
5349
"output": "dist",
5450
"targets": [
5551
"commonjs",
5652
"module",
57-
"typescript"
53+
[
54+
"typescript",
55+
{
56+
"tsc": "../../node_modules/.bin/tsc"
57+
}
58+
]
5859
]
5960
},
6061
"eslintConfig": {

packages/replicache-generic-sqlite/package.json

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -30,33 +30,34 @@
3030
"scripts": {
3131
"build": "bob build",
3232
"test": "yarn run test-typescript",
33-
"test-typescript": "tsc --noEmit",
34-
"lint": "eslint ./src --ext .ts",
33+
"test-typescript": "yarn run root:tsc --noEmit",
34+
"lint": "yarn run root:eslint ./src --ext .ts",
3535
"lint-fix": "yarn run lint --fix",
36-
"clean": "rm -rf dist .turbo"
36+
"clean": "yarn run root:rimraf dist .turbo"
3737
},
3838
"dependencies": {
3939
"@react-native-replicache/deep-freeze": "1.0.0"
4040
},
4141
"devDependencies": {
4242
"@braden1996/tsconfig": "^0.0.1",
43-
"eslint": "8.32.0",
44-
"eslint-config-universe": "^11.1.1",
45-
"prettier": "^2.8.3",
4643
"react-native-builder-bob": "^0.20.3",
47-
"replicache": "12.2.0",
48-
"typescript": "~4.9.4"
44+
"replicache": "12.2.0"
4945
},
5046
"peerDependencies": {
51-
"replicache": "12.2.0"
47+
"replicache": ">=12.2.0"
5248
},
5349
"react-native-builder-bob": {
5450
"source": "src",
5551
"output": "dist",
5652
"targets": [
5753
"commonjs",
5854
"module",
59-
"typescript"
55+
[
56+
"typescript",
57+
{
58+
"tsc": "../../node_modules/.bin/tsc"
59+
}
60+
]
6061
]
6162
},
6263
"eslintConfig": {

0 commit comments

Comments
 (0)