Files
great-powers/package.json
T
jcoffey-dev e615726615 Give it a container and a page of its own
A Dockerfile that builds the bundle and serves it from nginx, matching the
three games already on the site, and the metadata a page needs when it is
somewhere rather than on a laptop: canonical, Open Graph, the two JSON-LD
blocks, and a noscript that describes the game rather than showing an empty
div to anybody who does not run scripts.

No dev proxy, unlike its siblings. They post scores to a shared service and
this one has nothing to post: a game of Diplomacy is not a number, and a
leaderboard reading "reached eleven centres" would be a worse thing to know
about somebody than nothing at all.

The favicon is seven powers round a board in the seven colours the map uses,
with the one supply centre in the middle they are all looking at -- drawn
here rather than drafted in a tool, like every other mark in this
repository.

And a way back out, absolute rather than "/": this is served from a
subdirectory in production and from the root in development, so the relative
answer is right in one of those and points at the game itself in the other.
2026-09-09 12:00:51 -07:00

39 lines
1004 B
JSON

{
"name": "great-powers",
"private": true,
"version": "0.1.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"lint": "oxlint",
"test": "vitest run",
"preview": "vite preview"
},
"dependencies": {
"react": "^19.2.8",
"react-dom": "^19.2.8"
},
"devDependencies": {
"@types/node": "^24.13.3",
"@types/react": "^19.2.18",
"@types/react-dom": "^19.2.4",
"@vitejs/plugin-react": "^6.1.0",
"oxlint": "^1.79.0",
"typescript": "~6.0.2",
"vite": "^8.2.2",
"vitest": "^3.2.7"
},
"description": "A browser rebuild of the classic seven-power negotiation game, one human against six computer powers.",
"license": "AGPL-3.0-or-later",
"author": "John Coffey",
"repository": {
"type": "git",
"url": "git+https://github.com/Coffey-Labs/great-powers.git"
},
"homepage": "https://games.jcoffey.dev/powers/",
"bugs": {
"url": "https://github.com/Coffey-Labs/great-powers/issues"
}
}