@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.mjs
CHANGED
|
@@ -2527,6 +2527,11 @@ const templateDetails = {
|
|
|
2527
2527
|
description: "A minimal Farm.js app with built-in Tailwind support",
|
|
2528
2528
|
instructions: ["Tailwind is enabled by default. You only need postcss config for custom plugins."]
|
|
2529
2529
|
},
|
|
2530
|
+
"react-compiler": {
|
|
2531
|
+
title: "React Compiler starter (experimental)",
|
|
2532
|
+
description: "React AOT compiler with a focused live comparison",
|
|
2533
|
+
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."]
|
|
2534
|
+
},
|
|
2530
2535
|
auth: {
|
|
2531
2536
|
title: "Auth starter",
|
|
2532
2537
|
description: "Farm.js-native auth with local SQLite, secure sessions, and protected routes",
|
|
@@ -2762,7 +2767,7 @@ async function createApp(projectName, options = {}) {
|
|
|
2762
2767
|
}
|
|
2763
2768
|
renderer ||= "react";
|
|
2764
2769
|
if (renderer !== "react" && template !== "basic" && !await hasRendererIntegrationTemplate(template, renderer)) {
|
|
2765
|
-
logger.error(`The "${template}"
|
|
2770
|
+
logger.error(`The "${template}" starter currently targets React. Use --template basic or --template better-auth with --renderer ${renderer}.`);
|
|
2766
2771
|
process.exit(1);
|
|
2767
2772
|
}
|
|
2768
2773
|
let useTypeScript = options.typescript;
|