Workflow One-pager
This document summarizes the Assignments section. We highly recommend you read the detailed guide and use this page as a quick reference.
Download, Run, and Submit Assignment and Discussion Exercise
- Download the starter ZIP file
- Extract 1) to an empty folder of your choice (e.g., "220_HW1")
- Open 2) on Visual Studio Code
- Open terminal in Visual Studio Code
- Run
npm install
ornpm i
to install required packages for the project - Write awesome code 😎
- To run
src/main.ts
file, runnpm run start
- To make a ZIP file that you will submit to Gradescope, run
npm run build:submission
Test Your Solution and Check Coverage
- To run tests, run
npm run test
- To get coverage report, run
npm run test:coverage
Linting
- To check linter warnings, run
npm run lint
. It gives output detailing where/how your code can improve. - To apply all automatically fixable warnings, run
npm run lint:fix
Format Your Code
You can either (a) install Prettier extension to format your files automatically when you save them, or (b) run npm run format
.