Run yarn
first to install package dependencies.
yarn lint
- Run the StandardJS linter to check for warnings and errorsyarn build
- Build the component library to the dist folderyarn test
- Run the Jest testing suite to verify that the components will behave correctlyyarn sb
- Run the storybook server for component visualizationyarn sb:build
- Build a static storybook site to the storybook-static folderyarn prepare
- Authenticate to AWSnpm publish
- Publish the library to AWS Code Artifact
Add these scripts in the package.json and configure the respository-name, domain and domain-owner accordingly
"prepare": "npm run co:login"
"co:login": "aws codeartifact login --tool npm --repository repository-name --domain domain --domain-owner domain-owner"