lse-component-library
v1.0.0
Published
A shared component library for LSE Projects
Downloads
1
Readme
LSE Component Library
Accessing the Library via Storybook
Currently to access the Library via the Executive Education Storybook instance you need to execute npm run storybook
in both the Executive Education & Component Library directories on your machine. This will run instances of Storybook on ports 6006
& 7006
for the respective projects.
Once both Storybook instances are active you'll be able to view the Component Library directly in the Executive Education instance.
Using Components in another Project
To access the built components from the Library you'll have to execute a shell command to copy the build files to the Component Library inside the project you're working on. Use the snippet below to create your copybuild.sh
file & amend PATH_TO_THE_PROJECT
with the root directory of the project you wish to access the Library from.
npm run build
PROJECT_PATH='PATH_TO_THE_PROJECT/node_modules/@lse/component-library/dist'
cp dist/index.js $PROJECT_PATH