@farm.js/create-app 0.1.0-beta.34 → 0.1.0-beta.35
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 +60 -0
- package/templates/react-compiler/farm.config.ts +18 -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 +107 -0
- package/templates/react-compiler/src/app/globals.css +465 -0
- package/templates/react-compiler/src/app/layout.tsx +22 -0
- package/templates/react-compiler/src/app/page.tsx +44 -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 +77 -0
- package/templates/react-compiler/src/lib/api.generated.ts +10 -0
- package/templates/react-compiler/tsconfig.json +24 -0
package/dist/index.js
CHANGED
|
@@ -2533,6 +2533,11 @@ const templateDetails = {
|
|
|
2533
2533
|
description: "A minimal Farm.js app with built-in Tailwind support",
|
|
2534
2534
|
instructions: ["Tailwind is enabled by default. You only need postcss config for custom plugins."]
|
|
2535
2535
|
},
|
|
2536
|
+
"react-compiler": {
|
|
2537
|
+
title: "React Compiler starter (experimental)",
|
|
2538
|
+
description: "React AOT compiler with a focused live comparison",
|
|
2539
|
+
instructions: ["The React AOT compiler is experimental; unsupported components safely stay on React.", "Run pnpm experiment after installing Playwright Chromium to verify the compiled update path."]
|
|
2540
|
+
},
|
|
2536
2541
|
auth: {
|
|
2537
2542
|
title: "Auth starter",
|
|
2538
2543
|
description: "Farm.js-native auth with local SQLite, secure sessions, and protected routes",
|
|
@@ -2768,7 +2773,7 @@ async function createApp(projectName, options = {}) {
|
|
|
2768
2773
|
}
|
|
2769
2774
|
renderer ||= "react";
|
|
2770
2775
|
if (renderer !== "react" && template !== "basic" && !await hasRendererIntegrationTemplate(template, renderer)) {
|
|
2771
|
-
require_utils.logger.error(`The "${template}"
|
|
2776
|
+
require_utils.logger.error(`The "${template}" starter currently targets React. Use --template basic or --template better-auth with --renderer ${renderer}.`);
|
|
2772
2777
|
process.exit(1);
|
|
2773
2778
|
}
|
|
2774
2779
|
let useTypeScript = options.typescript;
|