Skip to content

Commit

Permalink
Merge pull request #28 from soumik-mukherjee/bug/27_add_prod_build_sc…
Browse files Browse the repository at this point in the history
…ript

Bugfix: Added yarn build and serve scripts
  • Loading branch information
soumik-mukherjee authored Apr 18, 2020
2 parents f63d136 + 650c718 commit a8d1c69
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 4 deletions.
23 changes: 20 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,28 @@ The `component library` comes bundled with [storybook](https://storybook.js.org/

To run the `storybook` server, execute from the repo root dir

> yarn run:ui-stories
```bash
$ yarn run:ui-stories
```

To run the `gatsby` app, execute from the repo root dir
To run a `development` server with the `gatsby` app, execute from the repo root dir

```bash
$ yarn develop:webapp
```

To build the `gatsby` web app, i.e. `production` build (this creates the html, css and js bundles in the `packages/webapp/public` folder), execute from the repo root dir

```bash
$ yarn build:webapp
```

You can also run a local server to check out your `production` build, with

```bash
$ yarn serve:webapp
```

> yarn develop:webapp

### Submitting PRs

Expand Down
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,9 @@
"scripts": {
"develop:webapp": "yarn workspace @project/webapp develop",
"clean:webapp": "yarn workspace @project/webapp clean",
"run:ui-stories": "yarn workspace @project/ui-components storybook"
"run:ui-stories": "yarn workspace @project/ui-components storybook",
"build:webapp": "yarn workspace @project/webapp build",
"serve:webapp": "yarn workspace @project/webapp serve"
},
"devDependencies": {
"lerna": "^3.20.2"
Expand Down

0 comments on commit a8d1c69

Please sign in to comment.