create-fluixi 0.1.0-alpha.9 → 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 +7 -3
  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 +3 -3
  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 +3 -3
  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 -13
  43. package/template-spa-html/src/main.ts +0 -5
  44. package/template-spa-html/vite.config.ts +0 -13
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,12 +24,15 @@ pnpm create fluixi my-app
24
24
  yarn create fluixi my-app
25
25
  ```
26
26
 
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
+
27
30
  It prompts for a project name, a **mode** and an **authoring format**, or takes them on the
28
31
  command line:
29
32
 
30
33
  ```bash
31
34
  create-fluixi my-app --ssr # SSR app (@fluixi/start: file routing + SSR + hydration)
32
- create-fluixi my-app --spa # SPA (vite + @fluixi/vite-plugin)
35
+ create-fluixi my-app --spa # SPA (@fluixi/start with ssr: false, rendered in the browser)
33
36
 
34
37
  create-fluixi my-app --spa --html # same app, html`` templates instead of JSX
35
38
  ```
@@ -51,12 +54,13 @@ pnpm dev
51
54
  | Mode | Stack | Entry |
52
55
  | --- | --- | --- |
53
56
  | **SSR** | [`@fluixi/start`](../start) + [`@fluixi/cli`](../cli) | `src/entry-{server,client}`, `src/routes/`, `fluixi.config.ts` |
54
- | **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` |
55
58
 
56
59
  Each comes in a JSX and an html`` variant (`template-ssr`, `template-ssr-html`, and the same
57
60
  two for SPA).
58
61
 
59
- 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"`.
60
64
 
61
65
  ## 🧱 Scaffolding pieces
62
66