2018-03-24 19:44:11 +01:00
|
|
|
# Setup
|
|
|
|
|
2018-04-04 12:28:03 +02:00
|
|
|
At webpack we use `yarn` to execute commands.
|
|
|
|
|
|
|
|
If you already have `yarn` installed, do: `yarn setup`. This will complete all required steps.
|
|
|
|
|
|
|
|
If not, do: `npm run setup`, the setup will also install `yarn` for you.
|
|
|
|
|
|
|
|
That's all.
|
|
|
|
|
|
|
|
## Setup manually
|
|
|
|
|
2018-05-07 08:25:49 +02:00
|
|
|
### Setup your local webpack repository
|
2018-03-24 19:44:11 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
git clone https://github.com/webpack/webpack.git
|
|
|
|
cd webpack
|
|
|
|
npm install -g yarn
|
2018-03-26 16:07:45 +02:00
|
|
|
yarn
|
2018-03-24 19:44:11 +01:00
|
|
|
yarn link
|
|
|
|
yarn link webpack
|
|
|
|
```
|
|
|
|
|
2018-05-07 08:25:49 +02:00
|
|
|
### To run the entire test suite use:
|
2018-03-24 19:44:11 +01:00
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn test
|
2018-04-04 12:28:03 +02:00
|
|
|
```
|
2018-05-07 08:25:49 +02:00
|
|
|
|
|
|
|
### To run the typechecker use:
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn type-lint
|
|
|
|
```
|
|
|
|
|
|
|
|
or incremental as you add JSDoc Annotations or make changes
|
|
|
|
|
|
|
|
```bash
|
|
|
|
yarn type-lint --watch
|
|
|
|
```
|