Add serve & scripts to readme

This commit is contained in:
Wietse Wind
2023-10-05 02:10:18 +02:00
parent 4fb02a9866
commit 986705326a
3 changed files with 992 additions and 1 deletions

View File

@@ -30,3 +30,10 @@ Every folder will contain the following files:
- `validation_{signing pubkey}.json`, e.g. `validation_n9McDrz9tPujrQK3vMXJXzuEJv1B8UG3opfZEsFA8t6QxdZh1H6m.json`
- `tx_{tx hash}.json`, e.g. `tx_FFDEADBEEF64F423CB4B317370F9B40645BA9D5646B47837FDC74B8DCAFEBABE.json`
- `xpop_{tx hash}.json` for the generated xPOP (in JSON format)
## Helper scripts
`npm run serve` to launch a webserver for the `store` dir
`npm run dev` to launch (verbose)
`npm run xpopgen` to launch, less verbose

980
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@@ -5,7 +5,8 @@
"main": "index.mjs",
"scripts": {
"dev": "nodemon .",
"xpopdev": "source .env && nodemon --max-old-space-size=20 ."
"xpopdev": "source .env && nodemon --max-old-space-size=50 .",
"serve": "serve ./store/"
},
"author": "Wietse Wind <w@xrpl-labs.com>",
"license": "MIT",
@@ -23,5 +24,8 @@
"ripple-address-codec": "^4.3.0",
"ripple-binary-codec": "^1.10.0",
"xrpl-client": "^2.2.0"
},
"devDependencies": {
"serve": "^14.2.1"
}
}