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
+12-29Lines changed: 12 additions & 29 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -9,58 +9,41 @@ Take the course on [Total TypeScript](https://totaltypescript.com/tutorials/begi
9
9
- Text explanations
10
10
- A built-in Stackblitz editor
11
11
12
-
## Installation Instructions
13
-
14
-
Clone this repo or [open in Gitpod](https://gitpod.io/#https://github.com/total-typescript/beginners-typescript).
15
-
16
12
```sh
17
13
# Installs all dependencies
18
14
npm install
19
15
20
-
# Starts the first exercise
21
-
npm run exercise 01
22
-
23
-
# Runs linting and tests on the solution
24
-
npm run solution 01
16
+
# Asks you which exercise you'd like to run, and runs it
17
+
npm run exercise
25
18
```
26
19
27
20
## How to take the course
28
21
29
-
You'll notice that the course is split into exercises. Each exercise is split into a `*.problem.ts` and a `*.solution.ts`.
22
+
You'll notice that the course is split into exercises. Each exercise is split into a `*.problem` and a `*.solution`.
30
23
31
24
To take an exercise:
32
25
33
-
1. Go into `*.problem.ts`
34
-
2. Run `npm run exercise 01`, where `01` is the number of the exercise you're on.
35
-
36
-
The `exercise` script will run TypeScript typechecks and a test suite on the exercise.
26
+
1. Run `npm run exercise`
27
+
2. Choose which exercise you'd like to run.
37
28
38
29
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:
39
30
40
-
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html)
41
-
2. Try to find something that looks relevant.
42
-
3. Give it a go to see if it solves the problem.
31
+
1. Check out [TypeScript's docs](https://www.typescriptlang.org/docs/handbook/intro.html).
32
+
1. Try to find something that looks relevant.
33
+
1. Give it a go to see if it solves the problem.
43
34
44
35
You'll know if you've succeeded because the tests will pass.
45
36
46
-
**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!
47
-
48
-
You can run `npm run solution 01` to run the tests and typechecking on the solution.
37
+
**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!
49
38
50
39
## Acknowledgements
51
40
52
41
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).
53
42
54
43
## Reference
55
44
56
-
### `npm run exercise 01`
57
-
58
-
Alias: `npm run e 01`
59
-
60
-
Run the corresponding `*.problem.ts` file.
61
-
62
-
### `npm run solution 01`
45
+
### `npm run exercise`
63
46
64
-
Alias: `npm run s 01`
47
+
Alias: `npm run e`
65
48
66
-
Run the corresponding `*.solution.ts` file. If there are multiple, it runs only the first one.
49
+
Open a prompt for choosing which exercise you'd like to run.
0 commit comments