diff --git a/.github/workflows/continuous-integration.yml b/.github/workflows/continuous-integration.yml index 104a45cb5..171b81af7 100644 --- a/.github/workflows/continuous-integration.yml +++ b/.github/workflows/continuous-integration.yml @@ -14,34 +14,14 @@ jobs: name: Lint Javascript steps: - - name: "Check out code" - uses: actions/checkout@v4 - - - name: "Install Node" - uses: actions/setup-node@v4 - with: - node-version: "24.x" - - - name: "Restore Node dependencies from cache" - uses: actions/cache@v4 + - uses: actions/checkout@v4 + - run: corepack enable + - uses: actions/setup-node@v4 with: - path: node_modules - key: ${{ runner.OS }}-node-module-cache-${{ hashFiles('**/package-lock.json') }} - restore-keys: | - ${{ runner.OS }}-node-module-cache- - - - name: "Install Node dependencies" - env: - NODE_ENV: development - run: | - corepack enable - yarn install - working-directory: ./ - - - name: "Lint Client" - run: | - yarn lint - working-directory: ./ + node-version-file: "package.json" + cache: "yarn" + - run: yarn install + - run: yarn lint build: runs-on: ubuntu-latest diff --git a/CLAUDE.md b/CLAUDE.md new file mode 100644 index 000000000..a1e8a8b93 --- /dev/null +++ b/CLAUDE.md @@ -0,0 +1,91 @@ +# CLAUDE.md + +This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository. + +## Project Overview + +NGLP Web Delivery Platform (WDP) client — a Yarn Workspaces + Turbo monorepo with the admin Next.js app and shared packages. The backend is a GraphQL API (Meru). + +## Common Commands + +```sh +yarn install # Install all dependencies +yarn dev # Start admin app (:3000) +yarn build # Build the app +yarn start # Start the built admin app +yarn lint # Lint all packages +yarn fix # Auto-fix lint issues +yarn types # TypeScript type-check all packages +yarn schema # Regenerate GraphQL schema + codegen types +yarn relay # Compile Relay artifacts +``` + +To run commands for a single workspace: `yarn workspace @wdp/admin run