Thank you for considering contributing to @nsommer/pixelart-react! This document outlines the process for development and contribution.
-
Clone the repository
git clone https://github.com/yourrepo/pixelart-react.git cd pixelart-react -
Install dependencies
npm install
-
Build the package
npm run build
The project uses TypeScript and follows a specific build process:
- SVG files are located in the
svg/directory - The build process converts these SVGs to React components
- TypeScript types are generated for all components
npm run build- Build the complete packagenpm run build:components- Generate React components from SVGsnpm run build:esm- Build ESM versionnpm run build:cjs- Build CommonJS versionnpm run typecheck- Type-check without emitting outputnpm run lint- Run ESLint
- Add new SVG files to the
svg/directory - Run
npm run buildto generate the React components - Test your new icons
- Ensure any install or build dependencies are removed before the end of the layer
- Update the README.md with details of changes to the interface
- You may merge the Pull Request once you have the sign-off of at least one other developer
- Update version in package.json
- Run the build process
- Create a git tag for the version
- Push to GitHub
- Publish to npm
Please keep interactions respectful and inclusive.