Learn Everything

Paths/Frontend Engineer/TypeScript Essentials / Project & Tooling

Guided Taskbeginnerubuntu:24.04Ask AI

Wire the Scripts

If the checks are not in package.json, nobody runs them. Write the scripts that make typecheck, lint, test and build one command each.

Validator

⏱ 0:00

IDLE — checks run live as you type commands; submit when done

01Requirements

live checks
  • File ~/frontend/package.json exists○
  • The manifest declares the scripts○
  • The scripts cover typecheck, lint, test and build○

02Walkthrough

2 steps
  1. 01

    Write the manifest

    The scripts are the contract with your team - every command they run should be one they can run locally.

    echo '{\n "name": "orders-web",\n "private": true,\n "scripts": {\n "dev": "vite",\n "build": "vite build",\n "typecheck": "tsc --noEmit",\n "lint": "eslint src",\n "test": "vitest run"\n }\n}' > ~/frontend/package.json
  2. 02

    Verify and submit

    cat the manifest, then submit for validation.

    cat ~/frontend/package.json

03Stuck?

0 of 3 revealed

Take a hint without losing the lab — each one points at the thing to look at, not at the answer.

04AI Tutor

guides, never solves

Tell me what you're stuck on — I'll nudge, not solve. Which requirement are you looking at?

04Notebook

saved locally in this browser

learner@lab — ubuntu:24.04

↑/↓ recalls commands · Ctrl+Enter submits · type help for the command list