Skip to content

Commit

Permalink
Merge pull request #7220 from webpack/feature/add-type-checking-to-se…
Browse files Browse the repository at this point in the history
…tup-guide

docs(setup): add type checker commands on setup guide
  • Loading branch information
sokra committed May 7, 2018
2 parents d9336bc + 5bdeaa5 commit 18acfa4
Showing 1 changed file with 56 additions and 2 deletions.
58 changes: 56 additions & 2 deletions _SETUP.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ That's all.

## Setup manually

Setup your local webpack repository
### Setup your local webpack repository

```bash
git clone https://github.com/webpack/webpack.git
Expand All @@ -21,8 +21,62 @@ yarn link
yarn link webpack
```

To run the entire test suite use:
### To run the entire test suite use

```bash
yarn test
```

### To run only intergration tests use

```bash
yarn test:integration
```

or in watch mode

```bash
yarn test:integration --watch
```

### To run only unit tests use

```bash
yarn test:unit
```

or in watch mode

```bash
yarn test:unit --watch
```

### To run code formatter (prettier) run

```bash
yarn pretty
```

### To run all linters use

This performs linting on:

* eslint (code-lint script)
* schema (schema-lint script)
* types (type-lint script)

```bash
yarn lint
```

### To run only the typechecker use

```bash
yarn type-lint
```

or incremental (in watch mode)

```bash
yarn type-lint --watch
```

0 comments on commit 18acfa4

Please sign in to comment.