Tools Professionals Use
Meet the tools on every JavaScript team: npm for packages and scripts, Vite for a fast dev server and a build you can publish, and ESLint and Prettier to catch mistakes and keep code tidy.
Updated
JavaScript Tooling
- npm and Packages (Journeyman): npm is an app store for code that comes with Node.js; you'll describe a project in package.json, install packages into node_modules, tell dependencies from devDependencies, and run the project's commands as npm scripts.
- A Dev Server and Build with Vite (Journeyman): Vite gives a web project a dev server that shows every change the moment you save, and a build that bundles your code and packages into a small dist folder ready to put online.
- Clean Code with ESLint and Prettier (Journeyman): ESLint reads your code and flags likely mistakes, like an unused variable or a == that should be ===, and Prettier formats every file the same way, so you set them up once with a flat config and npm scripts and let VS Code run them as you save.
Exercise: Game Night Project Setup
- Exercise: Game Night Project Setup (Journeyman): Take a working but messy Game Night scoreboard and set it up like a professional project, with npm scripts, ESLint, Prettier and a .gitignore, until npm run lint, npm run format:check and the tests all pass.