Skip to content

Commit

Permalink
feat: update d-d config
Browse files Browse the repository at this point in the history
On change server execute esbuild-jsx
  • Loading branch information
gc-victor committed Feb 1, 2022
1 parent 4800a3b commit 6bd5fa9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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 $? ;\
Expand Down
10 changes: 8 additions & 2 deletions d-d.config.js
Original file line number Diff line number Diff line change
@@ -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);
},
};

0 comments on commit 6bd5fa9

Please sign in to comment.