florian-lefebvre / astro-integration-kit

A package that contains utilities to help you build Astro integrations.
https://astro-integration-kit.netlify.app
MIT License
65 stars 9 forks source link

issue about how to use this as example of astro-integration-template #112

Open wanghaisheng opened 5 months ago

wanghaisheng commented 5 months ago
  1. is virtual-module.astro a test page for fake integration named astro-integration-kit
  2. if so ,why there is prefix virtual:? since we build this lib under package and pnpm add to playground ,it should use its name? where does this /config come from, i dont find it in source code or install node_modules either

import config from "virtual:astro-integration-kit-playground/config" // @ts-ignore import simple from "virtual:playground/simple" // @ts-ignore import arraySimple from "virtual:playground/array-simple" // @ts-ignore import arrayComplex from "virtual:playground/array-complex"

image

florian-lefebvre commented 5 months ago

Hey! This repository is a bit special and not the best example for the template as it's not an integration. https://github.com/florian-lefebvre/astro-als is a better example I think

florian-lefebvre commented 5 months ago

Feel free to reach out in Astro's Discord server if you want more details! We have a dedicated #integrations channel at https://astro.build/chat