Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
21 changes: 0 additions & 21 deletions .env.example

This file was deleted.

26 changes: 2 additions & 24 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,29 +43,7 @@ jobs:
cache: true

- name: 💪 Type check
run: pnpm test:types
run: pnpm typecheck

- name: 🧪 Unit test
run: pnpm test:unit

- name: 🏃 Component tests
run: pnpm test:nuxt

# browser:
# runs-on: ubuntu-latest
# container:
# image: mcr.microsoft.com/playwright:v1.55.1-noble

# steps:
# - uses: actions/checkout@v5
# - run: corepack enable
# - uses: actions/setup-node@v4
# with:
# node-version: lts/*
# cache: pnpm

# - name: 📦 Install dependencies
# run: pnpm install

# - name: 🖥️ Test project (browser)
# run: pnpm test:browser
run: pnpm test
8 changes: 0 additions & 8 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
node_modules
.env
.nitro
.nuxt
.output
.data
src/server/routes/test.ts
src/server/routes/add.ts
dist
.idea
.vscode
.pnpm-store
test-results
.vercel
1 change: 0 additions & 1 deletion .nuxtrc

This file was deleted.

29 changes: 11 additions & 18 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,29 +1,15 @@
[![Nuxters](./public/social-card.jpg)](https://nuxt.com/nuxters)

# Nuxters

Discover the number of contributions you made to Nuxt and get the Nuxter badge on [Nuxt Discord server](https://chat.nuxt.dev).

The leaderboard and the profiles now live on https://nuxt.com/nuxters: nuxters.nuxt.com redirects there (pages, profiles and README cards, see `vercel.json`). This repository collects the contributor stats that nuxt.com imports every day.
Collects the contributions made to Nuxt on GitHub. The leaderboard and the profiles live on https://nuxt.com/nuxters, which imports the files in `public/` on every push to `main`.

## Setup

Install the dependencies with [pnpm](https://pnpm.js.org/en/):
Install the dependencies with [pnpm](https://pnpm.io):

```bash
pnpm install
```

Next, copy the `.env.example` to `.env` and fill the env variables.

## Development

Start the development server on http://localhost:3000:

```bash
pnpm dev
```

## Contributor stats

- Run `pnpm collect:contributors` locally with `NUXT_GITHUB_TOKEN` set to a GitHub personal access token that can read public repos.
Expand All @@ -32,8 +18,15 @@ pnpm dev
- Merged PRs, helpful issues and helpful comments in `nuxt/nuxt` and its former homes (`nuxt/framework`, `nuxt/docs`) count double. Each record has a `core` object with that part, so the score can be explained.
- It also writes `profiles.json`: the name, website, social accounts (Bluesky, X, LinkedIn, Mastodon…) and country of every all-time contributor who set any on their GitHub profile. If GitHub fails to return them, the previous file is kept.
- To test locally on a few repositories without touching `public/`: `COLLECT_REPOS=nuxt/docs,nuxt/nuxters CONTRIBUTORS_OUTPUT_DIR=/tmp/nuxters pnpm collect:contributors`.
- `.github/workflows/update-contributors.yml` refreshes the data nightly and on demand, committing changes automatically.
- `.github/workflows/update-contributors.yml` refreshes the data nightly and on demand, committing changes automatically.

## nuxters.nuxt.com

The former site is a static Vercel deployment of `public/` (see `vercel.json`):

- Pages, profiles and README cards redirect to nuxt.com/nuxters.
- `/contributors.json`, the other period files and `/profiles.json` are still served, as some sites read them. `/api/contributors` returns `/contributors.json`.

### License
## License

[MIT License](./LICENSE)
47 changes: 0 additions & 47 deletions app/app.config.ts

This file was deleted.

29 changes: 0 additions & 29 deletions app/app.vue

This file was deleted.

54 changes: 0 additions & 54 deletions app/assets/css/main.css

This file was deleted.

49 changes: 0 additions & 49 deletions app/components/AppFooter.vue

This file was deleted.

80 changes: 0 additions & 80 deletions app/components/AppHeader.vue

This file was deleted.

Loading
Loading