Skip to content

Commit

Permalink
Merge pull request #31 from department-of-veterans-affairs/6989/roett…
Browse files Browse the repository at this point in the history
…ger-StorybookMissingDistFolderLocally

6989-roettger storybook missing dist folder locally
  • Loading branch information
TimRoe authored Nov 3, 2023
2 parents b73cae4 + 82e9116 commit 6d77409
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 10 deletions.
23 changes: 14 additions & 9 deletions packages/components/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ cd va-mobile-library/packages/components
```
yarn
```
then
```
yarn tokensBuild
```

5. Launch the app

Expand All @@ -44,13 +48,14 @@ yarn

### Yarn Commands

| Command | Description |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------ |
| `start` | Starts Metro Bundler with options to run app on different platforms. **Note:** To run on web, use `yarn storybook:web` command below |
| `android ` | Run app on last used Android emulator/device |
| `ios` | Run app on last used iOS simulator/device |
| `storybook:build` | Generates static version of Storybook for deployment |
| `storybook:deploy` | Deploys Storybook to [`homepage`](https://department-of-veterans-affairs.github.io/va-mobile-library) in `package.json` |
| Command | Description |
| -------------------- | ----------- |
| `start` | Starts Metro Bundler with options to run app on different platforms. **Note:** To run on web, use `yarn storybook:web` command below |
| `android ` | Run app on last used Android emulator/device |
| `ios` | Run app on last used iOS simulator/device |
| `storybook:build` | Generates static version of Storybook for deployment |
| `storybook:deploy` | Deploys Storybook to [`homepage`](https://department-of-veterans-affairs.github.io/va-mobile-library) in `package.json` |
| `storybook:generate` | Generates `.storybook/native/storybook.requires.js` which tells React Native where to find stores since it doesn't support dynamic imports |
| `storybook:watch` | Watches for newly created stories and regenerates `storybook.requires.js` |
| `storybook:web` | Builds and launches development server for web |
| `storybook:watch` | Watches for newly created stories and regenerates `storybook.requires.js` |
| `storybook:web` | Builds and launches development server for web |
| `tokensBuild` | Builds the tokens package so they are available locally for use by Storybook |
3 changes: 2 additions & 1 deletion packages/components/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"storybook:watch": "sb-rn-watcher --config-path .storybook/native",
"storybook:web": "STORYBOOK_WEB=true start-storybook --config-dir .storybook/web -p 6006 --no-version-updates",
"test": "jest --coverage",
"test:watch": "jest --watch"
"test:watch": "jest --watch",
"tokensBuild": "cd ../tokens && yarn build"
},
"repository": {
"type": "git",
Expand Down

0 comments on commit 6d77409

Please sign in to comment.