@mjpvs/agentic-component-library-test
v1.4.0
Published
[](https://www.npmjs.com/package/@mjpvs/agentic-component-library-test) [](https://github.com/your-org/your
Readme
React Component Library
A modern React component library built with TypeScript, Storybook, and Vitest. Generated entirely agentically as a learning experiment to explore automated component library creation.
Features
- Component Library - Collection of reusable React components
- Design Tokens - Centralized design system with colors, typography, spacing, and more
- Storybook - Component documentation and visual testing
- Vitest - Fast unit testing with React Testing Library
- Semantic Release - Automated versioning and npm publishing
- Conventional Commits - Enforced commit message format
Available Scripts
# Development
npm run dev # Start Vite dev server
npm run storybook # Start Storybook on port 6006
# Building
npm run build # Build library (tokens + bundle + types)
npm run build:tokens # Generate design tokens only
npm run build-storybook # Build static Storybook
# Testing
npm test # Run tests in watch mode
npm test run # Run tests once
npm test run --coverage # Run tests with coverage report
# Publishing
npm run commit # Interactive commit (commitizen)
npm run release # Run semantic-release (manual)Components
Layout
Box- Base container componentFlex- Flexible layout with direction, justify, align, gapGrid- 12-column grid system with span and start propsContainer- Responsive max-width container
UI
Button- Primary, secondary, outline variants; small, medium, large sizesCard- Content container with optional title and paddingHeading- Levels 1-6
Media
Video- YouTube embed with aspect ratio options
Design Tokens
Tokens are defined in tokens/design-tokens.json and generate CSS variables in src/tokens/_variables.css.
Categories:
- Colors (primary, gray, white, black)
- Typography (family, size, weight, line-height)
- Spacing
- Border radius
- Shadows
- Transitions
Publishing
The project uses semantic-release for automatic versioning:
Create a commit with a conventional commit message:
npm run commit # Or: git commit -m "feat: add new component"Push to main branch
CI/CD runs tests and publishes to npm
Tech Stack
- React 18+
- TypeScript 5+
- Vite
- Storybook 8
- Vitest
- CSS Modules
- Style Dictionary
- Semantic Release
License
MIT
