Commands
Storybook
Develop: npm run develop
This combines 2 tasks, which can be run separately as needed:
npm run webpack
(Sass/CSS compiling/minifying/linting, SVG Spriting)npm run storybook
(Storybook dev watch task)
Deploy Storybook
npm run storybook-deploy
Here is a demo of the default Storybook Github deployment
Linting JavaScript/Styles
npm run lint
Testing Accessibility
npm run a11y
: Will test the components specified in your a11y config file (default). Note: this will also be run on commit via husky
Build
npm run build
This runs the production webpack script and is intended for Drupal builds (e.g., in a CI environment.)