Skip to content

Commit

Permalink
Update Contributing.md (#655)
Browse files Browse the repository at this point in the history
  • Loading branch information
boopathi authored and vigneshshanmugam committed Aug 11, 2017
1 parent 313fa13 commit 0b14d05
Showing 1 changed file with 17 additions and 13 deletions.
30 changes: 17 additions & 13 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,28 @@

### Setup
```sh
$ git clone https://github.com/babel/minify
$ cd minify
$ npm install
$ npm run bootstrap
git clone https://github.com/babel/minify
cd minify
```

### Install

```sh
yarn
```

#### Build

To build **once**:

```sh
npm run build
yarn build
```

Or to do an incremental build in watch mode:

```sh
npm run watch
yarn watch
```

#### Lint
Expand All @@ -29,32 +33,32 @@ This project uses [prettier](https://github.com/prettier/prettier) for formattin
To check both:

```sh
npm run lint
yarn lint
```

You can also run them each individually:

```sh
# prettier
npm run format-check
yarn format-check

# eslint
npm run eslint
yarn eslint
```

##### Lint Fix

To fix formatting and auto-fixable eslint errors,

```sh
npm run fix
yarn fix
```

You can also run them each individually:

```sh
# prettier
npm run format
yarn format

# eslint
npm run eslint-fix
Expand All @@ -65,13 +69,13 @@ npm run eslint-fix
To run all tests,

```sh
npm test
yarn test
```

To run tests for a specific package,

```sh
npm test packages/babel-preset-minify
yarn test packages/babel-preset-minify
```

#### Smoke Tests
Expand Down

0 comments on commit 0b14d05

Please # to comment.