fimo 0.2.3-staging.10 → 0.2.3-staging.7
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/assets/skills/fimo/references/setup-plain-vite.md +1 -4
- package/assets/skills/fimo/references/setup-react-router.md +2 -3
- package/assets/skills/fimo-cli/references/agent-setup.md +1 -1
- package/assets/skills/fimo-cli/references/branches.md +0 -2
- package/assets/skills/fimo-studio/references/code-editor.md +1 -1
- package/dist/cli/bundle.json +2 -2
- package/dist/cli/index.js +631 -754
- package/dist/runtime/templates.d.ts +5 -5
- package/dist/runtime/templates.d.ts.map +1 -1
- package/dist/runtime/templates.js +13 -14
- package/package.json +2 -1
- package/scripts/lib/cleanup-release.mjs +64 -0
- package/scripts/lib/cleanup-release.test.ts +142 -0
- package/scripts/postinstall.mjs +4 -6
- package/scripts/publish-npm.mjs +1 -12
- package/scripts/publish-tarball.mjs +245 -0
- package/templates/react-router/package.json +8 -1
- package/templates/react-router/pnpm-workspace.yaml +3 -6
- package/templates/react-router/src/index.css +4 -0
- package/templates/react-router/src/pages/Index.tsx +97 -38
- package/scripts/lib/dev-release-state.mjs +0 -44
- package/scripts/lib/dev-release-state.test.ts +0 -36
- package/templates/react-router/public/claude-color.svg +0 -1
- package/templates/react-router/public/codex.svg +0 -1
- package/templates/react-router/public/copilot-color.svg +0 -1
- package/templates/react-router/public/cursor-light.svg +0 -12
- package/templates/react-router/public/fimo-logo-black.svg +0 -3
|
@@ -36,6 +36,7 @@ pnpm add -D vite @vitejs/plugin-react @types/react @types/react-dom typescript
|
|
|
36
36
|
"type": "module",
|
|
37
37
|
"scripts": {
|
|
38
38
|
"dev": "vite --host 0.0.0.0 --port 5173",
|
|
39
|
+
"prebuild": "fimo validate",
|
|
39
40
|
"build": "vite build",
|
|
40
41
|
"preview": "vite preview --host 0.0.0.0 --port 4173",
|
|
41
42
|
"typecheck": "tsc --noEmit"
|
|
@@ -43,10 +44,6 @@ pnpm add -D vite @vitejs/plugin-react @types/react @types/react-dom typescript
|
|
|
43
44
|
}
|
|
44
45
|
```
|
|
45
46
|
|
|
46
|
-
Validate runs automatically during `fimo deploy` and API-side sandbox builds.
|
|
47
|
-
For a purely local build, run `fimo validate` manually first when you need to
|
|
48
|
-
sync schemas/forms/translations before `pnpm build`.
|
|
49
|
-
|
|
50
47
|
## File: `vite.config.ts`
|
|
51
48
|
|
|
52
49
|
```ts
|
|
@@ -27,6 +27,7 @@ pnpm add -D @react-router/dev @react-router/node @tailwindcss/vite tailwindcss v
|
|
|
27
27
|
"type": "module",
|
|
28
28
|
"scripts": {
|
|
29
29
|
"dev": "react-router dev --port 5173",
|
|
30
|
+
"prebuild": "fimo validate",
|
|
30
31
|
"build": "react-router build && fimo export-static",
|
|
31
32
|
"preview": "vite preview --host 0.0.0.0 --port 4173",
|
|
32
33
|
"typecheck": "tsc --noEmit"
|
|
@@ -34,9 +35,7 @@ pnpm add -D @react-router/dev @react-router/node @tailwindcss/vite tailwindcss v
|
|
|
34
35
|
}
|
|
35
36
|
```
|
|
36
37
|
|
|
37
|
-
|
|
38
|
-
For a purely local build, run `fimo validate` manually first when you need to
|
|
39
|
-
sync schemas/forms/translations before `pnpm build`.
|
|
38
|
+
(Dependencies installed via the command above; this is the scripts shape.)
|
|
40
39
|
|
|
41
40
|
## File: `vite.config.ts`
|
|
42
41
|
|
|
@@ -60,7 +60,7 @@ The command prints exactly which files were written, so the context-aware behavi
|
|
|
60
60
|
You rarely have to invoke it by hand:
|
|
61
61
|
|
|
62
62
|
- **Global skills auto-refresh** after a CLI version change via a marker at `~/.config/fimo/last-version`.
|
|
63
|
-
- **The project skill auto-refreshes
|
|
63
|
+
- **The project skill auto-refreshes on `pnpm install`** when the `fimo` package version bumps — the package's postinstall hook re-syncs the skill from `node_modules/fimo/assets/skills/fimo/` (which is version-locked to the installed package). The scaffolded template approves the `fimo` and `esbuild` build scripts for pnpm (`pnpm-workspace.yaml` `allowBuilds` for pnpm 11+, plus `package.json` `pnpm.onlyBuiltDependencies` for pnpm 10-era installs). npm / yarn run lifecycle scripts by default and need no extra config.
|
|
64
64
|
|
|
65
65
|
Invoke `fimo skills sync` explicitly when iterating on skill content locally, when you bumped the package via something other than a fresh install, or any time you want to force a refresh.
|
|
66
66
|
|
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
# Envs & branches (git-shaped workflow)
|
|
2
2
|
|
|
3
|
-
> **Beta:** Branch environments are still in beta. The CLI surface is available for early workflows, but not every command or cross-surface merge path is guaranteed to work reliably yet.
|
|
4
|
-
|
|
5
3
|
A Fimo **env** is a multi-surface clone of the project: a git branch **plus** its own Neon DB branch, sandbox, preview URL, and R2 asset prefix. The CLI mirrors `git` command shapes so the workflow transfers directly — same verbs, multi-surface semantics.
|
|
6
4
|
|
|
7
5
|
Every project starts with one env: `main`. You create more for feature work, deploy previews per-env, then merge back and publish.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
## Browsing Your Files
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The Code tab requires **Developer Mode** to be enabled. Go to **Account Settings → Preferences** and turn on the **Developer Mode** toggle. Once enabled, click the **Code** tab (the code icon) in the workspace navigation, or press **Option+4** (Mac) / **Alt+4** (Windows/Linux). A file tree appears showing all your project files and folders.
|
|
4
4
|
|
|
5
5
|
Inside the Code workspace, the left sidebar shows the **Files** tree. If you ever switch the sidebar to another view, press **Cmd+Shift+E** (Mac) / **Ctrl+Shift+E** (Windows/Linux) to bring the Files explorer back.
|
|
6
6
|
|
package/dist/cli/bundle.json
CHANGED