2.0.1 • Published 6 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/astro
npx astro add @url122/astro
yarn astro add @url122/astro
Or install it manually:
- Install the required dependencies
pnpm add @url122/astro
npm install @url122/astro
yarn 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 long
Contributing
This package is structured as a monorepo:
playground
contains code for testing the packagepackage
contains the actual package
Install dependencies using pnpm:
pnpm i --frozen-lockfile
Start the playground and package watcher:
pnpm dev
You 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.