Skip to content

Commit 93a2296

Browse files
staticoclaude
andcommitted
Modernize repo: remove husky/lint-staged/prettier, update Dockerfile and CI
- Remove husky, lint-staged, prettier devDependencies and config - Dockerfile: use node:24-alpine with corepack pnpm instead of yarn - GitHub Actions: update to checkout@v4, docker actions v3/v5/v6 - README: fix Node version, yarn→pnpm, master→main badge URL Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent b86836f commit 93a2296

6 files changed

Lines changed: 141 additions & 700 deletions

File tree

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ jobs:
1717

1818
steps:
1919
- name: Checkout repository
20-
uses: actions/checkout@v3
20+
uses: actions/checkout@v4
2121

2222
- name: Log in to the Container registry
23-
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
23+
uses: docker/login-action@v3
2424
with:
2525
registry: ${{ env.REGISTRY }}
2626
username: ${{ github.actor }}
2727
password: ${{ secrets.GITHUB_TOKEN }}
2828

2929
- name: Extract metadata (tags, labels) for Docker
3030
id: meta
31-
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
31+
uses: docker/metadata-action@v5
3232
with:
3333
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
3434
tags: |
3535
type=raw,value=latest,enable=${{ github.ref == format('refs/heads/{0}', github.event.repository.default_branch) }}
3636
3737
- name: Build and push Docker image
38-
uses: docker/build-push-action@ad44023a93711e3deb337508980b4b5e9bcdc5dc
38+
uses: docker/build-push-action@v6
3939
with:
4040
context: .
4141
push: true

.husky/pre-commit

Lines changed: 0 additions & 1 deletion
This file was deleted.

Dockerfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ RUN curl -L -q https://github.com/erkyrath/glulxe/archive/master.zip >glulxe.zip
2121

2222
FROM node:24-alpine
2323

24-
RUN npm install -g pnpm
24+
RUN corepack enable pnpm
2525

2626
COPY --from=base /build/glulxe/glulxe /usr/local/bin/glulxe
2727

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# glulxe-httpd
22

3-
[![license](https://img.shields.io/github/license/statico/glulxe-httpd.svg?style=flat-square)](https://github.com/statico/glulxe-httpd/blob/master/LICENSE)
3+
[![license](https://img.shields.io/github/license/statico/glulxe-httpd.svg?style=flat-square)](https://github.com/statico/glulxe-httpd/blob/main/LICENSE)
44
[![build status](https://img.shields.io/github/actions/workflow/status/statico/glulxe-httpd/build.yml?branch=main&style=flat-square)](https://ghcr.io/statico/glulxe-httpd)
55

66
glulxe-httpd provides an HTTP REST interface for interacting with interactive fiction (IF) stories in the [Glulx (`.ulx`) format](http://ifwiki.org/index.php/Glulx) using [glulxe](https://github.com/erkyrath/glulxe). Clients (like [my website](https://github.com/statico/langterm)) can connect to the service to start a game and then send commands to it.
@@ -19,8 +19,8 @@ If you haven't spent many laborous hours writing an interactive fiction game wit
1919

2020
### With Node.js
2121

22-
1. Get Node.js v12 or so
23-
1. Install pnpm
22+
1. Get Node.js v22 or later
23+
1. `corepack enable pnpm`
2424
1. `pnpm install`
2525
1. `pnpm start mygame.ulx`
2626

package.json

Lines changed: 1 addition & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,7 @@
33
"version": "1.0.0",
44
"description": "HTTP+JSON .ulx interactive fiction server with session support",
55
"scripts": {
6-
"start": "node server.mjs",
7-
"prepare": "husky"
6+
"start": "node server.mjs"
87
},
98
"repository": "git@github.com:statico/glulxe-httpd.git",
109
"author": "Ian Langworth <ian@langworth.com>",
@@ -18,13 +17,5 @@
1817
"papaparse": "5.5.3",
1918
"touch": "3.1.1"
2019
},
21-
"devDependencies": {
22-
"husky": "^9.1.7",
23-
"lint-staged": "^16.4.0",
24-
"prettier": "3.8.1"
25-
},
26-
"lint-staged": {
27-
"**/*": "prettier --write --ignore-unknown"
28-
},
2920
"packageManager": "pnpm@10.33.0"
3021
}

0 commit comments

Comments
 (0)