@farm.js/create-app 0.1.0-beta.34 → 0.1.0-beta.36
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +6 -1
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +6 -1
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/_renderers/preact/package.json +2 -2
- package/templates/_renderers/solid/package.json +2 -2
- package/templates/_renderers/svelte/package.json +2 -2
- package/templates/_renderers/vue/package.json +2 -2
- package/templates/auth/package.json +3 -3
- package/templates/basic/package.json +2 -2
- package/templates/better-auth/package.json +3 -3
- package/templates/react-compiler/README.md +62 -0
- package/templates/react-compiler/farm.config.ts +23 -0
- package/templates/react-compiler/gitignore +23 -0
- package/templates/react-compiler/package.json +31 -0
- package/templates/react-compiler/pnpm-workspace.yaml +8 -0
- package/templates/react-compiler/public/favicon.svg +5 -0
- package/templates/react-compiler/scripts/verify-experiment.mjs +113 -0
- package/templates/react-compiler/src/app/globals.css +470 -0
- package/templates/react-compiler/src/app/layout.tsx +22 -0
- package/templates/react-compiler/src/app/page.tsx +47 -0
- package/templates/react-compiler/src/components/compiler-comparison.tsx +93 -0
- package/templates/react-compiler/src/components/resource-links.tsx +78 -0
- package/templates/react-compiler/src/farm.d.ts +73 -0
- package/templates/react-compiler/src/lib/api.generated.ts +10 -0
- package/templates/react-compiler/tsconfig.json +24 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Generated by Farm.js. Do not edit.
|
|
3
|
+
* Contains project-specific route, environment, and internationalization types.
|
|
4
|
+
*/
|
|
5
|
+
|
|
6
|
+
import "@farm.js/core/image";
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Auto-generated route types from src/app.
|
|
10
|
+
* Link href and route component props are typed automatically from generated declarations.
|
|
11
|
+
* Regenerated on dev start and when routes change.
|
|
12
|
+
* Set suppressLintOnLink: true in farm.config.ts to accept any string on Link href.
|
|
13
|
+
*/
|
|
14
|
+
export type RoutePath = "/";
|
|
15
|
+
export type RoutePattern = "/";
|
|
16
|
+
export type RouteModulePattern = "/";
|
|
17
|
+
declare module "@farm.js/core/client" {
|
|
18
|
+
interface LinkDefaultRoute {
|
|
19
|
+
_: import("./farm").RoutePath;
|
|
20
|
+
pattern: import("./farm").RoutePattern;
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
declare module "@farm.js/core" {
|
|
25
|
+
interface LinkDefaultRoute {
|
|
26
|
+
_: import("./farm").RoutePath;
|
|
27
|
+
pattern: import("./farm").RoutePattern;
|
|
28
|
+
}
|
|
29
|
+
// Ensure root import ("@farm.js/core") uses the same typed Link signature as client entry.
|
|
30
|
+
const Link: typeof import("@farm.js/core/client").Link;
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
// Internal declaration path used by @farm.js/core root type re-exports.
|
|
34
|
+
declare module "@farm.js/core/dist/client.js" {
|
|
35
|
+
interface LinkDefaultRoute {
|
|
36
|
+
_: import("./farm").RoutePath;
|
|
37
|
+
pattern: import("./farm").RoutePattern;
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
declare global {
|
|
42
|
+
namespace FarmJS {
|
|
43
|
+
interface RouteRegistry {
|
|
44
|
+
pattern: import("./farm").RouteModulePattern;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
}
|
|
48
|
+
|
|
49
|
+
/**
|
|
50
|
+
* Auto-generated env types from farm.config.
|
|
51
|
+
* Regenerated on dev start, build, and farm generate.
|
|
52
|
+
*/
|
|
53
|
+
import type FarmConfig from "../farm.config";
|
|
54
|
+
import type { InferEnv } from "@farm.js/core/env";
|
|
55
|
+
|
|
56
|
+
type FarmConfigEnv = typeof FarmConfig extends { env?: infer TEnv } ? NonNullable<TEnv> : never;
|
|
57
|
+
type FarmResolvedEnv = [FarmConfigEnv] extends [never]
|
|
58
|
+
? { server: {}; public: {} }
|
|
59
|
+
: InferEnv<FarmConfigEnv>;
|
|
60
|
+
|
|
61
|
+
declare module "@farm.js/core/env" {
|
|
62
|
+
interface FarmEnvTypes {
|
|
63
|
+
server: FarmResolvedEnv["server"];
|
|
64
|
+
public: FarmResolvedEnv["public"];
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
declare module "@farm.js/core" {
|
|
69
|
+
interface FarmEnvTypes {
|
|
70
|
+
server: FarmResolvedEnv["server"];
|
|
71
|
+
public: FarmResolvedEnv["public"];
|
|
72
|
+
}
|
|
73
|
+
}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Auto-generated API router types
|
|
3
|
+
* This file is automatically generated - do not edit manually
|
|
4
|
+
*
|
|
5
|
+
* This file contains only TypeScript types for the API client.
|
|
6
|
+
* Runtime imports are used only at the type level.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
// Type-only representation of your API routes
|
|
10
|
+
export type APIRouter = {};
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"compilerOptions": {
|
|
3
|
+
"target": "ES2020",
|
|
4
|
+
"useDefineForClassFields": true,
|
|
5
|
+
"lib": ["ES2020", "DOM", "DOM.Iterable"],
|
|
6
|
+
"module": "ESNext",
|
|
7
|
+
"skipLibCheck": true,
|
|
8
|
+
"moduleResolution": "bundler",
|
|
9
|
+
"baseUrl": ".",
|
|
10
|
+
"paths": {
|
|
11
|
+
"@/*": ["./src/*"]
|
|
12
|
+
},
|
|
13
|
+
"allowImportingTsExtensions": true,
|
|
14
|
+
"resolveJsonModule": true,
|
|
15
|
+
"isolatedModules": true,
|
|
16
|
+
"noEmit": true,
|
|
17
|
+
"jsx": "react-jsx",
|
|
18
|
+
"strict": true,
|
|
19
|
+
"noUnusedLocals": true,
|
|
20
|
+
"noUnusedParameters": true,
|
|
21
|
+
"noFallthroughCasesInSwitch": true
|
|
22
|
+
},
|
|
23
|
+
"include": ["src", "farm.config.ts"]
|
|
24
|
+
}
|