Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Storybook complains about missing dist/ folder in local dev environment #31

Merged
merged 2 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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"
timwright12 marked this conversation as resolved.
Show resolved Hide resolved
},
"repository": {
"type": "git",
Expand Down