This repository contains WebP assets for the LunoKit project.
assets/: Contains processed WebP assets ready for usetokens/: Token icons in WebP format- (future)
chains/: Chain icons in WebP format
sources/: Contains source files in various formatstokens/: Source token icons (PNG, WebP, SVG, etc.)- (future)
chains/: Source chain icons
- Clone this repository
- Install dependencies with
pnpm install - Add source files to the appropriate directory in
sources/ - Run
pnpm run formatto generate WebP assets - Run
pnpm run verifyto ensure all assets are valid - Create a pull request
Convert source files to WebP format and place them in the assets directory:
pnpm run formatThis command:
- Processes all files in the
sources/directory - Copies WebP files directly to the
assets/directory - Converts other image formats (PNG, JPG, SVG) to high-quality WebP
- Maintains the same directory structure
Check if all files in the assets directory are valid WebP files:
pnpm run verifyThis command:
- Scans all files in the
assets/directory - Verifies that all files have .webp extension
- Checks if WebP files are valid using sharp
- Provides a summary report