Skip to content

Commit 8979379

Browse files
committed
🚀 Optimisations complètes : package.json + PWA + Workflow GitHub Actions + minification
1 parent df880b3 commit 8979379

8 files changed

Lines changed: 5509 additions & 4 deletions

File tree

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
name: Deploy David KRK Site
2+
3+
on:
4+
push:
5+
branches: [main, gh-pages]
6+
pull_request:
7+
branches: [main]
8+
workflow_dispatch:
9+
10+
permissions:
11+
contents: read
12+
pages: write
13+
id-token: write
14+
15+
concurrency:
16+
group: "pages"
17+
cancel-in-progress: true
18+
19+
jobs:
20+
build:
21+
runs-on: ubuntu-latest
22+
steps:
23+
- name: Checkout
24+
uses: actions/checkout@v4
25+
26+
- name: Setup Node.js
27+
uses: actions/setup-node@v4
28+
with:
29+
node-version: '20'
30+
cache: 'npm'
31+
32+
- name: Install dependencies
33+
run: npm ci --prefer-offline --no-audit
34+
35+
- name: Build optimized assets
36+
run: npm run build
37+
38+
- name: Setup Pages
39+
uses: actions/configure-pages@v4
40+
41+
- name: Upload artifact
42+
uses: actions/upload-pages-artifact@v3
43+
with:
44+
path: '.'
45+
46+
deploy:
47+
environment:
48+
name: github-pages
49+
url: ${{ steps.deployment.outputs.page_url }}
50+
runs-on: ubuntu-latest
51+
needs: build
52+
steps:
53+
- name: Deploy to GitHub Pages
54+
id: deployment
55+
uses: actions/deploy-pages@v4

‎.gitignore‎

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,7 @@
1-
node_modules
1+
node_modules/
2+
.env
3+
.DS_Store
4+
*.log
5+
dist/
6+
.cache/
7+
node_modules

‎manifest.json‎

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
{
2+
"name": "David KRK - DJ Techno",
3+
"short_name": "David KRK",
4+
"description": "Site officiel de David KRK, DJ et producteur international de musique Techno",
5+
"start_url": "/",
6+
"scope": "/",
7+
"display": "standalone",
8+
"background_color": "#000000",
9+
"theme_color": "#00ff00",
10+
"orientation": "any",
11+
"icons": [
12+
{
13+
"src": "/logo-30-01-25.png",
14+
"sizes": "192x192",
15+
"type": "image/png",
16+
"purpose": "any maskable"
17+
}
18+
],
19+
"shortcuts": [
20+
{
21+
"name": "Écouter Music",
22+
"short_name": "Music",
23+
"url": "/music.html"
24+
},
25+
{
26+
"name": "Events",
27+
"short_name": "Events",
28+
"url": "/event.html"
29+
}
30+
],
31+
"categories": ["music", "entertainment"],
32+
"lang": "fr",
33+
"dir": "ltr"
34+
}

0 commit comments

Comments
 (0)