Skip to content

Commit 52c2bb6

Browse files
fixup! Merge remote-tracking branch 'devbox-origin/happy' into feat-merge-happy-devbox
1 parent 8652783 commit 52c2bb6

File tree

7 files changed

+26
-278
lines changed

7 files changed

+26
-278
lines changed

.github/workflows/ci.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -48,9 +48,9 @@ jobs:
4848
node-version: '24'
4949
cache: 'yarn'
5050
cache-dependency-path: |
51-
happy-cli/yarn.lock
52-
happy-server/yarn.lock
53-
happy/yarn.lock
51+
cli/yarn.lock
52+
server/yarn.lock
53+
expo-app/yarn.lock
5454
5555
- name: Install yarn
5656
run: npm install -g yarn
@@ -70,26 +70,26 @@ jobs:
7070
npx playwright install chromium
7171
npx playwright install-deps chromium
7272
73-
- name: Install happy-cli dependencies
74-
working-directory: happy-cli
73+
- name: Install cli dependencies
74+
working-directory: cli
7575
run: yarn install --frozen-lockfile
7676

77-
- name: Install happy-server dependencies
78-
working-directory: happy-server
77+
- name: Install server dependencies
78+
working-directory: server
7979
run: yarn install --frozen-lockfile
8080

8181
# Note: Slot-specific databases (handy_test_N) are created automatically
8282
# by happy-launcher.sh when starting services for that slot.
8383
# We pre-run migrations here to ensure the schema is ready and to catch
8484
# any migration errors early in the CI pipeline.
85-
- name: Setup happy-server database (Prisma migrations)
86-
working-directory: happy-server
85+
- name: Setup server database (Prisma migrations)
86+
working-directory: server
8787
run: yarn migrate
8888
env:
8989
DATABASE_URL: postgresql://postgres:postgres@localhost:5432/handy
9090

91-
- name: Install happy webapp dependencies
92-
working-directory: happy
91+
- name: Install expo-app dependencies
92+
working-directory: expo-app
9393
run: yarn install --frozen-lockfile
9494

9595
- name: Install E2E test dependencies

scripts/e2e/helpers/cli.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import * as fs from 'node:fs';
1010
import { SlotConfig } from './slots.js';
1111

1212
const ROOT_DIR = path.resolve(import.meta.dirname, '..', '..', '..');
13-
const CLI_PATH = path.join(ROOT_DIR, 'happy-cli', 'bin', 'happy.mjs');
13+
const CLI_PATH = path.join(ROOT_DIR, 'cli', 'bin', 'happy.mjs');
1414

1515
export interface DaemonHandle {
1616
process: ChildProcess | null;

scripts/node_modules

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
../happy-cli/node_modules
1+
../cli/node_modules

scripts/rebase-upstream.sh

Lines changed: 0 additions & 111 deletions
This file was deleted.

scripts/setup-submodules.sh

Lines changed: 0 additions & 141 deletions
This file was deleted.

scripts/setup-test-credentials.mjs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -398,9 +398,9 @@ async function main() {
398398
console.log(' 4. You\'ll be logged in and can control CLI sessions!\n');
399399

400400
console.log('To use the CLI:');
401-
console.log(` HAPPY_HOME_DIR=${HAPPY_HOME_DIR} HAPPY_SERVER_URL=${SERVER_URL} ./happy-cli/bin/happy.mjs\n`);
401+
console.log(` HAPPY_HOME_DIR=${HAPPY_HOME_DIR} HAPPY_SERVER_URL=${SERVER_URL} ./cli/bin/happy.mjs\n`);
402402
console.log(`Or run the integration tests with:`);
403-
console.log(` cd happy-cli && yarn test:integration-test-env\n`);
403+
console.log(` cd cli && yarn test:integration-test-env\n`);
404404
} catch (error) {
405405
console.error('\n✗ Setup failed:', error.message);
406406
process.exit(1);

scripts/validate.sh

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -129,9 +129,9 @@ if [ "$E2E_ONLY" = false ]; then
129129
echo "=== Build Validation ==="
130130
echo ""
131131

132-
run_test "happy-cli build" "cd '$ROOT_DIR/happy-cli' && yarn build" || true
133-
run_test "happy-server typecheck" "cd '$ROOT_DIR/happy-server' && yarn build" || true
134-
run_test "happy webapp typecheck" "cd '$ROOT_DIR/happy' && yarn typecheck" || true
132+
run_test "cli build" "cd '$ROOT_DIR/cli' && yarn build" || true
133+
run_test "server typecheck" "cd '$ROOT_DIR/server' && yarn build" || true
134+
run_test "expo-app typecheck" "cd '$ROOT_DIR/expo-app' && yarn typecheck" || true
135135

136136
# =============================================================================
137137
# Unit Tests
@@ -140,18 +140,18 @@ if [ "$E2E_ONLY" = false ]; then
140140
echo "=== Unit Tests ==="
141141
echo ""
142142

143-
# happy-server unit tests (if they exist)
144-
if [ -f "$ROOT_DIR/happy-server/package.json" ] && grep -q '"test"' "$ROOT_DIR/happy-server/package.json"; then
145-
run_test "happy-server unit tests" "cd '$ROOT_DIR/happy-server' && yarn test --run 2>/dev/null || true" || true
143+
# server unit tests (if they exist)
144+
if [ -f "$ROOT_DIR/server/package.json" ] && grep -q '"test"' "$ROOT_DIR/server/package.json"; then
145+
run_test "server unit tests" "cd '$ROOT_DIR/server' && yarn test --run 2>/dev/null || true" || true
146146
else
147-
echo " Skipping happy-server unit tests (no test script found)"
147+
echo " Skipping server unit tests (no test script found)"
148148
fi
149149

150-
# happy-cli unit tests (if they exist)
151-
if [ -f "$ROOT_DIR/happy-cli/package.json" ] && grep -q '"test"' "$ROOT_DIR/happy-cli/package.json"; then
152-
run_test "happy-cli unit tests" "cd '$ROOT_DIR/happy-cli' && yarn test --run 2>/dev/null || true" || true
150+
# cli unit tests (if they exist)
151+
if [ -f "$ROOT_DIR/cli/package.json" ] && grep -q '"test"' "$ROOT_DIR/cli/package.json"; then
152+
run_test "cli unit tests" "cd '$ROOT_DIR/cli' && yarn test --run 2>/dev/null || true" || true
153153
else
154-
echo " Skipping happy-cli unit tests (no test script found)"
154+
echo " Skipping cli unit tests (no test script found)"
155155
fi
156156

157157
echo ""

0 commit comments

Comments
 (0)