Commit Graph

4 Commits

Author SHA1 Message Date
gsxdsm
3c327216a4 Make local build script work across more platforms (#1681)
* Enhance local build script and frontend package configuration

- Updated `local-build.sh` to detect OS and architecture, setting the target directory dynamically based on the platform.
- Modified build and lint scripts in `frontend/package.json` to include `NODE_OPTIONS=--max-old-space-size=4096` for improved memory management during builds and linting.

* Enhance local build script and frontend package configuration

- Updated `local-build.sh` to detect OS and architecture, setting the target directory dynamically based on the platform.
- Modified build and lint scripts in `frontend/package.json` to include `NODE_OPTIONS=--max-old-space-size=4096` for improved memory management during builds and linting.
2026-01-12 10:15:16 +00:00
Louis Knight-Webb
9a83d09ffd Fix local build for macOS e2e testing (Vibe Kanban) (#1679)
* Done! Here's a summary of the changes:

## Changes Made

### `npx-cli/bin/download.js`
- Added `LOCAL_DEV_MODE` detection - automatically enabled when R2 placeholders aren't replaced or `VIBE_KANBAN_LOCAL=1` env var is set
- Modified `ensureBinary()` to use local binaries from `npx-cli/dist/{platform}/` in local dev mode
- Exported `LOCAL_DEV_MODE` and `LOCAL_DIST_DIR` for use by `cli.js`

### `npx-cli/bin/cli.js`
- In local dev mode, extracts binaries directly to `npx-cli/dist/{platform}/` instead of global cache
- Skips version update check in local dev mode
- Shows "(local dev)" label in startup message when running locally

### `local-build.sh`
- Added instructions at the end showing how to run the local build

## How to test
```bash
cd vibe-kanban
./local-build.sh
cd npx-cli && node bin/cli.js
```

* Updated the README to reflect the correct local build instructions.

* Fixed. Now `LOCAL_DEV_MODE` only activates when the `dist/` directory actually exists, which means:

1. **Local dev** (after `./local-build.sh` creates `npx-cli/dist/`): local mode works
2. **npx** (npm cache has no `dist/` folder): normal R2 download works

* Done! The fixes are:

1. **`npx-cli/package.json`**: Added `dist` to the `files` array so local binaries get included in the tarball
2. **`npx-cli/bin/cli.js`**: Added a guard to skip `getLatestVersion()` when R2 URL is a placeholder (starts with `__`)

Now the workflow should work:
```bash
cd vibe-kanban
./local-build.sh
cd npx-cli
npm pack
npx vibe-kanban-0.0.142.tgz
```
2025-12-29 18:00:23 +00:00
Louis Knight-Webb
fd9e5e5d79 Remote review (#1521) 2025-12-15 19:42:13 +00:00
Gabriel Gordon-Hall
e9882b23b9 chore: re-enable local mcp builds (#475)
* bump rmcp version

* uncomment mcp from local build script; bump rmcp crate version
2025-08-15 10:24:51 +01:00