Skip to content

Commit 4f0bcbe

Browse files
author
Clay
committed
chore: update package.json with new scripts and dependencies
- Added build script to run the build process. - Introduced deploy script to build and deploy using wrangler. - Changed license from ISC to CC-BY-NC-ND-4.0 in package.json. - Added clean-css, html-minifier-terser, terser, and wrangler as new devDependencies.
1 parent 46ef11f commit 4f0bcbe

File tree

7 files changed

+1867
-137
lines changed

7 files changed

+1867
-137
lines changed

.github/workflows/main.yml

Lines changed: 9 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -8,11 +8,10 @@ on:
88

99
permissions:
1010
contents: write
11-
pages: write
12-
id-token: write
11+
deployments: write
1312

1413
concurrency:
15-
group: "pages"
14+
group: "cloudflare-pages"
1615
cancel-in-progress: false
1716

1817
jobs:
@@ -56,9 +55,6 @@ jobs:
5655
git push
5756
5857
deploy:
59-
environment:
60-
name: github-pages
61-
url: ${{ steps.deployment.outputs.page_url }}
6258
runs-on: ubuntu-latest
6359
needs: version-file-and-lint
6460
steps:
@@ -95,15 +91,11 @@ jobs:
9591
html-minifier --collapse-whitespace --remove-comments --remove-optional-tags --remove-redundant-attributes --remove-script-type-attributes --remove-tag-whitespace --use-short-doctype --minify-css true --minify-js true -o "$file.min" "$file"
9692
mv "$file.min" "$file"
9793
done
98-
99-
- name: Setup Pages
100-
uses: actions/configure-pages@v4
101-
102-
- name: Upload artifact
103-
uses: actions/upload-pages-artifact@v3
94+
95+
- name: Deploy to Cloudflare Pages (Direct Upload)
96+
uses: cloudflare/wrangler-action@v3
10497
with:
105-
path: "."
106-
107-
- name: Deploy to GitHub Pages
108-
id: deployment
109-
uses: actions/deploy-pages@v4
98+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
99+
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
100+
command: pages deploy . --project-name=pvzm
101+
gitHubToken: ${{ secrets.GITHUB_TOKEN }}

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
ffmpeg*
22
node_modules/
3+
dist/
34
.qodo
45
eslint.log

game/iframe.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<head>
33
<link rel="stylesheet" href="Custom.css" />
44
<meta http-equiv="X-Frame-Options" content="DENY" />
5-
<title>Plants vs. Zombies MODDED Official</title>
5+
<title>Plants vs. Zombies - MODDED Official</title>
66
<link rel="icon" href="https://pvzm.net/game/images/gameicon2.png" type="image/png" />
77
<script>
88
window.addEventListener("beforeunload", function (e) {
@@ -24,12 +24,12 @@
2424
<meta property="og:url" content="https://pvzm.net/game/iframe.html" />
2525
<meta property="og:site_name" content="ROBLNET13" />
2626
<meta property="og:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
27-
<meta property="og:image:alt" content="Plants vs. Zombies MODDED" />
27+
<meta property="og:image:alt" content="Plants vs. Zombies - MODDED" />
2828
<meta property="og:image:type" content="image/png" />
2929
<meta name="twitter:card" content="summary_large_image" />
3030
<meta name="theme-color" content="#ff2200" />
3131
<meta name="twitter:title" content="Play Plants vs. Zombies Modded Online" />
32-
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBLNET13 on Github." />
32+
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBlNET13 on Github." />
3333
<meta name="twitter:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
3434
<link rel="stylesheet" href="UI.css" />
3535
<!-- REMOVE THIS SCRIPT AFTER REFACTOR IS DONE -->

game/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
<head>
44
<meta charset="UTF-8" />
55
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
6-
<title>Plants vs. Zombies MODDED Official</title>
6+
<title>Plants vs. Zombies - MODDED Official</title>
77
<meta property="og:title" content="Play Plants vs Zombies Modded Online" />
88
<meta
99
property="og:description"
@@ -12,12 +12,12 @@
1212
<meta property="og:url" content="https://pvzm.net/game/iframe.html" />
1313
<meta property="og:site_name" content="ROBLNET13" />
1414
<meta property="og:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
15-
<meta property="og:image:alt" content="Plants vs. Zombies MODDED" />
15+
<meta property="og:image:alt" content="Plants vs. Zombies - MODDED" />
1616
<meta property="og:image:type" content="image/png" />
1717
<meta name="twitter:card" content="summary_large_image" />
1818
<meta name="theme-color" content="#ff2200" />
1919
<meta name="twitter:title" content="Play Plants vs. Zombies Modded Online" />
20-
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBLNET13 on Github." />
20+
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBlNET13 on Github." />
2121
<meta name="twitter:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
2222
<meta http-equiv="refresh" content="0; url=iframe.html" />
2323
</head>

index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,14 +10,14 @@
1010
content="Play Plants vs Zombies Modded here for Free - A tower defense game created by PopCap Games and released on May 5, 2009. Click to Play now! Mod by ROBLNET13 on Github."
1111
/>
1212
<meta property="og:url" content="https://pvzm.net/game/iframe.html" />
13-
<meta property="og:site_name" content="ROBLNET13" />
13+
<meta property="og:site_name" content="ROBlNET13" />
1414
<meta property="og:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
15-
<meta property="og:image:alt" content="Plants vs. Zombies MODDED" />
15+
<meta property="og:image:alt" content="Plants vs. Zombies - MODDED" />
1616
<meta property="og:image:type" content="image/png" />
1717
<meta name="twitter:card" content="summary_large_image" />
1818
<meta name="theme-color" content="#ff2200" />
1919
<meta name="twitter:title" content="Play Plants vs. Zombies Modded Online" />
20-
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBLNET13 on Github." />
20+
<meta name="twitter:description" content="Play Plants vs. Zombie Modded here for Free - Mod by ROBlNET13 on Github." />
2121
<meta name="twitter:image" content="https://pvzm.net/game/images/gamethumbnail5.png" />
2222
<meta http-equiv="refresh" content="0; url=game/iframe.html" />
2323
</head>

0 commit comments

Comments
 (0)