Skip to content

Commit b4e8407

Browse files
authored
Add sherif support (#25)
* feature: add sherif for package linting * fix: update README * docs: update README
1 parent e276830 commit b4e8407

File tree

6 files changed

+34
-19
lines changed

6 files changed

+34
-19
lines changed

.husky/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
turbo check -- --staged --no-errors-on-unmatched
1+
bun sherif && turbo check -- --staged --no-errors-on-unmatched

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@ Garden layouting is currently powered by [ELK](https://rtsys.informatik.uni-kiel
2323

2424
## Generate the Schema
2525

26-
`cd apps/cli`, then `cargo run -- $OUTPUT_FILE`. For example, `cargo run -- ../garden.schema.json`.
26+
`cd apps/cli`, then `cargo run -- $OUTPUT_FILE`. For example, `cargo run -- ../../garden.schema.json`.
2727

28-
## Local Development (Library and Web App)
28+
## Generate Types from Schema
2929

30-
The app is a landing page and visualizer for Garden schemas. `cd app`, then continue below.
30+
`cd apps/library && bun generate`
3131

32-
### Generate Types from Schema
32+
## Local Development (Library and Web App)
3333

34-
`cd apps/library && bun generate`
34+
The app is a landing page and visualizer for Garden schemas. From the root directory, run the following:
3535

3636
### Building and Running
3737

apps/library/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
"devDependencies": {
4444
"@tailwindcss/postcss": "^4.1.10",
4545
"@types/node": "^24.0.1",
46-
"@types/react": "^19.1.2",
46+
"@types/react": "19.1.7",
4747
"globby": "^14.1.0",
4848
"tailwindcss": "^4.1.10",
4949
"typescript": "5.8.3",

apps/web/package.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"devDependencies": {
1616
"@tailwindcss/postcss": "^4.1.10",
1717
"@types/bun": "^1.2.15",
18-
"@types/node": "24.0.0",
18+
"@types/node": "^24.0.1",
1919
"@types/react": "19.1.7",
2020
"@types/react-dom": "19.1.6",
2121
"tailwindcss": "^4.1.10",
@@ -34,8 +34,8 @@
3434
"next-themes": "^0.4.6",
3535
"nuqs": "^2.4.3",
3636
"postcss": "^8.5.6",
37-
"react": "19.1.0",
38-
"react-dom": "19.1.0",
37+
"react": "^19.1.0",
38+
"react-dom": "^19.1.0",
3939
"tailwind-merge": "^3.3.1",
4040
"tw-animate-css": "^1.3.4",
4141
"usehooks-ts": "^3.1.1",

bun.lock

Lines changed: 20 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@
1010
"husky": "^9.1.7",
1111
"knip": "^5.60.2",
1212
"pkg-pr-new": "^0.0.51",
13+
"sherif": "^1.6.1",
1314
"turbo": "^2.5.4",
1415
},
1516
},
1617
"apps/library": {
1718
"name": "@omnidotdev/garden",
18-
"version": "0.0.0",
19+
"version": "0.1.4",
1920
"dependencies": {
2021
"@radix-ui/react-dialog": "^1.1.14",
2122
"@radix-ui/react-slot": "^1.2.3",
@@ -31,7 +32,7 @@
3132
"devDependencies": {
3233
"@tailwindcss/postcss": "^4.1.10",
3334
"@types/node": "^24.0.1",
34-
"@types/react": "^19.1.2",
35+
"@types/react": "19.1.7",
3536
"globby": "^14.1.0",
3637
"tailwindcss": "^4.1.10",
3738
"typescript": "5.8.3",
@@ -41,7 +42,6 @@
4142
},
4243
"apps/web": {
4344
"name": "@omnidotdev/garden-app",
44-
"version": "0.0.0",
4545
"dependencies": {
4646
"@monaco-editor/react": "^4.7.0",
4747
"@omnidotdev/garden": "workspace:*",
@@ -55,8 +55,8 @@
5555
"next-themes": "^0.4.6",
5656
"nuqs": "^2.4.3",
5757
"postcss": "^8.5.6",
58-
"react": "19.1.0",
59-
"react-dom": "19.1.0",
58+
"react": "^19.1.0",
59+
"react-dom": "^19.1.0",
6060
"tailwind-merge": "^3.3.1",
6161
"tw-animate-css": "^1.3.4",
6262
"usehooks-ts": "^3.1.1",
@@ -65,7 +65,7 @@
6565
"devDependencies": {
6666
"@tailwindcss/postcss": "^4.1.10",
6767
"@types/bun": "^1.2.15",
68-
"@types/node": "24.0.0",
68+
"@types/node": "^24.0.1",
6969
"@types/react": "19.1.7",
7070
"@types/react-dom": "19.1.6",
7171
"tailwindcss": "^4.1.10",
@@ -905,6 +905,20 @@
905905

906906
"shebang-regex": ["shebang-regex@3.0.0", "", {}, "sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A=="],
907907

908+
"sherif": ["sherif@1.6.1", "", { "optionalDependencies": { "sherif-darwin-arm64": "1.6.1", "sherif-darwin-x64": "1.6.1", "sherif-linux-arm64": "1.6.1", "sherif-linux-x64": "1.6.1", "sherif-windows-arm64": "1.6.1", "sherif-windows-x64": "1.6.1" }, "bin": { "sherif": "index.js" } }, "sha512-ZnwyTnmXoUOPClkOA37JWIyFxCoozMGHmhk/p7XbTREI554XXCnBAn3BMX8UsqkhSzQ9eNQsq4U+jnImEIppsQ=="],
909+
910+
"sherif-darwin-arm64": ["sherif-darwin-arm64@1.6.1", "", { "os": "darwin", "cpu": "arm64" }, "sha512-J15oBJcrnCAZ0rQE8WbMShYw3204A18akCH6C/uZrILTwX/vZyJIqi7lAt5L00LzsadA3HcyQqVjLNNCvuihoQ=="],
911+
912+
"sherif-darwin-x64": ["sherif-darwin-x64@1.6.1", "", { "os": "darwin", "cpu": "x64" }, "sha512-oLA/GtvUasi+qCl35LczOhQ4g/xY2mxE5/eiTYQGT3Ow7FKLscnkE6v5l28bgkFeR/uke0AgZ/CgHhozAf0ulg=="],
913+
914+
"sherif-linux-arm64": ["sherif-linux-arm64@1.6.1", "", { "os": "linux", "cpu": "arm64" }, "sha512-OoltlucT7v9BZdkYZRbs1QU0DYMCQ5qgpMqQdMW1Rq3w3amr7+oEiV9NHntD83udOo8xRxKq0uPXfNYu+VptJw=="],
915+
916+
"sherif-linux-x64": ["sherif-linux-x64@1.6.1", "", { "os": "linux", "cpu": "x64" }, "sha512-qyDyYqpi3ABGkRuCnjnxN3OMT8DxMiiLzhS9p9xC05Y9nr5hjkxvqP4DdJ4e5opm4E7vzRAS7VQoZ6m7h6tsgQ=="],
917+
918+
"sherif-windows-arm64": ["sherif-windows-arm64@1.6.1", "", { "os": "win32", "cpu": "arm64" }, "sha512-wAbCiqP//lo7bZUlHmZUV3/sGjnJxo6QB5/fqhz5/GUeWh4CTyvlSacJKZxLnXnzpiUSeFnWutquWnHkRov5Ug=="],
919+
920+
"sherif-windows-x64": ["sherif-windows-x64@1.6.1", "", { "os": "win32", "cpu": "x64" }, "sha512-2r0qMxZGCMO2aq8Hlq7npxtAsUFVDsEFtUM/6dFo1npa/jHe2mbU7ii/Ymy0bloSa/qw/azrSfRV6GLU7Gjtxg=="],
921+
908922
"signal-exit": ["signal-exit@4.1.0", "", {}, "sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw=="],
909923

910924
"simple-swizzle": ["simple-swizzle@0.2.2", "", { "dependencies": { "is-arrayish": "^0.3.1" } }, "sha512-JA//kQgZtbuY83m+xT+tXJkmJncGMTFT+C+g2h2R9uxkYIrE2yy9sgmcLhCnw57/WSD+Eh3J97FPEDFnbXnDUg=="],
@@ -1063,8 +1077,6 @@
10631077

10641078
"@octokit/request-error/@octokit/types": ["@octokit/types@13.10.0", "", { "dependencies": { "@octokit/openapi-types": "^24.2.0" } }, "sha512-ifLaO34EbbPj0Xgro4G5lP5asESjwHracYJvVaPIyXMuiuXLlhic3S47cBdTb+jfODkTE5YtGCLt3Ay3+J97sA=="],
10651079

1066-
"@omnidotdev/garden-app/@types/node": ["@types/node@24.0.0", "", { "dependencies": { "undici-types": "~7.8.0" } }, "sha512-yZQa2zm87aRVcqDyH5+4Hv9KYgSdgwX1rFnGvpbzMaC7YAljmhBET93TPiTd3ObwTL+gSpIzPKg5BqVxdCvxKg=="],
1067-
10681080
"@rushstack/node-core-library/ajv": ["ajv@8.13.0", "", { "dependencies": { "fast-deep-equal": "^3.1.3", "json-schema-traverse": "^1.0.0", "require-from-string": "^2.0.2", "uri-js": "^4.4.1" } }, "sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA=="],
10691081

10701082
"@rushstack/node-core-library/fs-extra": ["fs-extra@11.3.0", "", { "dependencies": { "graceful-fs": "^4.2.0", "jsonfile": "^6.0.1", "universalify": "^2.0.0" } }, "sha512-Z4XaCL6dUDHfP/jT25jJKMmtxvuwbkrD1vNSMFlo9lNLY2c5FHYSQgHPRZUjAB26TpDEoW9HCOgplrdbaPV/ew=="],

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,11 @@
44
"version": "0.0.0",
55
"packageManager": "bun@1.2.16",
66
"workspaces": [
7-
"apps/*"
7+
"apps/library",
8+
"apps/web"
89
],
910
"scripts": {
11+
"sherif": "sherif",
1012
"release": "bun run --cwd apps/library build && changeset publish",
1113
"prepare": "husky"
1214
},
@@ -20,6 +22,7 @@
2022
"husky": "^9.1.7",
2123
"knip": "^5.60.2",
2224
"pkg-pr-new": "^0.0.51",
25+
"sherif": "^1.6.1",
2326
"turbo": "^2.5.4"
2427
}
2528
}

0 commit comments

Comments
 (0)