Skip to content

Commit

Permalink
dev server with live-reload (#391)
Browse files Browse the repository at this point in the history
* dev server with live-reload

* comments + cleanup

* remove accidentally added tsconfig option

* dont watch files not in specified glob

* revert lockfile to main

* integrate example into build service

* patch vite-node to remove log

* wip vite server working

* mostly working

* wip using ssr

* wip with ssr custom plugin

* revert to use vite-node, largely working again

* wip

* simpler file watcher approach

* improve error handling

* fix error handling

* fix merge conflict

* fix eslint error

* fix merge conf

* update config loading pattern

---------

Co-authored-by: typedarray <[email protected]>
  • Loading branch information
o-az and 0xOlias committed Nov 7, 2023
1 parent 584b541 commit d1a9648
Show file tree
Hide file tree
Showing 27 changed files with 610 additions and 747 deletions.
1 change: 1 addition & 0 deletions examples/art-gobblers/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
1 change: 1 addition & 0 deletions examples/ethfs/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
1 change: 1 addition & 0 deletions examples/factory-llama/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
4 changes: 4 additions & 0 deletions examples/friendtech/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
{
"root": true,
"extends": "ponder"
}
6 changes: 4 additions & 2 deletions examples/friendtech/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,16 @@
"scripts": {
"dev": "ponder dev",
"start": "ponder start",
"codegen": "ponder codegen"
"codegen": "ponder codegen",
"lint": "eslint ."
},
"dependencies": {
"@ponder/core": "workspace:*"
},
"devDependencies": {
"@types/node": "^18.11.18",
"abitype": "^0.8.11",
"eslint": "^8.43.0",
"eslint-config-ponder": "workspace:*",
"typescript": "^5.1.3",
"viem": "^1.2.6"
}
Expand Down
1 change: 1 addition & 0 deletions examples/token-erc20/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
1 change: 1 addition & 0 deletions examples/token-erc721/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
1 change: 1 addition & 0 deletions examples/token-reth/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
1 change: 1 addition & 0 deletions examples/with-docker/.eslintrc.json
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
{
"root": true,
"extends": "ponder"
}
5 changes: 3 additions & 2 deletions packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,9 @@
"retry": "^0.13.1",
"stacktrace-parser": "^0.1.10",
"tsc-alias": "^1.8.2",
"viem": "^1.2.6"
"viem": "^1.2.6",
"vite": "^4.5.0",
"vite-node": "^0.34.6"
},
"devDependencies": {
"@types/babel__code-frame": "^7.0.3",
Expand All @@ -86,7 +88,6 @@
"rimraf": "^5.0.1",
"supertest": "^6.3.3",
"typescript": "^5.1.3",
"vite": "^4.5.0",
"vitest": "^0.34.6"
}
}
Loading

1 comment on commit d1a9648

@vercel
Copy link

@vercel vercel bot commented on d1a9648 Nov 7, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.