Skip to content

Commit

Permalink
- Added concurrently library to run renderer storybook and tsc -w com…
Browse files Browse the repository at this point in the history
…mands by a new command "storybook-watch"

- Updated README to include storybook-watch command
  • Loading branch information
janadh committed Dec 20, 2024
1 parent 8c6e300 commit 77561a2
Show file tree
Hide file tree
Showing 3 changed files with 65 additions and 5 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -140,11 +140,11 @@ To run the [@aehrc/smart-forms-renderer](https://www.npmjs.com/package/@aehrc/sm
- On the main directory, go to packages>smart-forms-renderer in a terminal
- run the npm install again in the smart-forms-renderer folder
> npm install
- now you can run the storybook
- now you can run the storybook while watching the directory for any file changes.

>npm run storybook-watch
>npm run storybook

TODO: ensure run storybook is running in parrallel with watch.



Expand Down
59 changes: 59 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 3 additions & 2 deletions packages/smart-forms-renderer/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
"test": "jest",
"test:watch": "jest --watch",
"storybook": "storybook dev -p 6006",
"storybook-watch": "concurrently -n \"STORYBOOK,TSC\" -c \"cyan.bold,green.bold\" \"storybook dev -p 6006\" \"tsc -w\"",
"build-storybook": "storybook build",
"chromatic": "chromatic --exit-zero-on-changes"
},
Expand Down Expand Up @@ -48,7 +49,6 @@
"react-markdown": "^8.0.7",
"style-to-object": "^1.0.6",
"zustand": "^4.5.5"

},
"peerDependencies": {
"@emotion/react": "^11.11.3",
Expand All @@ -68,12 +68,12 @@
"@storybook/addon-interactions": "^8.3.4",
"@storybook/addon-links": "^8.3.4",
"@storybook/addon-onboarding": "^8.3.4",
"@storybook/addon-styling": "^1.3.7",
"@storybook/blocks": "^8.3.4",
"@storybook/react": "^8.3.4",
"@storybook/react-vite": "^8.3.4",
"@storybook/test": "^8.3.4",
"@storybook/types": "^8.3.4",
"@storybook/addon-styling": "^1.3.7",
"@swc/cli": "^0.1.63",
"@swc/core": "^1.5.28",
"@testing-library/jest-dom": "^6.1.2",
Expand All @@ -92,6 +92,7 @@
"@types/react-beautiful-dnd": "^13.1.7",
"@types/react-dom": ">=18.2.22",
"chokidar": "^3.6.0",
"concurrently": "^9.1.0",
"jest": "^29.7.0",
"jest-environment-jsdom": "^29.7.0",
"storybook": "^8.3.4",
Expand Down

0 comments on commit 77561a2

Please sign in to comment.