Restructure project files

This commit is contained in:
ewin 2025-07-29 19:04:14 -04:00
parent 107fa221c9
commit 8f07661fb2
Signed by: erin
SSH key fingerprint: SHA256:swjoHhREbZPbWe+gyJNi24d4NAxJSyUIm3fpZj4z3wc
6 changed files with 6 additions and 5 deletions

View file

@ -4,4 +4,4 @@ Wiki bot for https://ffxiv.consolegameswiki.com that attempts to fix items in [C
## Usage
You'll need a recent version of Node.js (22+). Install dependencies via `npm ci`, set the `MW_USERNAME` and `MW_PASSWORD` environment variables to your account username and [bot password](https://www.mediawiki.org/wiki/Manual:Bot_passwords) respectively, then run `node src/index.mjs`.
You'll need a recent version of Node.js (22+). Install dependencies via `npm ci`, set the `MW_USERNAME` and `MW_PASSWORD` environment variables to your account username and [bot password](https://www.mediawiki.org/wiki/Manual:Bot_passwords) respectively, then run `bin/add-edb-ids`.

6
src/index.mjs → bin/add-edb-ids Normal file → Executable file
View file

@ -1,8 +1,8 @@
#!/usr/bin/env node
import {findItemEDBID} from './lodestone.mjs';
import {MediaWikiClient} from './mediawiki.mjs';
import {diff} from './util.mjs';
import {findItemEDBID} from '../lib/api/lodestone.js';
import {MediaWikiClient} from '../lib/api/mediawiki.js';
import {diff} from '../lib/util/diff.js';
/**
* Matches an empty `id-edb` infobox parameter which can just have a value

View file

@ -1,4 +1,4 @@
// misc helpers
// Helper for displaying edit changes so they can be manually verified
import {execSync} from 'node:child_process';

View file

@ -1,6 +1,7 @@
{
"name": "ffxiv-wiki-edb-id-script",
"private": true,
"type": "module",
"dependencies": {
"fetch-cookie": "^3.1.0"
}