feat(@typegpu/cli): React Native Expo template#2567
Merged
Conversation
|
pkg.pr.new packages benchmark commit |
a46fdff to
91dc482
Compare
📊 Bundle Size Comparison
👀 Notable resultsStatic test results:No major changes. Dynamic test results:No major changes. 📋 All resultsClick to reveal the results table (355 entries).
If you wish to run a comparison for other, slower bundlers, run the 'Tree-shake test' from the GitHub Actions menu. |
Resolution Time Benchmark---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Random Branching (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.87, 1.70, 3.78, 5.74, 6.50, 10.25, 19.10, 20.68]
line [0.85, 1.66, 3.65, 5.86, 6.64, 10.33, 18.28, 20.14]
line [0.86, 1.70, 3.56, 6.17, 6.48, 9.18, 20.25, 22.04]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Linear Recursion (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.31, 0.48, 0.67, 0.82, 1.04, 1.07, 1.31, 1.40]
line [0.32, 0.47, 0.58, 0.82, 1.08, 1.09, 1.30, 1.44]
line [0.28, 0.51, 0.65, 0.79, 1.08, 1.08, 1.33, 1.42]
---
config:
themeVariables:
xyChart:
plotColorPalette: "#E63946, #3B82F6, #059669"
---
xychart
title "Full Tree (🔴 PR | 🔵 main | 🟢 release)"
x-axis "max depth" [1, 2, 3, 4, 5, 6, 7, 8]
y-axis "time (ms)"
line [0.72, 1.87, 3.41, 5.24, 10.27, 22.08, 47.23, 98.01]
line [0.88, 1.70, 3.50, 5.27, 10.71, 21.45, 46.32, 97.77]
line [0.76, 1.77, 3.99, 5.75, 10.63, 23.58, 50.04, 100.97]
|
91dc482 to
77aac7e
Compare
iwoplaza
commented
May 28, 2026
There was a problem hiding this comment.
Pull request overview
Adds new TypeGPU CLI starter templates, most notably a React Native Expo template, and updates the CLI scaffolding flow to support templates without index.html.
Changes:
- Added React Native Expo and Vite React templates with TypeGPU examples, configs, assets, and editor settings.
- Updated CLI scaffolding to support optional
index.html, template selection, Expo-specific package manager/run behavior, andrimrafcleanup. - Adjusted root style checks to handle the Expo template separately and updated lockfile dependencies.
Reviewed changes
Copilot reviewed 32 out of 43 changed files in this pull request and generated 2 comments.
Show a summary per file
| File | Description |
|---|---|
package.json |
Updates style-test script for Expo template handling. |
pnpm-lock.yaml |
Adds lockfile entries for rimraf and dependency updates. |
packages/typegpu-cli/package.json |
Adds rimraf dependency. |
packages/typegpu-cli/src/create.ts |
Adds template choices and Expo-specific install/run behavior. |
packages/typegpu-cli/src/utils/files.ts |
Uses rimraf and supports templates without index.html. |
packages/typegpu-cli/templates/template-expo-simple/_gitignore |
Adds Expo/RN ignore rules. |
packages/typegpu-cli/templates/template-expo-simple/_nvmrc |
Sets template Node version. |
packages/typegpu-cli/templates/template-expo-simple/_oxfmtrc.json |
Adds formatter config. |
packages/typegpu-cli/templates/template-expo-simple/_package.json |
Defines Expo template dependencies and scripts. |
packages/typegpu-cli/templates/template-expo-simple/_vscode/settings.json |
Adds VS Code TypeScript settings. |
packages/typegpu-cli/templates/template-expo-simple/_zed/settings.json |
Adds Zed TypeScript settings. |
packages/typegpu-cli/templates/template-expo-simple/App.tsx |
Adds RN app shell. |
packages/typegpu-cli/templates/template-expo-simple/app.json |
Adds Expo app configuration. |
packages/typegpu-cli/templates/template-expo-simple/babel.config.js |
Configures Expo Babel with TypeGPU plugin. |
packages/typegpu-cli/templates/template-expo-simple/components/Shader.tsx |
Adds RN WebGPU shader canvas. |
packages/typegpu-cli/templates/template-expo-simple/index.ts |
Registers Expo root component. |
packages/typegpu-cli/templates/template-expo-simple/oxlint.config.ts |
Adds lint config for Expo template. |
packages/typegpu-cli/templates/template-expo-simple/tsconfig.json |
Adds TypeScript config for Expo template. |
packages/typegpu-cli/templates/template-vite-react/_gitignore |
Adds Vite React ignore rules. |
packages/typegpu-cli/templates/template-vite-react/_nvmrc |
Sets template Node version. |
packages/typegpu-cli/templates/template-vite-react/_oxfmtrc.json |
Adds formatter config. |
packages/typegpu-cli/templates/template-vite-react/_package.json |
Defines Vite React template dependencies and scripts. |
packages/typegpu-cli/templates/template-vite-react/_vscode/settings.json |
Adds VS Code TypeScript settings. |
packages/typegpu-cli/templates/template-vite-react/_zed/settings.json |
Adds Zed TypeScript settings. |
packages/typegpu-cli/templates/template-vite-react/index.html |
Adds Vite HTML entrypoint. |
packages/typegpu-cli/templates/template-vite-react/oxlint.config.ts |
Adds lint config for Vite React template. |
packages/typegpu-cli/templates/template-vite-react/public/favicon.svg |
Adds favicon asset. |
packages/typegpu-cli/templates/template-vite-react/public/icons.svg |
Adds shared icon symbols. |
packages/typegpu-cli/templates/template-vite-react/public/react.svg |
Adds React logo asset. |
packages/typegpu-cli/templates/template-vite-react/public/typegpu-logo-dark.svg |
Adds dark TypeGPU logo asset. |
packages/typegpu-cli/templates/template-vite-react/public/typegpu-logo-light.svg |
Adds light TypeGPU logo asset. |
packages/typegpu-cli/templates/template-vite-react/public/vite.svg |
Adds Vite logo asset. |
packages/typegpu-cli/templates/template-vite-react/src/App.tsx |
Adds React TypeGPU demo UI. |
packages/typegpu-cli/templates/template-vite-react/src/index.css |
Adds template styling. |
packages/typegpu-cli/templates/template-vite-react/src/main.tsx |
Adds React entrypoint. |
packages/typegpu-cli/templates/template-vite-react/tsconfig.app.json |
Adds app TypeScript config. |
packages/typegpu-cli/templates/template-vite-react/tsconfig.json |
Adds TypeScript project references. |
packages/typegpu-cli/templates/template-vite-react/tsconfig.node.json |
Adds Node-side TypeScript config. |
packages/typegpu-cli/templates/template-vite-react/vite.config.ts |
Adds Vite React + TypeGPU plugin config. |
Files not reviewed (1)
- pnpm-lock.yaml: Language not supported
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot Autofix powered by AI <175728472+Copilot@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Changes:
expo/tsconfig.jsonintest:stylescriptrimrafhandles deletion of large directoriesNote:
npm i