Building Libraries with good DX

Jan 5, 2025

After building the Mango UI components in Angular, it was time to deploy them. I was using Storybook 8.4.5 and Angular 18. I chose Vercel and here is Vercel configuration:

{
  "buildCommand": "npm run build-storybook",
  "devCommand": "npm run storybook",
  "installCommand": "npm install",
  "framework": null,
  "outputDirectory": "storybook-static",
  "trailingSlash": true,
  "rewrites": [{ "source": "/(.*)", "destination": "/index.html" }]
}