Skip to content

Commit 57788d4

Browse files
Merge pull request #133 from kamranahmedse/master
Create a new pull request by comparing changes across two branches
2 parents fba5fce + 88b29a9 commit 57788d4

File tree

380 files changed

+11765
-1877
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

380 files changed

+11765
-1877
lines changed

.astro/settings.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
{
22
"devToolbar": {
33
"enabled": false
4+
},
5+
"_variables": {
6+
"lastUpdateCheck": 1714413381505
47
}
58
}
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Clears Cloudfront Cache
2+
on:
3+
# Allow manual Run
4+
workflow_dispatch:
5+
# Run at midnight utc
6+
schedule:
7+
- cron: '0 0 * * *'
8+
jobs:
9+
aws_costs:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- name: Clear Cloudfront Caching
13+
run: |
14+
curl -L \
15+
-X POST \
16+
-H "Accept: application/vnd.github+json" \
17+
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
18+
-H "X-GitHub-Api-Version: 2022-11-28" \
19+
https://api.github.com/repos/roadmapsh/infra-ansible/actions/workflows/playbook.yml/dispatches \
20+
-d '{ "ref":"master", "inputs": { "playbook": "roadmap_web.yml", "tags": "cloudfront", "is_verbose": false } }'

.github/workflows/deployment.yml

Lines changed: 2 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ jobs:
3939
run: |
4040
git clone https://${{ secrets.GH_PAT }}@github.com/roadmapsh/web-draw.git .temp/web-draw --depth 1
4141
npm run generate-renderer
42+
npm run compress:images
4243
npm run build
4344
4445
# --------------------
@@ -58,17 +59,4 @@ jobs:
5859
key: ${{ secrets.EC2_PRIVATE_KEY }}
5960
script: |
6061
cd /var/www/roadmap.sh
61-
sudo pm2 restart web-roadmap
62-
63-
# --------------------
64-
# Clear Cloudfront Caching
65-
# --------------------
66-
- name: Clear Cloudfront Caching
67-
run: |
68-
curl -L \
69-
-X POST \
70-
-H "Accept: application/vnd.github+json" \
71-
-H "Authorization: Bearer ${{ secrets.GH_PAT }}" \
72-
-H "X-GitHub-Api-Version: 2022-11-28" \
73-
https://api.github.com/repos/roadmapsh/infra-ansible/actions/workflows/playbook.yml/dispatches \
74-
-d '{ "ref":"master", "inputs": { "playbook": "roadmap_web.yml", "tags": "cloudfront", "is_verbose": false } }'
62+
sudo pm2 restart web-roadmap

astro.config.mjs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
import sitemap from '@astrojs/sitemap';
33
import tailwind from '@astrojs/tailwind';
44
import node from '@astrojs/node';
5-
import compress from 'astro-compress';
65
import { defineConfig } from 'astro/config';
76
import rehypeExternalLinks from 'rehype-external-links';
87
import { serializeSitemap, shouldIndexPage } from './sitemap.mjs';
@@ -56,11 +55,6 @@ export default defineConfig({
5655
filter: shouldIndexPage,
5756
serialize: serializeSitemap,
5857
}),
59-
compress({
60-
HTML: false,
61-
CSS: false,
62-
JavaScript: false,
63-
}),
6458
react(),
6559
],
6660
});

package.json

Lines changed: 32 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111
"format": "prettier --write .",
1212
"astro": "astro",
1313
"deploy": "NODE_DEBUG=gh-pages gh-pages -d dist -t",
14-
"compress:jsons": "node scripts/compress-jsons.cjs",
1514
"upgrade": "ncu -u",
1615
"roadmap-links": "node scripts/roadmap-links.cjs",
1716
"roadmap-dirs": "node scripts/roadmap-dirs.cjs",
@@ -20,67 +19,68 @@
2019
"best-practice-dirs": "node scripts/best-practice-dirs.cjs",
2120
"best-practice-content": "node scripts/best-practice-content.cjs",
2221
"generate:og": "node ./scripts/generate-og-images.mjs",
22+
"compress:images": "tsx ./scripts/compress-images.ts",
2323
"test:e2e": "playwright test"
2424
},
2525
"dependencies": {
26-
"@astrojs/node": "^8.2.1",
27-
"@astrojs/react": "^3.0.10",
28-
"@astrojs/sitemap": "^3.0.5",
26+
"@astrojs/node": "^8.2.5",
27+
"@astrojs/react": "^3.3.1",
28+
"@astrojs/sitemap": "^3.1.4",
2929
"@astrojs/tailwind": "^5.1.0",
30-
"@fingerprintjs/fingerprintjs": "^4.2.2",
31-
"@nanostores/react": "^0.7.1",
32-
"@resvg/resvg-js": "^2.6.0",
33-
"@types/react": "^18.2.56",
34-
"@types/react-dom": "^18.2.19",
35-
"astro": "^4.4.0",
36-
"astro-compress": "^2.2.10",
37-
"clsx": "^2.1.0",
38-
"dayjs": "^1.11.10",
30+
"@fingerprintjs/fingerprintjs": "^4.3.0",
31+
"@nanostores/react": "^0.7.2",
32+
"@resvg/resvg-js": "^2.6.2",
33+
"@types/react": "^18.3.1",
34+
"@types/react-dom": "^18.3.0",
35+
"astro": "^4.7.0",
36+
"clsx": "^2.1.1",
37+
"dayjs": "^1.11.11",
3938
"dom-to-image": "^2.6.0",
4039
"dracula-prism": "^2.1.16",
4140
"gray-matter": "^4.0.3",
4241
"htm": "^3.1.1",
4342
"image-size": "^1.1.1",
44-
"jose": "^5.2.2",
43+
"jose": "^5.2.4",
4544
"js-cookie": "^3.0.5",
46-
"lucide-react": "^0.358.0",
47-
"nanoid": "^5.0.5",
48-
"nanostores": "^0.9.5",
49-
"node-html-parser": "^6.1.12",
50-
"npm-check-updates": "^16.14.15",
45+
"lucide-react": "^0.376.0",
46+
"nanoid": "^5.0.7",
47+
"nanostores": "^0.10.3",
48+
"node-html-parser": "^6.1.13",
49+
"npm-check-updates": "^16.14.20",
5150
"prismjs": "^1.29.0",
52-
"react": "^18.2.0",
51+
"react": "^18.3.1",
5352
"react-calendar-heatmap": "^1.9.0",
5453
"react-confetti": "^6.1.0",
55-
"react-dom": "^18.2.0",
56-
"react-tooltip": "^5.26.3",
57-
"reactflow": "^11.10.4",
54+
"react-dom": "^18.3.1",
55+
"react-tooltip": "^5.26.4",
56+
"reactflow": "^11.11.2",
5857
"rehype-external-links": "^3.0.0",
5958
"remark-parse": "^11.0.0",
6059
"roadmap-renderer": "^1.0.6",
6160
"satori": "^0.10.13",
6261
"satori-html": "^0.3.2",
63-
"sharp": "^0.33.2",
62+
"sharp": "^0.33.3",
6463
"slugify": "^1.6.6",
65-
"tailwind-merge": "^2.2.1",
66-
"tailwindcss": "^3.4.1",
64+
"tailwind-merge": "^2.3.0",
65+
"tailwindcss": "^3.4.3",
6766
"unified": "^11.0.4",
68-
"zustand": "^4.5.1"
67+
"zustand": "^4.5.2"
6968
},
7069
"devDependencies": {
71-
"@playwright/test": "^1.41.2",
72-
"@tailwindcss/typography": "^0.5.10",
70+
"@playwright/test": "^1.43.1",
71+
"@tailwindcss/typography": "^0.5.13",
7372
"@types/dom-to-image": "^2.6.7",
7473
"@types/js-cookie": "^3.0.6",
7574
"@types/prismjs": "^1.26.3",
7675
"@types/react-calendar-heatmap": "^1.6.7",
7776
"csv-parser": "^3.0.0",
7877
"gh-pages": "^6.1.1",
7978
"js-yaml": "^4.1.0",
80-
"markdown-it": "^14.0.0",
81-
"openai": "^4.28.0",
79+
"markdown-it": "^14.1.0",
80+
"openai": "^4.38.5",
8281
"prettier": "^3.2.5",
8382
"prettier-plugin-astro": "^0.13.0",
84-
"prettier-plugin-tailwindcss": "^0.5.11"
83+
"prettier-plugin-tailwindcss": "^0.5.14",
84+
"tsx": "^4.7.3"
8585
}
8686
}

0 commit comments

Comments
 (0)