Skip to content

Commit 18acfa4

Browse files
authored
Merge pull request webpack#7220 from webpack/feature/add-type-checking-to-setup-guide
docs(setup): add type checker commands on setup guide
2 parents d9336bc + 5bdeaa5 commit 18acfa4

File tree

1 file changed

+56
-2
lines changed

1 file changed

+56
-2
lines changed

_SETUP.md

Lines changed: 56 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ That's all.
1010

1111
## Setup manually
1212

13-
Setup your local webpack repository
13+
### Setup your local webpack repository
1414

1515
```bash
1616
git clone https://github.com/webpack/webpack.git
@@ -21,8 +21,62 @@ yarn link
2121
yarn link webpack
2222
```
2323

24-
To run the entire test suite use:
24+
### To run the entire test suite use
2525

2626
```bash
2727
yarn test
2828
```
29+
30+
### To run only intergration tests use
31+
32+
```bash
33+
yarn test:integration
34+
```
35+
36+
or in watch mode
37+
38+
```bash
39+
yarn test:integration --watch
40+
```
41+
42+
### To run only unit tests use
43+
44+
```bash
45+
yarn test:unit
46+
```
47+
48+
or in watch mode
49+
50+
```bash
51+
yarn test:unit --watch
52+
```
53+
54+
### To run code formatter (prettier) run
55+
56+
```bash
57+
yarn pretty
58+
```
59+
60+
### To run all linters use
61+
62+
This performs linting on:
63+
64+
* eslint (code-lint script)
65+
* schema (schema-lint script)
66+
* types (type-lint script)
67+
68+
```bash
69+
yarn lint
70+
```
71+
72+
### To run only the typechecker use
73+
74+
```bash
75+
yarn type-lint
76+
```
77+
78+
or incremental (in watch mode)
79+
80+
```bash
81+
yarn type-lint --watch
82+
```

0 commit comments

Comments
 (0)