Skip to content

Commit

Permalink
chore: update dev guide
Browse files Browse the repository at this point in the history
  • Loading branch information
evenstensberg committed Sep 30, 2018
1 parent d4cd76a commit d3a3b87
Showing 1 changed file with 27 additions and 4 deletions.
31 changes: 27 additions & 4 deletions CONTRIBUTING.md
Expand Up @@ -33,11 +33,24 @@ In case you are suggesting a new feature, we will match your idea with our curre
* `git clone <your-clone-url> && cd webpack-cli`

### Setup with npm
* Install the dependencies: `npm install`
* Run the tests with: `npm test`
* Install the dependencies:
- `npm install`

* To run the entire test suite:
- `npm run test`

* To test a single CLI (flag) test case:
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`

* To test a single CLI (other type of) test case:
- `jest path/to/my-test.js`

* To test linting:
- `npm run lint && npm run tslint`

### Setup with yarn
* If you don't have yarn yet: `npm install -g yarn`
* If you don't have yarn yet:
- `npm install -g yarn`
* Install the dependencies and link them

```bash
Expand All @@ -46,7 +59,17 @@ yarn link
yarn link webpack-cli
```

* To run the entire test suite use: `yarn test`
* To run the entire test suite use:
- `yarn test`

* To test a single CLI (flag) test case:
- `BIN_TEST_CASES_GREP=/myCase jest test/BinTestCases.test.js`

* To test a single CLI (other type of) test case:
- `jest path/to/my-test.js`

* To test linting:
- `yarn lint && yarn tslint`

## Editor Config

Expand Down

0 comments on commit d3a3b87

Please sign in to comment.