diff --git a/Makefile b/Makefile index 69e86ff..9658d2d 100644 --- a/Makefile +++ b/Makefile @@ -18,7 +18,7 @@ static : ## Run a static page node -r esm examples/ssr/counter.js || exit $? ;\ server : ## Run a dev static server - pnpx github:gc-victor/d-d#9adcf46bf2f346d7dd1f79758fe14064cc8b0734 + pnpm --package=github:gc-victor/d-d dlx d-d test : ## Execute tests TEST=true node -r esm tests/index.js || exit $? ;\ diff --git a/d-d.config.js b/d-d.config.js index 16135ed..66ce9e2 100644 --- a/d-d.config.js +++ b/d-d.config.js @@ -1,7 +1,13 @@ +import { execSync } from 'child_process'; + export default { dist: '/examples', - src: ['./src', './examples'], + src: ['./src', './examples/jsx'], port: 1234, socketPort: 1235, - onChangeServer: () => {}, + onChangeServer: () => { + const cmd = 'node examples/jsx/esbuild-jsx.js'; + console.log('Execute:', cmd, '\n'); + execSync(cmd); + }, };