99fe3b55b2
playwright.config.ts + tests/e2e/{apex,tenant,health}.spec.ts. make e2e for local. CI e2e job opt-in via RUN_E2E repo variable. OIDC click-through deferred to when stage is up.
Refs: M5.3
46 lines
992 B
Makefile
46 lines
992 B
Makefile
# portal — Next.js 15 + Auth.js v5 customer portal + backstage.
|
|
|
|
.PHONY: help install dev test lint typecheck build docker clean
|
|
|
|
help:
|
|
@echo "portal targets:"
|
|
@echo " make install pnpm install"
|
|
@echo " make dev pnpm dev (http://localhost:3000)"
|
|
@echo " make test pnpm test (vitest + coverage)"
|
|
@echo " make lint pnpm lint"
|
|
@echo " make typecheck pnpm typecheck"
|
|
@echo " make build pnpm build (Next.js production build)"
|
|
@echo " make e2e pnpm e2e (Playwright; needs dev stack + tenant-registry + portal running)"
|
|
@echo " make e2e-install one-time browser install"
|
|
@echo " make docker build local image (portal:dev)"
|
|
|
|
install:
|
|
@pnpm install --frozen-lockfile
|
|
|
|
dev:
|
|
@pnpm dev
|
|
|
|
test:
|
|
@pnpm test
|
|
|
|
lint:
|
|
@pnpm lint
|
|
|
|
typecheck:
|
|
@pnpm typecheck
|
|
|
|
build:
|
|
@pnpm build
|
|
|
|
e2e:
|
|
@pnpm e2e
|
|
|
|
e2e-install:
|
|
@pnpm e2e:install
|
|
|
|
docker:
|
|
@docker build -t portal:dev .
|
|
|
|
clean:
|
|
@rm -rf .next coverage node_modules/.cache
|