Lace UI
Development
The following scripts are available:
npm start
- Starts Storybook for component development.
npm run clean
- Delete the dist
folder. Uses rimraf.
npm run typecheck
- Verify syntactic/semantic correctness. Uses typescript.
npm run lint
- Verify best practices and find common issues. Uses eslint.
npm test
- Execute typecheck
, lint
, unit-test
and cypress
scripts.
npm run build
- Builds the package ready for npm into dist
. The contents of this folder can then be deployed to npm.
npm run build-storybook
- Builds the static Storybook site into static-storybook
ready for deployment to Netifly on merge into main
.
npm run chromatic
- Initiates a new build in Chromatic for additional UI tests and reviews. Once triggered it remains visible on a PR, with relevant links provided to review UI on Chromatic, though a new code commit / push removes the links from PR (the build remains available on the Chromatic's project page).