You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-28
Original file line number
Diff line number
Diff line change
@@ -8,52 +8,37 @@ Clone this repo or [open in Gitpod](https://gitpod.io/#https://github.com/total-
8
8
# Installs all dependencies
9
9
npm install
10
10
11
-
# Starts the first exercise
12
-
npm run exercise 01
13
-
14
-
# Runs linting and tests on the solution
15
-
npm run solution 01
11
+
# Asks you which exercise you'd like to run, and runs it
12
+
npm run exercise
16
13
```
17
14
18
15
## How to take the course
19
16
20
-
You'll notice that the course is split into modules. Each module is a group of related exercises.
21
-
22
-
Each exercise is split into a `*.problem.ts` and a `*.solution.ts`.
17
+
You'll notice that the course is split into exercises. Each exercise is split into a `*.problem` and a `*.solution`.
23
18
24
19
To take an exercise:
25
20
26
-
1.Go into `*.problem.ts`
27
-
2.Run `npm run exercise 01`, where `01` is the number of the exercise (not module) you're on.
21
+
1.Run `npm run exercise`
22
+
2.Choose which exercise you'd like to run.
28
23
29
-
The `exercise` script will run TypeScript typechecks and a test suite on the exercise.
24
+
This course encourages **active, exploratory learning**. In the video, I'll explain a problem, and **you'll be asked to try to find a solution**. To attempt a solution, you'll need to:
30
25
31
-
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:
32
-
33
-
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html)
34
-
2. Try to find something that looks relevant.
35
-
3. Give it a go to see if it solves the problem.
26
+
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html).
27
+
1. Try to find something that looks relevant.
28
+
1. Give it a go to see if it solves the problem.
36
29
37
30
You'll know if you've succeeded because the tests will pass.
38
31
39
-
**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!
40
-
41
-
You can run `npm run solution 01` to run the tests and typechecking on the solution.
32
+
**If you succeed**, or **if you get stuck**, unpause the video and check out the `*.solution`. You can see if your solution is better or worse than mine!
42
33
43
34
## Acknowledgements
44
35
45
36
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).
46
37
47
38
## Reference
48
39
49
-
### `npm run exercise 01`
50
-
51
-
Alias: `npm run e 01`
52
-
53
-
Run the corresponding `*.problem.ts` file.
54
-
55
-
### `npm run solution 01`
40
+
### `pnpm run exercise`
56
41
57
-
Alias: `npm run s 01`
42
+
Alias: `pnpm run e`
58
43
59
-
Run the corresponding `*.solution.ts` file. If there are multiple, it runs only the first one.
44
+
Open a prompt for choosing which exercise you'd like to run.
0 commit comments