Restructure project files
This commit is contained in:
parent
107fa221c9
commit
8f07661fb2
6 changed files with 6 additions and 5 deletions
|
|
@ -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
6
src/index.mjs → bin/add-edb-ids
Normal file → Executable 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
|
||||
|
|
@ -1,4 +1,4 @@
|
|||
// misc helpers
|
||||
// Helper for displaying edit changes so they can be manually verified
|
||||
|
||||
import {execSync} from 'node:child_process';
|
||||
|
||||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"name": "ffxiv-wiki-edb-id-script",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
"dependencies": {
|
||||
"fetch-cookie": "^3.1.0"
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue