- β‘ Instantly scaffolds Astro
.astro
components with prop typing - π§ͺ Generates Vitest-compatible test files with a DOM setup
- π§© Supports automatic folder structuring and consistent naming conventions
- π οΈ Optional flags for dry-run, overwrite protection, and verbose output
- π Light-weight and zero-config - just run and go
Bootstrap Astro components into a target directory with zero config:
npx "@igor.dvlpr/astro-component" <dest>
This will scaffold a test-ready Astro component suite into <dest>
, complete with:
- π Component and entrypoint code
- π§ͺ Vitest setup
- π§© DOM environment
- βοΈ Render logic
- π¦ Props and slots
- π§Ό Clean file structure
To preview the generated files without writing anything, use the --dry flag:
npx "@igor.dvlpr/astro-component" <dest> --dry
You'll get a full log of what would be created, ideal for safe inspection before committing.
π The changelog is available here: CHANGELOG.md.
Licensed under the MIT license which is available here, MIT license.
Consider buying me a coffee. β
Thank you for supporting my efforts! ππ
π Provides ways of checking whether a path is a legacy Windows device. πΎ
@igor.dvlpr/astro-post-excerpt
β An Astro component that renders post excerpts for your Astro blog - directly from your Markdown and MDX files. Astro v2+ collections are supported as well! π
@igor.dvlpr/astro-escaped-component
ππ»ββοΈββ‘οΈ An Astro component that holds only HTML-encoded content. π
π§² Provides ways of properly checking if a path exists inside a given array of files/directories both on Windows and UNIX-like operating systems. πΊ
@igor.dvlpr/astro-easynav-button
π§ Add an easy-to-use navigational button (jump to top/bottom) to your Astro site. πΌ
Created by Igor DimitrijeviΔ (@igorskyflyer).