refactor the repl tool to support multipage apps and better dev

This commit is contained in:
Yanzhen Yu
2026-04-01 12:00:00 +08:00
parent 4e636e1b6e
commit b065b22f09
7 changed files with 215 additions and 130 deletions

View File

@@ -3,10 +3,10 @@
"version": "0.6.1",
"description": "record and replay the web",
"scripts": {
"test": "TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
"repl": "TS_NODE_CACHE=false TS_NODE_FILES=true ts-node test/repl.ts",
"bundle": "rollup --config",
"bundle:watch": "rollup --config -w"
"test": "npm run bundle:browser && TS_NODE_CACHE=false TS_NODE_FILES=true mocha -r ts-node/register test/**/*.test.ts",
"repl": "npm run bundle:browser && TS_NODE_CACHE=false TS_NODE_FILES=true ts-node scripts/repl.ts",
"bundle:browser": "BROWSER_ONLY=true rollup --config",
"bundle": "rollup --config"
},
"repository": {
"type": "git",