Merge pull request #3 from velocitatem/garlic-astro

Garlic astro
This commit is contained in:
Daniel Rosel
2023-03-08 17:04:13 +01:00
committed by GitHub
4 changed files with 4 additions and 10 deletions

View File

@@ -56,7 +56,7 @@ And all is done!
## Astro ## Astro
With Astro, you just need to import the `Garlic` and `Clove` components into your layout: install the package with `npm i garlic-astro`. With Astro, you just need to import the `Garlic` and `Clove` components into your layout:
```astro ```astro
import {Garlic, Clove} from 'garlic-astro'; import {Garlic, Clove} from 'garlic-astro';

View File

@@ -12,7 +12,7 @@
"dependencies": { "dependencies": {
"@astrojs/mdx": "^0.17.2", "@astrojs/mdx": "^0.17.2",
"astro": "^2.0.16", "astro": "^2.0.16",
"garlic-astro": "file:../../../garlic-astro", "garlic-astro": "^0.0.1",
"jsdom": "^21.1.0" "jsdom": "^21.1.0"
} }
} }

View File

@@ -2,6 +2,8 @@
"name": "garlic-astro", "name": "garlic-astro",
"version": "0.0.1", "version": "0.0.1",
"type": "module", "type": "module",
"author": "Daniel Alves Rosel",
"homepage": "https://github.com/velocitatem/garlic/tree/main",
"exports": { "exports": {
".": "./index.ts" ".": "./index.ts"
}, },

View File

@@ -1,8 +0,0 @@
---
// Write your component code in this file!
export interface Props {
prefix?: string;
}
---
<div>{Astro.props.prefix} My special component</div>