Skip to content

Commit

Permalink
chore(yarn): use yarn start to launch storybook
Browse files Browse the repository at this point in the history
  • Loading branch information
fgameiro committed Aug 27, 2018
1 parent 4b16738 commit bfcbe88
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 9 deletions.
20 changes: 11 additions & 9 deletions CONTRIBUTING.md
Expand Up @@ -3,13 +3,13 @@
### Setting up the development environment

```
yarn install
yarn build
yarn && yarn build
```

### Launching the dev gallery

```
yarn storybook
yarn start
```

### To build individual packages after modifications
Expand Down Expand Up @@ -39,23 +39,26 @@ yarn test
If you want to keep the tests running in watch mode, you might need to install
a Jest dependency watchman.

- https://facebook.github.io/watchman/docs/install.html
* https://facebook.github.io/watchman/docs/install.html

And then:

```
yarn test --watch
```

#### Generate new snapshots and coverage reports

To run the full test suite and generate a coverage report use:

```
yarn test --coverage
```

And open the html generated in ``coverage/lcov-report/index.html``
And open the html generated in `coverage/lcov-report/index.html`

To update the snapshots use

```
yarn test -u
```
Expand Down Expand Up @@ -93,8 +96,8 @@ If you already have it installed, check the version with:
pre-commit --version
```

If you dont have it, please install
[pre-commit](http://pre-commit.com/) on your machine and then
If you dont have it, please install
[pre-commit](http://pre-commit.com/) on your machine and then
setup the git hooks by running:

```
Expand All @@ -104,10 +107,9 @@ pre-commit install
#### Commit messages

Farmblocks uses commitizen to help with the formatting of commit messages,
so instead of doing a ``git commit``, we ask you to please use the ``commit``
so instead of doing a `git commit`, we ask you to please use the `commit`
npm script instead:

```
yarn commit
```

1 change: 1 addition & 0 deletions package.json
Expand Up @@ -7,6 +7,7 @@
"main": "index.js",
"private": true,
"scripts": {
"start": "start-storybook -p 6006 -s .storybook/assets",
"build": "lerna run build",
"test": "jest",
"snyk": "snyk test",
Expand Down

0 comments on commit bfcbe88

Please sign in to comment.