Skip to content

Commit 24dc52d

Browse files
authored
chore(🐙): remove unused codegen utilities from packages/webgpu (#424)
1 parent d282af7 commit 24dc52d

11 files changed

Lines changed: 7 additions & 1388 deletions

File tree

packages/webgpu/CONTRIBUTING.md

Lines changed: 4 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ From the repo root: `yarn lint` · `yarn tsc` · `yarn build:docs`
1515

1616
Tests (from `packages/webgpu/`): `yarn test:ref` (Chrome reference) · `yarn test` (E2E — open the example app on the E2E screen) · `yarn test:plugin` (Expo config plugin unit tests)
1717

18-
Other `packages/webgpu` scripts: `yarn codegen` · `yarn clean-dawn` · `yarn build-dawn`
18+
Other `packages/webgpu` scripts: `yarn clean-dawn` · `yarn build-dawn`
1919

2020
## Expo config plugin
2121

@@ -39,18 +39,12 @@ Steps to bump to a new Dawn version (`chromium/<N>`):
3939
git submodule update --remote externals/dawn
4040
```
4141

42-
2. **Regenerate bindings.** Dawn's `src/dawn/dawn.json` drives our codegen, so re-run it after every bump:
42+
2. **Publish prebuilt binaries.** Trigger the **Build Dawn** workflow (`.github/workflows/build-dawn.yml`, `workflow_dispatch`). It reads the branch from `.gitmodules`, builds Android + Apple, and creates the `dawn-chromium-<N>` release with the headers, the Android `.so`s, and the Apple `.xcframework`. (To build locally instead, run `yarn build-dawn`; this requires the Android NDK and Xcode toolchains.)
4343

44-
```sh
45-
cd packages/webgpu && yarn codegen
46-
```
47-
48-
3. **Publish prebuilt binaries.** Trigger the **Build Dawn** workflow (`.github/workflows/build-dawn.yml`, `workflow_dispatch`). It reads the branch from `.gitmodules`, builds Android + Apple, and creates the `dawn-chromium-<N>` release with the headers, the Android `.so`s, and the Apple `.xcframework`. (To build locally instead, run `yarn build-dawn`; this requires the Android NDK and Xcode toolchains.)
49-
50-
4. **Pull the new binaries** once the release exists:
44+
3. **Pull the new binaries** once the release exists:
5145

5246
```sh
5347
cd packages/webgpu && yarn install-dawn
5448
```
5549

56-
5. **Verify and commit.** Build and run the example app, then commit the submodule bump together with the updated `.gitmodules`, `package.json`, and any regenerated code under `src/` and `cpp/`.
50+
4. **Verify and commit.** Build and run the example app, then commit the submodule bump together with the updated `.gitmodules` and `package.json`.

packages/webgpu/package.json

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -40,8 +40,7 @@
4040
"clang-format-android": "find android/cpp/ -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.cpp\" | xargs clang-format -i",
4141
"clang-format-common": "find cpp/rnwgpu -iname \"*.h\" -o -iname \"*.m\" -o -iname \"*.cpp\" | xargs clang-format -i",
4242
"cpplint": "cpplint --linelength=230 --filter=-legal/copyright,-whitespace/indent,-whitespace/comments,-whitespace/ending_newline,-build/include_order,-runtime/references,-readability/todo,-whitespace/blank_line,-whitespace/todo,-runtime/int,-build/c++11,-whitespace/parens --exclude=example --exclude=android/.cxx --exclude=cpp/webgpu --exclude=cpp/dawn --exclude=ios --exclude=android/build --exclude=node_modules --recursive .",
43-
"install-dawn": "tsx scripts/install-dawn.ts",
44-
"codegen": "tsx scripts/codegen/codegen.ts && yarn clang-format"
43+
"install-dawn": "tsx scripts/install-dawn.ts"
4544
},
4645
"keywords": [
4746
"react-native",
@@ -72,7 +71,6 @@
7271
"@semantic-release/github": "^10.3.3",
7372
"@semantic-release/release-notes-generator": "^14.0.1",
7473
"@types/jest": "^29.5.12",
75-
"@types/lodash": "^4.17.5",
7674
"@types/node": "^20.14.7",
7775
"@types/pixelmatch": "5.2.4",
7876
"@types/pngjs": "^6.0.5",
@@ -89,7 +87,6 @@
8987
"eslint-plugin-jest": "^28.8.2",
9088
"eslint-plugin-prettier": "^5.2.1",
9189
"jest": "^29.7.0",
92-
"lodash": "^4.17.21",
9390
"pixelmatch": "5.3.0",
9491
"pngjs": "^7.0.0",
9592
"prettier": "^3.0.3",
@@ -105,7 +102,6 @@
105102
"semantic-release": "^24.1.0",
106103
"semantic-release-yarn": "^3.0.2",
107104
"teapot": "^1.0.0",
108-
"ts-morph": "^22.0.0",
109105
"tsx": "^4.20.5",
110106
"typescript": "^5.2.2",
111107
"webgpu": "0.4.0",

packages/webgpu/scripts/codegen/Descriptors.ts

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

0 commit comments

Comments
 (0)