2.0.1 • Published 12 months ago
@url122/astro v2.0.1
@url122/astro
This is an Astro integration that generates id's for the url122.xyz site to use.
Usage
Prerequisites
An astro project
Installation
Install the integration automatically using the Astro CLI:
pnpm astro add @url122/astronpx astro add @url122/astroyarn astro add @url122/astroOr install it manually:
- Install the required dependencies
pnpm add @url122/astronpm install @url122/astroyarn add @url122/astro- Add the integration to your astro config
+import integration from "@url122/astro";
export default defineConfig({
integrations: [
+ integration(),
],
});Configuration
There is one configuration option called "idPrefix" you MUST have it for the intergration to work.
idPrefix: String; // this MUST be 3 char's longContributing
This package is structured as a monorepo:
playgroundcontains code for testing the packagepackagecontains the actual package
Install dependencies using pnpm:
pnpm i --frozen-lockfileStart the playground and package watcher:
pnpm devYou can now edit files in package. Please note that making changes to those files may require restarting the playground dev server.
Licensing
MIT Licensed. Made with ❤️ by Altie122.