Skip to content

Commit 83db36f

Browse files
dzhelezovclaude
andcommitted
feat(examples): add npm run clean to reset generated artifacts
All three example apps (euler-multichain, euler-subgraph, uniswap-portal) lacked a `clean` script, so a `dev`/`codegen`/`start` run left `.ponder`, `generated`, and `ponder-env.d.ts` behind with no one-shot reset. Add an identical `"clean": "rm -rf .ponder generated ponder-env.d.ts"` to each example's `scripts` block. It removes exactly the regenerable, already-gitignored artifacts and leaves `git status examples/` clean. `rm -rf` matches the ponder-example convention and keeps the examples dependency-free (no rimraf); CI is linux. node_modules and package-lock.json are intentionally left alone — a fast, non-destructive reset rather than a deps wipe. Verified live on euler-subgraph: install -> codegen + dev materialize the three artifacts -> `npm run clean` removes all three -> git status clean. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent f643e96 commit 83db36f

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

examples/euler-multichain/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"dev": "ponder dev",
77
"start": "ponder start",
8-
"codegen": "ponder codegen"
8+
"codegen": "ponder codegen",
9+
"clean": "rm -rf .ponder generated ponder-env.d.ts"
910
},
1011
"dependencies": {
1112
"abitype": "^0.10.2",

examples/euler-subgraph/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,8 @@
1010
"serve": "ponder serve",
1111
"summary": "node scripts/summary.mjs",
1212
"lint": "eslint .",
13-
"typecheck": "tsc"
13+
"typecheck": "tsc",
14+
"clean": "rm -rf .ponder generated ponder-env.d.ts"
1415
},
1516
"dependencies": {
1617
"abitype": "^0.10.2",

examples/uniswap-portal/package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,8 @@
55
"scripts": {
66
"dev": "ponder dev",
77
"start": "ponder start",
8-
"codegen": "ponder codegen"
8+
"codegen": "ponder codegen",
9+
"clean": "rm -rf .ponder generated ponder-env.d.ts"
910
},
1011
"dependencies": {
1112
"abitype": "^0.10.2",

0 commit comments

Comments
 (0)