Skip to content
Source
Sign inSign up
TanStack/cli

feat(create): add Elysia and Eden integration #573

Mergedtannerlinsleymerged 1 commit intomain fromrefs/pull/573/headmerged by tannerlinsley

Showing 9 changed files with 94 additions and 0 deletions (loading 6).

x
0 of 9 viewed, 9 left
5 additions and 0 deletions.changeset/elysia-eden-addon.mdAdded
View file
@@ -0,0 +1,5 @@
+---
+'@tanstack/create': minor
+---
+​
+Add a React Elysia and Eden Treaty integration with a same-origin typed API route and greeting demo.
80 additions and 0 deletionspackages/cli/tests-e2e/elysia-smoke.spec.tsAdded
View file
@@ -0,0 +1,80 @@
+import { writeFile } from 'node:fs/promises'
+import { join } from 'node:path'
+import { expect, test } from '@playwright/test'
+import {
+ attachRuntimeGuards,
+ createReactAppFixture,
+ optimizePageForFastE2E,
+} from './helpers'
+​
+for (const existing of [false, true]) {
+ test(`@blocking uses Elysia and Eden in a ${existing ? 'existing blank' : 'standard'} React app`, async ({
+ page,
+ }) => {
+ const fixture = await createReactAppFixture({
+ appName: `elysia-${existing ? 'existing' : 'standard'}`,
+ blank: existing,
+ packageManager: existing ? 'pnpm' : 'npm',
+ ...(existing ? { postCreateAddOns: ['elysia'] } : { addOns: ['elysia'] }),
+ runQualityGatesChecks: true,
+ afterCreate: existing
+ ? undefined
+ : async (appDir) => {