@pillarbiosci/design_library
v0.2.25
Published
Pillar's Design Pattern Library
Downloads
8
Keywords
Readme
Pillar Design Library Readme
Storybook configuration.
To run storybook you should Follow these steps
- Clone repo into folder of your choice
- Checkout
development
branch - Run
npm install
- Copy the storybook configuration from
launch.default.json
to new filelaunch.json
- Launch storybook
- VS Code users: Use the run/debug panel in the lefthand toolbar to launch storybook.
- Click the
Run and Debug
icon - Select
Storybook
from the dropdown at the top & press the play icon - The storybook site will launch in your default web browser.
- Click the
- Alternatively/non-VS Code users:
- Run
npm run storybook
- The storybook site will launch in your default web browser.
- Run
- VS Code users: Use the run/debug panel in the lefthand toolbar to launch storybook.
Interactions Panel can be open by pressing D
on your keyboard when focused on a story.
Eslint Configuration
- install the vscode eslint plugin (by microsoft millions of downloads).
- open a .js file and open the command palette (ctrl+shift+p)
- choose ESLINT Show Output channel
Only need to do this once and then its set up and running.
Styleint Configuration
- install the vscode stylelint plugin.
- open a .scss file and open the command palette (ctrl+shift+p)
- errors and warnings should show in the file and the problems tab if there are any.
npm Configuration
- Go to https://www.npmjs.com/ and create an account with a username and password.
- Your user must be added to the pillarbiosci Origization (Ask Marc About invite email)
- Run
npm login
- login with your username and password.
- Run
npm whoami
to confirm you are logged in. - Go to
https://www.npmjs.com/~<your user name>/tokens
- create access token.
- create a
.env
file in the root directory and addNPM_TOKEN=<your access token>
Build Pacakge and Publish to npm.
This is mostly automated now. All you need to do prior to opening a pull request is bump the version (which will also be automated soon)
npm version patch // (for development merge) or npm version minor // (for master merge)
---This is automated, only run if needed---
- In
package.json
increment the version by 0.0.1 - Run
rm -rf ./node_modules; npm install
- Run
rm -rf ./dist; npm run build
The./dist
folder now contains a build from your current branch. - Run
npm init --scope=@pillarbiosci
first time only. - Run
npm publish