Skip to content

Commit

Permalink
docs(contributing): removes deprecated code from setup
Browse files Browse the repository at this point in the history
  • Loading branch information
misterdev committed Mar 9, 2019
1 parent fcc1355 commit 239437c
Showing 1 changed file with 53 additions and 16 deletions.
69 changes: 53 additions & 16 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ In case you are suggesting a new feature, we will match your idea with our curre
* Fork the **webpack-cli** repo at [https://github.com/webpack/webpack-cli](https://github.com/webpack/webpack-cli).
* `git clone <your-clone-url> && cd webpack-cli`

### Setup with npm
### Using npm

* Install the dependencies and link them:

Expand All @@ -42,24 +42,15 @@ In case you are suggesting a new feature, we will match your idea with our curre
npm link webpack-cli
```

* Run all the tests with:

```bash
npm run test
```
* Bootstrap all the submodules before building for the first time

* To test a single CLI (other type of) test case:

```bash
jest path/to/my-test.js
npm run bootstrap
npm run build
```

* To test linting:
```bash
npm run lint && npm run tslint
```
### Using yarn

### Setup with yarn
* If you don't have yarn yet:

```bash
Expand All @@ -74,19 +65,65 @@ In case you are suggesting a new feature, we will match your idea with our curre
yarn link webpack-cli
```

* Bootstrap all the submodules before building for the first time

```bash
yarn bootstrap
yarn build
```


## Testing

### Using npm

* Run all the tests with:

```bash
npm run test
```

* Test a single CLI test case:

```bash
npx jest path/to/my-test.js
```

* You can also install jest globally and run tests without npx:

```bash
npm i -g jest
jest path/to/my-test.js
```

* You can run the linters:

```bash
npm run lint && npm run tslint
```

### Using yarn

* Run all the tests with:

```bash
yarn test
```

* To test a single CLI (other type of) test case:
* Test a single CLI test case:

```bash
npx jest path/to/my-test.js
```

* You can also install jest globally and run tests without npx:

```bash
yarn global add jest
jest path/to/my-test.js
```

* To test linting:
* You can run the linters:

```bash
yarn lint && yarn tslint
Expand Down

0 comments on commit 239437c

Please sign in to comment.