Skip to content

Commit cea9617

Browse files
committed
chore: fix package name, upgrade Next.js 13→15, add typecheck, prettier, .env.example, dependabot, .nvmrc and CI badge
1 parent 4135318 commit cea9617

8 files changed

Lines changed: 51 additions & 15 deletions

File tree

.env.example

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
# Spotify Developer App credentials
2+
# Create an app at https://developer.spotify.com/dashboard
3+
NEXT_PUBLIC_SPOTIFY_CLIENT_ID=your_spotify_client_id_here
4+
NEXT_PUBLIC_REDIRECT_URI=http://localhost:3000

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
version: 2
2+
updates:
3+
- package-ecosystem: npm
4+
directory: /
5+
schedule:
6+
interval: weekly
7+
- package-ecosystem: github-actions
8+
directory: /
9+
schedule:
10+
interval: weekly
11+

.github/workflows/ci.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,5 @@ jobs:
1717
cache: npm
1818
- run: npm ci
1919
- run: npm run lint
20+
- run: npm run typecheck
2021
- run: npm run build

.nvmrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
20

.prettierignore

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
node_modules
2+
.next
3+
dist
4+
out
5+
build
6+
*.lock
7+

.prettierrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"semi": true,
3+
"singleQuote": true,
4+
"tabWidth": 2,
5+
"trailingComma": "es5",
6+
"printWidth": 100
7+
}

README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# SpotifyStats
22

3+
[![CI](https://github.com/obrenoalvim/spotifyStats/actions/workflows/ci.yml/badge.svg)](https://github.com/obrenoalvim/spotifyStats/actions/workflows/ci.yml) [![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](LICENSE)
4+
35
Dashboard para explorar e visualizar suas estatísticas do Spotify. Conecte sua conta e veja músicas e artistas mais ouvidos em diferentes períodos, insights sobre seus hábitos musicais e gere papéis de parede a partir das capas dos seus álbuns favoritos.
46

57
## Stack

package.json

Lines changed: 18 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,18 @@
11
{
2-
"name": "nextjs",
2+
"name": "spotify-stats",
33
"version": "0.1.0",
44
"private": true,
55
"scripts": {
66
"dev": "next dev",
77
"build": "next build",
88
"start": "next start",
9-
"lint": "next lint"
9+
"lint": "next lint",
10+
"typecheck": "tsc --noEmit",
11+
"format": "prettier --write .",
12+
"format:check": "prettier --check ."
1013
},
1114
"dependencies": {
1215
"@hookform/resolvers": "^3.9.0",
13-
"@next/swc-wasm-nodejs": "13.5.1",
1416
"@radix-ui/react-accordion": "^1.2.0",
1517
"@radix-ui/react-alert-dialog": "^1.1.1",
1618
"@radix-ui/react-aspect-ratio": "^1.1.0",
@@ -38,33 +40,34 @@
3840
"@radix-ui/react-toggle": "^1.1.0",
3941
"@radix-ui/react-toggle-group": "^1.1.0",
4042
"@radix-ui/react-tooltip": "^1.1.2",
41-
"@types/node": "20.6.2",
42-
"@types/react": "18.2.22",
43-
"@types/react-dom": "18.2.7",
44-
"autoprefixer": "10.4.15",
43+
"@types/node": "^20.17.0",
44+
"@types/react": "^18.3.0",
45+
"@types/react-dom": "^18.3.0",
46+
"autoprefixer": "^10.4.20",
4547
"class-variance-authority": "^0.7.0",
4648
"clsx": "^2.1.1",
4749
"cmdk": "^1.0.0",
4850
"date-fns": "^3.6.0",
4951
"embla-carousel-react": "^8.3.0",
50-
"eslint": "8.49.0",
51-
"eslint-config-next": "13.5.1",
52+
"eslint": "^8.57.0",
53+
"eslint-config-next": "^15.3.4",
5254
"input-otp": "^1.2.4",
5355
"lucide-react": "^0.446.0",
54-
"next": "13.5.1",
56+
"next": "^15.3.4",
5557
"next-themes": "^0.3.0",
56-
"postcss": "8.4.30",
57-
"react": "18.2.0",
58+
"postcss": "^8.4.40",
59+
"prettier": "^3.4.0",
60+
"react": "^18.3.0",
5861
"react-day-picker": "^8.10.1",
59-
"react-dom": "18.2.0",
62+
"react-dom": "^18.3.0",
6063
"react-hook-form": "^7.53.0",
6164
"react-resizable-panels": "^2.1.3",
6265
"recharts": "^2.12.7",
6366
"sonner": "^1.5.0",
6467
"tailwind-merge": "^2.5.2",
65-
"tailwindcss": "3.3.3",
68+
"tailwindcss": "^3.4.0",
6669
"tailwindcss-animate": "^1.0.7",
67-
"typescript": "5.2.2",
70+
"typescript": "^5.7.0",
6871
"vaul": "^0.9.9",
6972
"zod": "^3.23.8"
7073
}

0 commit comments

Comments
 (0)