Compare commits

...

12 commits
v0.7.4 ... main

8 changed files with 2555 additions and 9 deletions

3
.husky/post-commit Normal file
View file

@ -0,0 +1,3 @@
echo "post-commit..."
git push gh
git push sh

View file

@ -1 +0,0 @@
npm run lint

View file

@ -1,3 +1,6 @@
> [!Note]
> Project moved to [SourceHut](https://git.sr.ht/~ayoayco/astro-github-stats)
# Astro GitHub Stats ✨
[![npm](https://img.shields.io/npm/v/astro-github-stats)](https://www.npmjs.com/package/astro-github-stats)

View file

@ -1,4 +1,8 @@
import { defineConfig } from 'astro/config'
// https://astro.build/config
export default defineConfig({})
export default defineConfig({
image: {
// domains: ['github-readme-stats.vercel.app'],
},
})

View file

@ -3,7 +3,7 @@
"description": "Embed GitHub stats in your Astro page ✨",
"repository": "https://github.com/ayoayco/astro-github-stats",
"homepage": "https://ayco.io/showcase/astro-github-stats",
"version": "0.7.4",
"version": "0.8.0",
"author": {
"name": "Ayo Ayco",
"email": "ayo@ayco.io",
@ -53,8 +53,5 @@
"peerDependencies": {
"astro": ">=5.0.0"
},
"license": "ISC",
"workspaces": [
"demo"
]
"license": "ISC"
}

File diff suppressed because it is too large Load diff

2
pnpm-workspace.yaml Normal file
View file

@ -0,0 +1,2 @@
packages:
- "demo/**"

View file

@ -1,4 +1,5 @@
---
import {Image} from 'astro:assets'
export interface Props {
username: string
topLanguages?: boolean
@ -25,4 +26,4 @@ if (topLanguages) {
alt = altText || alt
---
<img src={url} alt={alt} />
<Image inferSize={true} src={url} alt={alt} />