create-fluixi 0.1.0-alpha.8 → 1.0.0-alpha.100

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.
Files changed (44) hide show
  1. package/LICENSE +1 -1
  2. package/README.md +19 -5
  3. package/dist/index.js +887 -140
  4. package/package.json +19 -2
  5. package/template-spa/README.md +16 -0
  6. package/template-spa/_gitignore +1 -0
  7. package/template-spa/fluixi.config.ts +18 -0
  8. package/template-spa/index.html +3 -3
  9. package/template-spa/package.json +15 -7
  10. package/template-spa/src/app.tsx +30 -7
  11. package/template-spa/src/entry-client.tsx +8 -0
  12. package/template-spa/src/entry-server.ts +22 -0
  13. package/template-spa/src/routes/about.tsx +8 -0
  14. package/template-spa/src/routes/index.tsx +24 -0
  15. package/template-spa/tsconfig.json +2 -2
  16. package/template-spa-html/README.md +19 -0
  17. package/template-spa-html/_gitignore +1 -0
  18. package/template-spa-html/fluixi.config.ts +18 -0
  19. package/template-spa-html/index.html +3 -3
  20. package/template-spa-html/package.json +15 -6
  21. package/template-spa-html/src/app.ts +28 -7
  22. package/template-spa-html/src/entry-client.ts +8 -0
  23. package/template-spa-html/src/entry-server.ts +22 -0
  24. package/template-spa-html/src/routes/about.ts +10 -0
  25. package/template-spa-html/src/routes/index.ts +24 -0
  26. package/template-spa-html/tsconfig.json +2 -2
  27. package/template-ssr/_gitignore +1 -0
  28. package/template-ssr/fluixi.config.ts +6 -2
  29. package/template-ssr/package.json +9 -4
  30. package/template-ssr/src/app.tsx +5 -5
  31. package/template-ssr/src/entry-client.tsx +2 -2
  32. package/template-ssr/src/entry-server.ts +7 -2
  33. package/template-ssr/src/routes/index.tsx +2 -3
  34. package/template-ssr-html/_gitignore +1 -0
  35. package/template-ssr-html/fluixi.config.ts +6 -2
  36. package/template-ssr-html/package.json +10 -4
  37. package/template-ssr-html/src/app.ts +4 -4
  38. package/template-ssr-html/src/entry-client.ts +2 -2
  39. package/template-ssr-html/src/entry-server.ts +7 -2
  40. package/template-ssr-html/src/routes/index.ts +2 -3
  41. package/template-spa/src/main.tsx +0 -5
  42. package/template-spa/vite.config.ts +0 -6
  43. package/template-spa-html/src/main.ts +0 -5
  44. package/template-spa-html/vite.config.ts +0 -6
package/LICENSE CHANGED
@@ -1,6 +1,6 @@
1
1
  MIT License
2
2
 
3
- Copyright (c) 2026 Fluixi
3
+ Copyright (c) 2026 Ibrahima Touré
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
package/README.md CHANGED
@@ -24,13 +24,23 @@ pnpm create fluixi my-app
24
24
  yarn create fluixi my-app
25
25
  ```
26
26
 
27
- It prompts for a project name and a **mode**, or take them on the command line:
27
+ npm keeps options for itself unless they follow `--`: `npm create fluixi@alpha -- my-app --spa`,
28
+ or `npm create fluixi@alpha -- --help` for the list. pnpm and Yarn pass them through.
29
+
30
+ It prompts for a project name, a **mode** and an **authoring format**, or takes them on the
31
+ command line:
28
32
 
29
33
  ```bash
30
- create-fluixi my-app --ssr # SSR app (@fluixi/start: file routing + SSR + hydration)
31
- create-fluixi my-app --spa # SPA (vite + @fluixi/vite-plugin)
34
+ create-fluixi my-app --ssr # SSR app (@fluixi/start: file routing + SSR + hydration)
35
+ create-fluixi my-app --spa # SPA (@fluixi/start with ssr: false, rendered in the browser)
36
+
37
+ create-fluixi my-app --spa --html # same app, html`` templates instead of JSX
32
38
  ```
33
39
 
40
+ `--jsx` (default) or `--html` picks how you write components. The html`` variant is
41
+ JSX-free — plain `.ts` files, no `jsxImportSource`, and [`@fluixi/ts-plugin`](../ts-plugin)
42
+ wired up so the editor still understands the templates. Both compile to the same thing.
43
+
34
44
  Then:
35
45
 
36
46
  ```bash
@@ -44,9 +54,13 @@ pnpm dev
44
54
  | Mode | Stack | Entry |
45
55
  | --- | --- | --- |
46
56
  | **SSR** | [`@fluixi/start`](../start) + [`@fluixi/cli`](../cli) | `src/entry-{server,client}`, `src/routes/`, `fluixi.config.ts` |
47
- | **SPA** | `vite` + [`@fluixi/vite-plugin`](../vite-plugin) | `src/main.tsx` → `render(() => <App/>)` |
57
+ | **SPA** | [`@fluixi/start`](../start) + [`@fluixi/cli`](../cli), `ssr: false` | `src/entry-{server,client}`, `src/routes/`, `fluixi.config.ts` |
58
+
59
+ Each comes in a JSX and an html`` variant (`template-ssr`, `template-ssr-html`, and the same
60
+ two for SPA).
48
61
 
49
- Both pin `@fluixi/*` to the `next` dist-tag and set `jsxImportSource: "@fluixi/jsx"`.
62
+ Both list `@fluixi/start` and every runtime package it shares with the app, on the `alpha`
63
+ dist-tag, and set `jsxImportSource: "@fluixi/jsx"`.
50
64
 
51
65
  ## 🧱 Scaffolding pieces
52
66