Frontend Developer · Focus area 3: Build tools and testing
FE7: The modern frontend toolkit
Goal: set up and use the tools around frontend code: what build tools such as Vite and Webpack do, TypeScript for safer components and data, Tailwind CSS and design tokens, linting and formatting, and handling environments, configuration and error monitoring.
You'll need: Node.js, your Kirana Express project, a code editor with TypeScript support (such as VS Code), and Git.
Where this is used: almost every professional frontend team works with a build tool, TypeScript, a CSS approach, a linter and separate environments. Job descriptions list them by name, and much day-to-day time goes into using them well.
How it differs: a backend program usually runs as written on a server you control. Frontend code must be transformed, bundled and optimised to run in many different browsers you don't control, so the toolchain is a bigger part of the frontend job.
Time: reading about 2 hours · practice (the Try it tasks) about 3 hours · assignment about 3 to 4 hours.
Lessons
- 1What build tools doReading 15–25 minutes, plus practice✓
- 2TypeScript for components and dataReading 15–25 minutes, plus practice✓
- 3Tailwind CSS and design tokensReading 15–25 minutes, plus practice✓
- 4Linting, formatting and code checksReading 15–25 minutes, plus practice✓
- 5Environments, configuration and error monitoringReading 15–25 minutes, plus practice✓
🛠️Assignment: A professional set-up for Kirana Express
This sets up the toolchain used by all three path projects.
- Move the project to Vite (or confirm your framework's build), and check the production build with a preview before deploying.
- Convert key components and API calls to strict TypeScript, with runtime validation for API data.
- Define design tokens and build Button and Card components that use only tokens.
- Add Prettier, ESLint with react-hooks and jsx-a11y rules, a type check and a pre-commit hook.
- Set up environments with safe variables, an
.env.example, and error monitoring with source maps.
Self-check before you finish:
- [ ]
npm run buildandnpm run previewwork, and the preview matches development. - [ ] No
anyremains in the components you converted. - [ ] No hard-coded colours remain in the components you converted.
- [ ] Lint, format and type checks pass with no errors.
- [ ] No secret appears in any frontend variable or committed file.
✅Module check
Explain in a few sentences, in your own words:
What does a modern frontend toolkit do, and how do you use it safely?
Show a good answer
A good answer mentions: build tools that serve, transform, bundle and optimise code, with the production build tested before
release; strict TypeScript for props and data plus runtime validation of API responses, avoiding any; design tokens with Tailwind or
another CSS approach, and components instead of repeated classes or raw values; Prettier, ESLint (hooks and accessibility rules) and
type checks in the editor, before commit and in CI; and environments configured with public-prefixed variables only for non-secrets,
.env files kept out of Git, source maps and error monitoring without personal data.
📚Official references
Official documentation and guidance for this module's topics, chosen on 2 November 2026. Tools, laws and standards change, so check the current version before you rely on a detail. If a link has moved, search the same site.
📝Module quiz
10 questions · 10 marks each · 100 marks in all · pass mark 70% · retry as often as you like ·
