Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion CLAUDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,13 @@ Maple is an OpenTelemetry observability platform built with TanStack Start (Reac

```bash
# Development
bun dev # Run all apps via portless on https://[<worktree>.]<app>.localhost
bun dev # Run all apps via turbo; each app's `dev` script invokes portless
# URLs: https://[<worktree>.]<app>.localhost
bun typecheck # TypeScript type checking

# Skip portless for a single app (raw ports, no proxy)
bun --filter=@maple/web dev:app

# First-time setup (once per machine): install portless's local CA into your system trust store
npx portless trust

Expand Down
4 changes: 3 additions & 1 deletion apps/alerting/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "@maple/alerting",
"private": true,
"type": "module",
"portless": { "name": "alerting", "script": "dev:app" },
"scripts": {
"dev": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --persist-to ../api/.wrangler/state --test-scheduled --port ${PORT:-8788} --inspector-port=9231",
"dev": "portless",
"dev:app": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --persist-to ../api/.wrangler/state --test-scheduled --port ${PORT:-8788} --inspector-port=9231",
"deploy": "wrangler deploy",
"test": "echo 'No tests yet'",
"typecheck": "tsc --noEmit"
Expand Down
4 changes: 3 additions & 1 deletion apps/api/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,16 @@
"name": "@maple/api",
"private": true,
"type": "module",
"portless": { "name": "api", "script": "dev:app" },
"exports": {
".": "./src/index.ts",
"./agent": "./src/agent.ts",
"./alerting": "./src/alerting.ts"
},
"scripts": {
"db:generate": "bun run --cwd ../../packages/db db:generate",
"dev": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --port ${PORT:-3472} --inspector-port=$((${PORT:-3472} + 10000))",
"dev": "portless",
"dev:app": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --port ${PORT:-3472} --inspector-port=$((${PORT:-3472} + 10000))",
"test": "vitest run",
"typecheck": "tsc --noEmit",
"typecheck:test": "tsc --noEmit -p tsconfig.test.json",
Expand Down
4 changes: 3 additions & 1 deletion apps/chat-agent/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "@maple/chat-agent",
"private": true,
"type": "module",
"portless": { "name": "chat-agent", "script": "dev:app" },
"scripts": {
"dev": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --port ${PORT:-8787} --inspector-port=9230",
"dev": "portless",
"dev:app": "bun run ../../scripts/portless-wrangler.ts --env-file ../../.env.local --port ${PORT:-8787} --inspector-port=9230",
"typecheck": "tsc --noEmit"
},
"dependencies": {
Expand Down
4 changes: 3 additions & 1 deletion apps/ingest/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,10 @@
{
"name": "@maple/ingest",
"private": true,
"portless": { "name": "ingest", "script": "dev:app" },
"scripts": {
"dev": "set -a && source ../../.env.local && set +a && INGEST_PORT=${PORT:-3473} cargo run",
"dev": "portless",
"dev:app": "set -a && source ../../.env.local && set +a && INGEST_PORT=${PORT:-3473} cargo run",
"start": "cargo run --release",
"build": "cargo build --release",
"test": "cargo test",
Expand Down
4 changes: 3 additions & 1 deletion apps/landing/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "@maple/landing",
"version": "0.0.1",
"type": "module",
"portless": { "name": "landing", "script": "dev:app" },
"scripts": {
"dev": "astro dev --port ${PORT:-3391} --host ${HOST:-127.0.0.1}",
"dev": "portless",
"dev:app": "astro dev --port ${PORT:-3391} --host ${HOST:-127.0.0.1}",
"build": "astro build",
"preview": "astro preview",
"astro": "astro"
Expand Down
4 changes: 3 additions & 1 deletion apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@
"name": "@maple/web",
"private": true,
"type": "module",
"portless": { "name": "web", "script": "dev:app" },
"scripts": {
"dev": "vite dev --port ${PORT:-3471} --host ${HOST:-127.0.0.1}",
"dev": "portless",
"dev:app": "vite dev --port ${PORT:-3471} --host ${HOST:-127.0.0.1}",
"build": "vite build",
"preview": "vite preview",
"test": "vitest run --passWithNoTests",
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
],
"scripts": {
"build": "turbo build",
"dev": "portless",
"dev": "turbo dev --ui=tui",
"dev:alerting": "bun --filter=@maple/alerting dev",
"format": "oxfmt && oxlint --ignore-pattern '.context/**' --fix",
"alchemy:build-deps": "turbo build --filter=@maple-dev/effect-sdk",
Expand Down
10 changes: 0 additions & 10 deletions portless.json

This file was deleted.

Loading