mirror of
https://github.com/gosticks/react-bootstrap-table2.git
synced 2025-10-16 11:55:39 +00:00
* Update development.md - Update directory name that's created after cloning the project - Remove lerna bootstrap step (appears to be run as a postinstall step in npm scripts) * Update development.md
29 lines
667 B
Markdown
29 lines
667 B
Markdown
## Development Guide
|
|
|
|
### Setup
|
|
```bash
|
|
$ git clone https://github.com/react-bootstrap-table/react-bootstrap-table2.git
|
|
$ cd react-bootstrap-table2
|
|
$ npm install
|
|
$ lerna bootstrap # ./node_modules/.bin/lerna bootstrap
|
|
```
|
|
### Development
|
|
```bash
|
|
$ npm run storybook
|
|
```
|
|
|
|
### Launch StoryBook
|
|
We use [storybook](https://storybook.js.org/) to list our examples and it also has hot reload from source code. Sometimes, it is also a good entry point to development.
|
|
|
|
```bash
|
|
$ cd packages/react-bootstrap-table2-example
|
|
$ npm run storybook
|
|
```
|
|
|
|
### Testing
|
|
```bash
|
|
$ npm test
|
|
$ npm run test:watch # for watch mode
|
|
$ npm run test:coverage # generate coverage report
|
|
```
|