Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/oxwazz/learn-typescript-advanced_patterns_workshop
https://github.com/oxwazz/learn-typescript-advanced_patterns_workshop
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/oxwazz/learn-typescript-advanced_patterns_workshop
- Owner: oxwazz
- Created: 2023-12-20T22:24:29.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2024-01-01T15:39:06.000Z (about 1 year ago)
- Last Synced: 2024-01-01T16:31:41.054Z (about 1 year ago)
- Language: TypeScript
- Size: 498 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Quickstart
Clone this repo or [open in Gitpod](https://gitpod.io/#https://github.com/total-typescript/advanced-patterns-workshop).
```sh
# Installs all dependencies
npm install# Starts the first exercise
npm run exercise 01# Runs linting and tests on the solution
npm run solution 01
```## How to take the course
You'll notice that the course is split into modules. Each module is a group of related exercises.
Each exercise is split into a `*.problem.ts` and a `*.solution.ts`.
To take an exercise:
1. Go into `*.problem.ts`
2. Run `npm run exercise 01`, where `01` is the number of the exercise (not module) you're on.The `exercise` script will run TypeScript typechecks and a test suite on the exercise.
This course encourages **active, exploratory learning**. I'll present a problem, and **you'll be asked to try to find a solution**. To attempt a solution, you'll need to:
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html)
2. Try to find something that looks relevant.
3. Give it a go to see if it solves the problem.You'll know if you've succeeded because the tests will pass.
**If you succeed**, or **if you get stuck**, unpause the video and check out the `*.solution.ts`. You can see if your solution is better or worse than mine!
You can run `npm run solution 01` to run the tests and typechecking on the solution.
## Acknowledgements
Say thanks to Matt on [Twitter](https://twitter.com/mattpocockuk) or by joining his [Discord](https://discord.gg/8S5ujhfTB3). Consider signing up to his [Total TypeScript course](https://totaltypescript.com).
## Reference
### `npm run exercise 01`
Alias: `npm run e 01`
Run the corresponding `*.problem.ts` file.
### `npm run solution 01`
Alias: `npm run s 01`
Run the corresponding `*.solution.ts` file. If there are multiple, it runs only the first one.