Skip to content

Commit ca8c2ff

Browse files
authored
Merge pull request #3 from ohgodwhy2k/fix/actions
Fix all the actions (hopefully)
2 parents 3be0fdb + fc82eb1 commit ca8c2ff

File tree

17 files changed

+3973
-3260
lines changed

17 files changed

+3973
-3260
lines changed

.devcontainer/devcontainer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
// We use 'npm start' because your package.json already defines it as:
1818
// "start": "npm run build && node serve.js"
1919
"postAttachCommand": "npm start",
20-
20+
2121
// 3. Optional: Set VS Code to automatically forward the port 4920
2222
"forwardPorts": [4920],
2323

@@ -32,4 +32,4 @@
3232
"closeAction": "notify"
3333
}
3434
}
35-
}
35+
}

.github/dependabot.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,22 @@
22

33
version: 2
44
updates:
5-
- package-ecosystem: "npm" # Tells Dependabot to look for JavaScript/Node.js dependencies
6-
directory: "/" # Look in the root directory for package.json and package-lock.json
5+
- package-ecosystem: 'npm' # Tells Dependabot to look for JavaScript/Node.js dependencies
6+
directory: '/' # Look in the root directory for package.json and package-lock.json
77
schedule:
8-
interval: "daily" # How often to check for new versions (daily, weekly, monthly)
9-
8+
interval: 'daily' # How often to check for new versions (daily, weekly, monthly)
9+
1010
# Limit the number of open PRs to prevent inundating your repository
11-
open-pull-requests-limit: 10
12-
11+
open-pull-requests-limit: 10
12+
1313
# Assign labels to the PRs so they are easy to filter and manage
1414
labels:
15-
- "dependencies"
16-
- "npm"
15+
- 'dependencies'
16+
- 'npm'
1717

1818
# Group patch and minor updates into single PRs for cleaner history
1919
groups:
2020
patch-and-minor:
2121
update-types:
22-
- "patch"
23-
- "minor"
22+
- 'patch'
23+
- 'minor'

.github/workflows/deploy.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ on:
66
# Triggers the workflow when code is pushed to the primary branch
77
push:
88
branches:
9-
- main # Change 'main' to 'prod' if that's your base branch name
10-
9+
- main # Change 'main' to 'prod' if that's your base branch name
10+
1111
# Allows you to manually run the workflow from the Actions tab
1212
workflow_dispatch:
1313

@@ -23,7 +23,7 @@ jobs:
2323
steps:
2424
- name: ⬇️ Checkout Repository
2525
uses: actions/checkout@v4
26-
26+
2727
- name: 🛠️ Setup Node.js Environment
2828
uses: actions/setup-node@v4
2929
with:
@@ -43,16 +43,16 @@ jobs:
4343
uses: actions/upload-pages-artifact@v3
4444
with:
4545
path: './dist'
46-
46+
4747
deploy:
4848
environment:
4949
# This environment name links to the GitHub Pages configuration
5050
name: github-pages
5151
url: ${{ steps.deployment.outputs.page_url }}
52-
52+
5353
runs-on: ubuntu-latest
5454
needs: build
55-
55+
5656
steps:
5757
- name: 🚀 Deploy to GitHub Pages
5858
id: deployment

.github/workflows/link-check.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ name: Validate Internal and External Links
55
on:
66
push:
77
branches:
8-
- main # Only check main/prod branch pushes
8+
- main # Only check main/prod branch pushes
99
schedule:
1010
- cron: '0 0 * * 0' # Run every Sunday at midnight
1111
workflow_dispatch: # Allows manual trigger
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: ⬇️ Checkout Repository
1818
uses: actions/checkout@v4
19-
19+
2020
# Use an action specifically designed to check links.
2121
# It's fast and reliable for static content.
2222
- name: 🔗 Check for Broken Links (lychee)
@@ -25,7 +25,7 @@ jobs:
2525
# Only check files within your source folder
2626
input: src/**/*.html
2727
# Use the actual built/deployed URL (or a placeholder base)
28-
base: https://your-username.github.io/quicksite/
28+
base: https://your-username.github.io/quicksite/
2929
# Exclude the localhost server from the check
3030
exclude: 'http://localhost:4920'
3131
# Fail the job if broken links are found

.github/workflows/lint.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
steps:
1717
- name: ⬇️ Checkout Repository
1818
uses: actions/checkout@v4
19-
19+
2020
- name: 🛠️ Setup Node.js Environment
2121
uses: actions/setup-node@v4
2222
with:
@@ -25,8 +25,8 @@ jobs:
2525

2626
- name: 📦 Install Dependencies
2727
# This installs eslint and prettier, which you correctly added
28-
run: npm ci
29-
28+
run: npm ci
29+
3030
- name: 🔎 Run ESLint (JavaScript Linting)
3131
# Executes the script defined below
3232
run: npm run lint:js

README.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@ A minimalist, site-only GitHub template designed for rapid deployment of static
44

55
## Features
66

7-
* **Zero-Config Build:** Uses pure Node.js (`fs`, `terser`, `clean-css`) for asset processing—no Webpack, Parcel, or Gulp needed.
8-
* **Asset Bundling:** Concatenates and minifies all source JavaScript and CSS into single files (`script.js`, `style.css`).
9-
* **Automatic Setup:** Configured with `npm ci` and Codespace settings to be ready to run instantly.
10-
* **Integrated Server:** Built-in development server runs on port **4920** for immediate testing of the build output.
7+
- **Zero-Config Build:** Uses pure Node.js (`fs`, `terser`, `clean-css`) for asset processing—no Webpack, Parcel, or Gulp needed.
8+
- **Asset Bundling:** Concatenates and minifies all source JavaScript and CSS into single files (`script.js`, `style.css`).
9+
- **Automatic Setup:** Configured with `npm ci` and Codespace settings to be ready to run instantly.
10+
- **Integrated Server:** Built-in development server runs on port **4920** for immediate testing of the build output.
1111

1212
---
1313

@@ -30,7 +30,7 @@ Development work happens exclusively inside the **`src/`** directory. The `npm r
3030
├── serve.js \# Development server logic
3131
└── clean.js \# Cleanup script
3232
33-
````
33+
```
3434

3535
---
3636

@@ -43,18 +43,18 @@ If you are using **GitHub Codespaces**, dependencies are installed and the proje
4343
```bash
4444
# Install dependencies (terser, clean-css, glob)
4545
npm install
46-
````
46+
```
4747

4848
### 2\. **Available Scripts**
4949

5050
Use these commands from your terminal to manage your project:
5151

52-
| Command | Action | Description |
53-
| :--- | :--- | :--- |
54-
| `npm run clean` | `node clean.js` | **Deletes** the entire `/dist` directory. |
55-
| `npm run build` | `npm run clean && node build.js` | Runs a clean, then **builds and minifies** all assets into the `/dist` folder. |
56-
| `npm start` | `npm run build && node serve.js` | Runs the build, then **starts the development server** on `http://localhost:4920`. |
57-
| `npm run dev` | Alias for `npm start`. | The recommended command for development. |
52+
| Command | Action | Description |
53+
| :-------------- | :------------------------------- | :--------------------------------------------------------------------------------- |
54+
| `npm run clean` | `node clean.js` | **Deletes** the entire `/dist` directory. |
55+
| `npm run build` | `npm run clean && node build.js` | Runs a clean, then **builds and minifies** all assets into the `/dist` folder. |
56+
| `npm start` | `npm run build && node serve.js` | Runs the build, then **starts the development server** on `http://localhost:4920`. |
57+
| `npm run dev` | Alias for `npm start`. | The recommended command for development. |
5858

5959
### 3\. **Development**
6060

jsconfig.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@
44
"target": "ES2022",
55
"moduleResolution": "NodeNext"
66
},
7-
"include": ["src/**/*", "scripts/*.js"]
8-
}
7+
"include": ["src/**/*", "scripts/*.js"]
8+
}

0 commit comments

Comments
 (0)