create-flow-os 0.0.1-dev.1771840262 → 0.0.1-dev.1771979366

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 (230) hide show
  1. package/package.json +8 -23
  2. package/{profiles/server/packages/style → src/create}/index.ts +31 -30
  3. package/src/index.ts +14 -0
  4. package/src/init/index.ts +66 -0
  5. package/src/init/lib.ts +36 -0
  6. package/src/init/scaffold.ts +43 -0
  7. package/LICENSE +0 -97
  8. package/README.md +0 -26
  9. package/bin/index.js +0 -1215
  10. package/config.json +0 -89
  11. package/lib/utils.ts +0 -91
  12. package/packages/client/client/root.css +0 -9
  13. package/packages/client/client/root.tsx +0 -6
  14. package/packages/client/client/routes/404.tsx +0 -24
  15. package/packages/client/client/routes/index.tsx +0 -48
  16. package/packages/server/server/routes/hello.get.ts +0 -3
  17. package/profiles/client/.dockerignore +0 -12
  18. package/profiles/client/.oxfmtrc.json +0 -7
  19. package/profiles/client/.oxlintrc.json +0 -13
  20. package/profiles/client/.vscode/settings.json +0 -12
  21. package/profiles/client/Dockerfile +0 -26
  22. package/profiles/client/README.md +0 -34
  23. package/profiles/client/bun.lock +0 -352
  24. package/profiles/client/client/root.css +0 -9
  25. package/profiles/client/client/root.tsx +0 -6
  26. package/profiles/client/client/routes/404.tsx +0 -24
  27. package/profiles/client/client/routes/about.tsx +0 -7
  28. package/profiles/client/client/routes/index.tsx +0 -48
  29. package/profiles/client/flow.config.ts +0 -6
  30. package/profiles/client/index.html +0 -5
  31. package/profiles/client/package.json +0 -32
  32. package/profiles/client/packages/client/LICENSE +0 -97
  33. package/profiles/client/packages/client/build/config.ts +0 -211
  34. package/profiles/client/packages/client/build/vite.ts +0 -98
  35. package/profiles/client/packages/client/features/attrs.ts +0 -32
  36. package/profiles/client/packages/client/features/class-flow.ts +0 -116
  37. package/profiles/client/packages/client/features/index.ts +0 -8
  38. package/profiles/client/packages/client/features/pseudo-injector.ts +0 -40
  39. package/profiles/client/packages/client/features/style-flow.ts +0 -106
  40. package/profiles/client/packages/client/features/style.ts +0 -27
  41. package/profiles/client/packages/client/features/utils.ts +0 -4
  42. package/profiles/client/packages/client/features/viewport.ts +0 -20
  43. package/profiles/client/packages/client/index.ts +0 -7
  44. package/profiles/client/packages/client/package.json +0 -48
  45. package/profiles/client/packages/client/runtime/dom.ts +0 -2
  46. package/profiles/client/packages/client/runtime/jsx-dev-runtime.ts +0 -1
  47. package/profiles/client/packages/client/runtime/jsx-runtime.ts +0 -1
  48. package/profiles/client/packages/client/runtime/jsx-types.d.ts +0 -66
  49. package/profiles/client/packages/client/runtime/jsx.ts +0 -101
  50. package/profiles/client/packages/client/scripts/build.ts +0 -14
  51. package/profiles/client/packages/client/scripts/preview.ts +0 -14
  52. package/profiles/client/packages/client/scripts/start-dev.ts +0 -49
  53. package/profiles/client/packages/core/LICENSE +0 -97
  54. package/profiles/client/packages/core/dom.ts +0 -43
  55. package/profiles/client/packages/core/for.ts +0 -42
  56. package/profiles/client/packages/core/index.ts +0 -5
  57. package/profiles/client/packages/core/lifecycle.ts +0 -6
  58. package/profiles/client/packages/core/package.json +0 -16
  59. package/profiles/client/packages/core/show-switch.ts +0 -56
  60. package/profiles/client/packages/core/state.ts +0 -56
  61. package/profiles/client/packages/router/LICENSE +0 -97
  62. package/profiles/client/packages/router/index.ts +0 -20
  63. package/profiles/client/packages/router/matcher.ts +0 -105
  64. package/profiles/client/packages/router/package.json +0 -15
  65. package/profiles/client/packages/router/router.ts +0 -185
  66. package/profiles/client/packages/router/types.ts +0 -34
  67. package/profiles/client/packages/router/utils.ts +0 -45
  68. package/profiles/client/packages/style/LICENSE +0 -97
  69. package/profiles/client/packages/style/breakpoints.ts +0 -20
  70. package/profiles/client/packages/style/extension/.vscodeignore +0 -5
  71. package/profiles/client/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
  72. package/profiles/client/packages/style/extension/out/extension.js +0 -130
  73. package/profiles/client/packages/style/extension/package.json +0 -24
  74. package/profiles/client/packages/style/extension/src/extension.ts +0 -146
  75. package/profiles/client/packages/style/extension/tsconfig.json +0 -12
  76. package/profiles/client/packages/style/index.ts +0 -30
  77. package/profiles/client/packages/style/package.json +0 -20
  78. package/profiles/client/packages/style/react.ts +0 -68
  79. package/profiles/client/packages/style/resolve.ts +0 -127
  80. package/profiles/client/packages/style/server.ts +0 -299
  81. package/profiles/client/packages/style/shorthand.ts +0 -96
  82. package/profiles/client/packages/style/style-builder/button.ts +0 -41
  83. package/profiles/client/packages/style/style-builder/constants.ts +0 -16
  84. package/profiles/client/packages/style/style-builder/dom.ts +0 -18
  85. package/profiles/client/packages/style/style-builder/index.ts +0 -48
  86. package/profiles/client/packages/style/style-builder/panel.ts +0 -69
  87. package/profiles/client/packages/style/style-builder/position.ts +0 -25
  88. package/profiles/client/packages/style/visual-builder.ts +0 -822
  89. package/profiles/client/packages/style/vite-plugin.ts +0 -86
  90. package/profiles/client/tsconfig.json +0 -30
  91. package/profiles/full/.dockerignore +0 -12
  92. package/profiles/full/.oxfmtrc.json +0 -7
  93. package/profiles/full/.oxlintrc.json +0 -13
  94. package/profiles/full/.vscode/settings.json +0 -12
  95. package/profiles/full/Dockerfile +0 -26
  96. package/profiles/full/README.md +0 -34
  97. package/profiles/full/bun.lock +0 -352
  98. package/profiles/full/client/root.css +0 -9
  99. package/profiles/full/client/root.tsx +0 -6
  100. package/profiles/full/client/routes/404.tsx +0 -24
  101. package/profiles/full/client/routes/about.tsx +0 -7
  102. package/profiles/full/client/routes/index.tsx +0 -48
  103. package/profiles/full/flow.config.ts +0 -6
  104. package/profiles/full/index.html +0 -5
  105. package/profiles/full/package.json +0 -33
  106. package/profiles/full/packages/client/LICENSE +0 -97
  107. package/profiles/full/packages/client/build/config.ts +0 -211
  108. package/profiles/full/packages/client/build/vite.ts +0 -98
  109. package/profiles/full/packages/client/features/attrs.ts +0 -32
  110. package/profiles/full/packages/client/features/class-flow.ts +0 -116
  111. package/profiles/full/packages/client/features/index.ts +0 -8
  112. package/profiles/full/packages/client/features/pseudo-injector.ts +0 -40
  113. package/profiles/full/packages/client/features/style-flow.ts +0 -106
  114. package/profiles/full/packages/client/features/style.ts +0 -27
  115. package/profiles/full/packages/client/features/utils.ts +0 -4
  116. package/profiles/full/packages/client/features/viewport.ts +0 -20
  117. package/profiles/full/packages/client/index.ts +0 -7
  118. package/profiles/full/packages/client/package.json +0 -48
  119. package/profiles/full/packages/client/runtime/dom.ts +0 -2
  120. package/profiles/full/packages/client/runtime/jsx-dev-runtime.ts +0 -1
  121. package/profiles/full/packages/client/runtime/jsx-runtime.ts +0 -1
  122. package/profiles/full/packages/client/runtime/jsx-types.d.ts +0 -66
  123. package/profiles/full/packages/client/runtime/jsx.ts +0 -101
  124. package/profiles/full/packages/client/scripts/build.ts +0 -14
  125. package/profiles/full/packages/client/scripts/preview.ts +0 -14
  126. package/profiles/full/packages/client/scripts/start-dev.ts +0 -49
  127. package/profiles/full/packages/core/LICENSE +0 -97
  128. package/profiles/full/packages/core/dom.ts +0 -43
  129. package/profiles/full/packages/core/for.ts +0 -42
  130. package/profiles/full/packages/core/index.ts +0 -5
  131. package/profiles/full/packages/core/lifecycle.ts +0 -6
  132. package/profiles/full/packages/core/package.json +0 -16
  133. package/profiles/full/packages/core/show-switch.ts +0 -56
  134. package/profiles/full/packages/core/state.ts +0 -56
  135. package/profiles/full/packages/router/LICENSE +0 -97
  136. package/profiles/full/packages/router/index.ts +0 -20
  137. package/profiles/full/packages/router/matcher.ts +0 -105
  138. package/profiles/full/packages/router/package.json +0 -15
  139. package/profiles/full/packages/router/router.ts +0 -185
  140. package/profiles/full/packages/router/types.ts +0 -34
  141. package/profiles/full/packages/router/utils.ts +0 -45
  142. package/profiles/full/packages/server/LICENSE +0 -97
  143. package/profiles/full/packages/server/core.ts +0 -140
  144. package/profiles/full/packages/server/index.ts +0 -24
  145. package/profiles/full/packages/server/package.json +0 -32
  146. package/profiles/full/packages/server/plugin.ts +0 -79
  147. package/profiles/full/packages/server/production.ts +0 -75
  148. package/profiles/full/packages/server/scripts/start.ts +0 -11
  149. package/profiles/full/packages/style/LICENSE +0 -97
  150. package/profiles/full/packages/style/breakpoints.ts +0 -20
  151. package/profiles/full/packages/style/extension/.vscodeignore +0 -5
  152. package/profiles/full/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
  153. package/profiles/full/packages/style/extension/out/extension.js +0 -130
  154. package/profiles/full/packages/style/extension/package.json +0 -24
  155. package/profiles/full/packages/style/extension/src/extension.ts +0 -146
  156. package/profiles/full/packages/style/extension/tsconfig.json +0 -12
  157. package/profiles/full/packages/style/index.ts +0 -30
  158. package/profiles/full/packages/style/package.json +0 -20
  159. package/profiles/full/packages/style/react.ts +0 -68
  160. package/profiles/full/packages/style/resolve.ts +0 -127
  161. package/profiles/full/packages/style/server.ts +0 -299
  162. package/profiles/full/packages/style/shorthand.ts +0 -96
  163. package/profiles/full/packages/style/style-builder/button.ts +0 -41
  164. package/profiles/full/packages/style/style-builder/constants.ts +0 -16
  165. package/profiles/full/packages/style/style-builder/dom.ts +0 -18
  166. package/profiles/full/packages/style/style-builder/index.ts +0 -48
  167. package/profiles/full/packages/style/style-builder/panel.ts +0 -69
  168. package/profiles/full/packages/style/style-builder/position.ts +0 -25
  169. package/profiles/full/packages/style/visual-builder.ts +0 -822
  170. package/profiles/full/packages/style/vite-plugin.ts +0 -86
  171. package/profiles/full/server/routes/hello.get.ts +0 -3
  172. package/profiles/full/tsconfig.json +0 -30
  173. package/profiles/server/.dockerignore +0 -12
  174. package/profiles/server/.oxfmtrc.json +0 -7
  175. package/profiles/server/.oxlintrc.json +0 -13
  176. package/profiles/server/.vscode/settings.json +0 -12
  177. package/profiles/server/Dockerfile +0 -26
  178. package/profiles/server/README.md +0 -34
  179. package/profiles/server/bun.lock +0 -352
  180. package/profiles/server/flow.config.ts +0 -7
  181. package/profiles/server/index.html +0 -5
  182. package/profiles/server/package.json +0 -30
  183. package/profiles/server/packages/core/LICENSE +0 -97
  184. package/profiles/server/packages/core/dom.ts +0 -43
  185. package/profiles/server/packages/core/for.ts +0 -42
  186. package/profiles/server/packages/core/index.ts +0 -5
  187. package/profiles/server/packages/core/lifecycle.ts +0 -6
  188. package/profiles/server/packages/core/package.json +0 -16
  189. package/profiles/server/packages/core/show-switch.ts +0 -56
  190. package/profiles/server/packages/core/state.ts +0 -56
  191. package/profiles/server/packages/router/LICENSE +0 -97
  192. package/profiles/server/packages/router/index.ts +0 -20
  193. package/profiles/server/packages/router/matcher.ts +0 -105
  194. package/profiles/server/packages/router/package.json +0 -15
  195. package/profiles/server/packages/router/router.ts +0 -185
  196. package/profiles/server/packages/router/types.ts +0 -34
  197. package/profiles/server/packages/router/utils.ts +0 -45
  198. package/profiles/server/packages/server/LICENSE +0 -97
  199. package/profiles/server/packages/server/core.ts +0 -140
  200. package/profiles/server/packages/server/index.ts +0 -24
  201. package/profiles/server/packages/server/package.json +0 -32
  202. package/profiles/server/packages/server/plugin.ts +0 -79
  203. package/profiles/server/packages/server/production.ts +0 -75
  204. package/profiles/server/packages/server/scripts/start.ts +0 -11
  205. package/profiles/server/packages/style/LICENSE +0 -97
  206. package/profiles/server/packages/style/breakpoints.ts +0 -20
  207. package/profiles/server/packages/style/extension/.vscodeignore +0 -5
  208. package/profiles/server/packages/style/extension/flow-style-colors-0.0.1.vsix +0 -0
  209. package/profiles/server/packages/style/extension/out/extension.js +0 -130
  210. package/profiles/server/packages/style/extension/package.json +0 -24
  211. package/profiles/server/packages/style/extension/src/extension.ts +0 -146
  212. package/profiles/server/packages/style/extension/tsconfig.json +0 -12
  213. package/profiles/server/packages/style/package.json +0 -20
  214. package/profiles/server/packages/style/react.ts +0 -68
  215. package/profiles/server/packages/style/resolve.ts +0 -127
  216. package/profiles/server/packages/style/server.ts +0 -299
  217. package/profiles/server/packages/style/shorthand.ts +0 -96
  218. package/profiles/server/packages/style/style-builder/button.ts +0 -41
  219. package/profiles/server/packages/style/style-builder/constants.ts +0 -16
  220. package/profiles/server/packages/style/style-builder/dom.ts +0 -18
  221. package/profiles/server/packages/style/style-builder/index.ts +0 -48
  222. package/profiles/server/packages/style/style-builder/panel.ts +0 -69
  223. package/profiles/server/packages/style/style-builder/position.ts +0 -25
  224. package/profiles/server/packages/style/visual-builder.ts +0 -822
  225. package/profiles/server/packages/style/vite-plugin.ts +0 -86
  226. package/profiles/server/server/routes/hello.get.ts +0 -3
  227. package/profiles/server/tsconfig.json +0 -30
  228. package/templates/flow.config.client.ts +0 -6
  229. package/templates/flow.config.full.ts +0 -6
  230. package/templates/flow.config.server.ts +0 -7
package/config.json DELETED
@@ -1,89 +0,0 @@
1
- {
2
- "profiles": {
3
- "client": {
4
- "exclude": [
5
- "packages",
6
- "node_modules",
7
- ".git",
8
- ".cursor",
9
- "agent-transcripts",
10
- "server"
11
- ],
12
- "defaultPackages": [
13
- "client",
14
- "core",
15
- "router",
16
- "style"
17
- ]
18
- },
19
- "server": {
20
- "exclude": [
21
- "packages",
22
- "node_modules",
23
- ".git",
24
- ".cursor",
25
- "agent-transcripts",
26
- "client"
27
- ],
28
- "defaultPackages": [
29
- "server"
30
- ]
31
- },
32
- "full": {
33
- "exclude": [
34
- "packages",
35
- "node_modules",
36
- ".git",
37
- ".cursor",
38
- "agent-transcripts"
39
- ],
40
- "defaultPackages": [
41
- "client",
42
- "core",
43
- "router",
44
- "server",
45
- "style"
46
- ]
47
- }
48
- },
49
- "packages": {
50
- "core": {
51
- "package": "@flow.os/core",
52
- "includeIn": [
53
- "client"
54
- ],
55
- "deps": [
56
- "@flow.os/core"
57
- ]
58
- },
59
- "router": {
60
- "package": "@flow.os/router",
61
- "includeIn": [
62
- "client"
63
- ],
64
- "deps": [
65
- "@flow.os/router"
66
- ]
67
- },
68
- "server": {
69
- "package": "@flow.os/server",
70
- "includeIn": [
71
- "server"
72
- ],
73
- "deps": [
74
- "@flow.os/server"
75
- ]
76
- },
77
- "client": {
78
- "package": "@flow.os/client",
79
- "includeIn": [
80
- "client"
81
- ],
82
- "deps": [
83
- "@flow.os/client",
84
- "@flow.os/core",
85
- "@flow.os/router"
86
- ]
87
- }
88
- }
89
- }
package/lib/utils.ts DELETED
@@ -1,91 +0,0 @@
1
- import { mkdir, readdir } from "node:fs/promises";
2
- import { join } from "node:path";
3
-
4
- export function transformPackageJson(
5
- pkg: Record<string, unknown>,
6
- projectName: string,
7
- extraPackages: Record<string, string> = {},
8
- useWorkspace = false
9
- ): Record<string, unknown> {
10
- const out = { ...pkg };
11
- out.name = projectName;
12
- out.private = true;
13
- delete out.workspaces;
14
- const deps = (out.dependencies as Record<string, string>) || {};
15
- const next: Record<string, string> = {};
16
- for (const [k, v] of Object.entries(deps)) {
17
- const isFlow = k.startsWith("@flow.os/") || k === "@flow.os";
18
- if (v === "workspace:*" || (isFlow && typeof v === "string" && (v.startsWith("file:./packages/") || v.startsWith("file:../")))) {
19
- next[k] = useWorkspace && isFlow ? "workspace:*" : "^0.0.1";
20
- } else {
21
- next[k] = v;
22
- }
23
- }
24
- for (const [k, v] of Object.entries(extraPackages)) {
25
- if (!(k in next)) next[k] = v;
26
- }
27
- out.dependencies = next;
28
- const devDeps = out.devDependencies as Record<string, string> | undefined;
29
- if (devDeps) {
30
- const nextDev: Record<string, string> = {};
31
- for (const [k, v] of Object.entries(devDeps)) {
32
- if (k === "vite-plugin-oxlint" || k === "oxlint" || k === "oxfmt") continue;
33
- nextDev[k] = v;
34
- }
35
- out.devDependencies = nextDev;
36
- }
37
- return out;
38
- }
39
-
40
- /** Scripts in created projects: drop monorepo-only; server start → "server". */
41
- export function transformScriptsForCreatedProject(scripts: Record<string, string> | undefined): Record<string, string> | undefined {
42
- if (!scripts) return scripts;
43
- const drop = new Set(["release", "version"]);
44
- const out: Record<string, string> = {};
45
- for (const [key, value] of Object.entries(scripts)) {
46
- if (drop.has(key)) continue;
47
- let s = value;
48
- if (key === "start" && /@flow\.os\/server\/start\.ts/.test(s)) s = "server";
49
- out[key] = s;
50
- }
51
- return Object.keys(out).length ? out : undefined;
52
- }
53
-
54
- export async function copyWithExclude(srcDir: string, destDir: string, exclude: string[]): Promise<void> {
55
- const set = new Set(exclude.map((e) => e.toLowerCase()));
56
- async function w(dir: string, rel: string): Promise<void> {
57
- const entries = await readdir(dir, { withFileTypes: true });
58
- for (const ent of entries) {
59
- const name = ent.name;
60
- if (set.has(name.toLowerCase())) continue;
61
- const relPath = rel ? join(rel, name) : name;
62
- const srcPath = join(dir, name);
63
- const destPath = join(destDir, relPath);
64
- if (ent.isDirectory()) {
65
- await mkdir(destPath, { recursive: true });
66
- await w(srcPath, relPath);
67
- } else {
68
- await mkdir(join(destDir, rel), { recursive: true });
69
- await Bun.write(destPath, Bun.file(srcPath));
70
- }
71
- }
72
- }
73
- await mkdir(destDir, { recursive: true });
74
- await w(srcDir, "");
75
- }
76
-
77
- export async function findPackageDir(repoRoot: string, packageName: string): Promise<string | null> {
78
- const packagesDir = join(repoRoot, "packages");
79
- try {
80
- const entries = await readdir(packagesDir, { withFileTypes: true });
81
- for (const ent of entries) {
82
- if (!ent.isDirectory()) continue;
83
- const pkgPath = join(packagesDir, ent.name, "package.json");
84
- try {
85
- const pkg = (await Bun.file(pkgPath).json()) as { name?: string };
86
- if (pkg.name === packageName) return join(packagesDir, ent.name);
87
- } catch {}
88
- }
89
- } catch {}
90
- return null;
91
- }
@@ -1,9 +0,0 @@
1
- :root {
2
- --background: #rgb(34, 34, 34)
3
-
4
- }
5
-
6
- body {
7
- background: var(--background);
8
- }
9
-
@@ -1,6 +0,0 @@
1
- import './root.css';
2
- import { App } from '@flow.os/router';
3
-
4
- export default function Root() {
5
- return <App />;
6
- }
@@ -1,24 +0,0 @@
1
- /** Pagina 404 full-page (senza layout comune). Mostrata dal router per route inesistenti; raggiungibile anche da /404. */
2
- export default function NotFound(path: string) {
3
- return (
4
- <div
5
- role="alert"
6
- style={{
7
- minHeight: '100vh',
8
- display: 'flex',
9
- flexDirection: 'column',
10
- alignItems: 'center',
11
- justifyContent: 'center',
12
- gap: '0.5rem',
13
- }}
14
- >
15
- <h1 style={{ margin: 0, fontSize: '2rem' }}>404</h1>
16
- <p style={{ margin: 0, color: 'var(--muted, #666)' }}>
17
- {path ? `Pagina non trovata: ${path}` : 'Pagina non trovata'}
18
- </p>
19
- <a href="/" style={{ marginTop: '1rem' }}>
20
- Torna alla home
21
- </a>
22
- </div>
23
- );
24
- }
@@ -1,48 +0,0 @@
1
- import { state } from '@flow.os/core';
2
-
3
- export default function Home() {
4
- const [count, setCount] = state(0);
5
-
6
- return (
7
- <div s='flex'>
8
- <h1 class="text-2xl bg-[#b57070] font-bold text-primary">Flow</h1>
9
- <p>
10
- <a href="/about">Vai ad About</a>
11
- </p>
12
- <p>
13
- Contatore: <span>{count}</span>
14
- </p>
15
- <p
16
- class="transition-all text-2vw"
17
- classFlow={{
18
- text: [count, 'px'],
19
-
20
- }}
21
- >
22
- Dimensione reattiva (cresce con il contatore)
23
- </p>
24
- <button type="button" onClick={() => setCount(count() + 1)}>
25
- +1
26
- </button>
27
- <div
28
- s={[
29
- "rounded font-sans font-bold transition-all-300",
30
- {
31
- base: "border border-#720000 ",
32
- p: 7,
33
- color:"#ffffff",
34
- mb: () => count() * 2,
35
- mob: { p: 2 },
36
- tab: { p: 4 },
37
- des: { p: 6 },
38
- hover: { bg: "black" },
39
- bg: "#4e1313",
40
- mr: 1,
41
- },
42
- ]}
43
- >
44
- s: base + responsive (mob/tab/des) + hover/active
45
- </div>
46
- </div>
47
- );
48
- }
@@ -1,3 +0,0 @@
1
- import { defineHandler } from '@flow.os/server';
2
-
3
- export default defineHandler(() => ({ hello: 'api' }));
@@ -1,12 +0,0 @@
1
- node_modules
2
- dist
3
- .git
4
- *.local
5
- .env
6
- .env.*
7
- *.tsbuildinfo
8
- .oxlintrc.json
9
- .oxfmtrc.json
10
- .cursor
11
- packages/style/extension/out
12
- *.vsix
@@ -1,7 +0,0 @@
1
- {
2
- "printWidth": 100,
3
- "semi": true,
4
- "singleQuote": true,
5
- "trailingComma": "es5",
6
- "ignorePatterns": ["node_modules/**", "dist/**", "bun.lockb", "**/node_modules/**"]
7
- }
@@ -1,13 +0,0 @@
1
- {
2
- "ignorePatterns": [
3
- "node_modules/**",
4
- "dist/**",
5
- "**/node_modules/**",
6
- "*.config.js",
7
- "*.config.ts"
8
- ],
9
- "rules": {
10
- "unicorn/no-empty-file": "off",
11
- "@typescript-eslint/triple-slash-reference": "off"
12
- }
13
- }
@@ -1,12 +0,0 @@
1
- {
2
- "files.exclude": {
3
- "index.html": true,
4
- "**/node_modules": true,
5
- "bun.lock": true,
6
- "**/tsconfig.json": true,
7
- "**/tsconfig.tsbuildinfo": true,
8
- ".oxlintrc.json": true,
9
- ".oxfmtrc.json": true
10
- },
11
- "editor.colorDecorators": true
12
- }
@@ -1,26 +0,0 @@
1
- # DEV: packages/core → workaround Bun workspace (doppio install).
2
- # PROD: install → build → start (PORT da env)
3
-
4
- FROM oven/bun:1 AS builder
5
- WORKDIR /app
6
- COPY . .
7
- RUN if [ -d packages ] && [ -f packages/core/package.json ]; then \
8
- bun install || true && bun install; \
9
- else \
10
- bun install --frozen-lockfile; \
11
- fi
12
- RUN bun run build
13
- RUN mkdir -p out && cp package.json bun.lock* out/ && cp -r dist server out/ && ([ -d packages ] && cp -r packages out/ || true)
14
-
15
- FROM oven/bun:1
16
- WORKDIR /app
17
- ENV NODE_ENV=production
18
- ENV PORT=3000
19
- COPY --from=builder /app/out/ ./
20
- RUN if [ -d packages ] && [ -f packages/core/package.json ]; then \
21
- bun install --frozen-lockfile --production || true && bun install --frozen-lockfile --production; \
22
- else \
23
- bun install --frozen-lockfile --production; \
24
- fi
25
- EXPOSE 3000
26
- CMD ["bun", "run", "start"]
@@ -1,34 +0,0 @@
1
- # Flow OS
2
-
3
- Tutti i comandi dalla **root** del repo.
4
-
5
- ---
6
-
7
- ## Dev (sviluppo e canale dev)
8
-
9
- | Comando | Cosa fa |
10
- |---------|---------|
11
- | `bun run dev` | Avvia il server di sviluppo (client + server). |
12
- | `bun run gen` | Rigenera i template (profiles + packages in create-flow). Di solito non serve: lo fa già `publish:dev`. |
13
- | `bun run publish:dev` | Esegue **gen** + **build** create-flow e pubblica tutto su npm con tag **dev**. |
14
-
15
- **Pubblicare solo un package** (più veloce):
16
-
17
- ```bash
18
- bun run publish:dev -- --client
19
- ```
20
-
21
- (Stesso comando con `--style`, `--core`, `--router`, `--server` al posto di `--client`.)
22
-
23
- ---
24
-
25
- ## Prod (release su latest)
26
-
27
- | Comando | Cosa fa |
28
- |---------|---------|
29
- | `bun run version -- <patch|minor|major|X.Y.Z>` | Aggiorna la versione nei package. Es.: `patch` per tutti, oppure `bun run version -- 1.0.0` per impostare tutti a 1.0.0. |
30
- | `bun run version -- patch @flow.os/client create-flow-os` | Aggiorna solo i package indicati. |
31
- | `bun run release` | Pubblica su npm con tag **latest**. Va usato **dopo** aver lanciato `version`. |
32
- | `bun run release -- @flow.os/client create-flow-os` | Pubblica solo i package indicati. |
33
-
34
- **Ordine per una release prod:** prima `bun run version -- patch` (o minor/major), poi `bun run release`.