Web Dev Solutions

Catalin Mititiuc

aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCatalin Mititiuc <webdevcat@proton.me>2024-04-17 22:26:53 -0700
committerCatalin Mititiuc <webdevcat@proton.me>2024-04-17 22:26:53 -0700
commit23967fe2f5ae9fb6d6c8a2cbc29845531f7acece (patch)
treea9bc130e002ed7241552891f70326976b01117fb /dev-server.cjs
parent24e2bd5821b09d4d7e243fc62ab36f45454a0a03 (diff)
Integration test running with test server
Diffstat (limited to 'dev-server.cjs')
-rw-r--r--dev-server.cjs13
1 files changed, 13 insertions, 0 deletions
diff --git a/dev-server.cjs b/dev-server.cjs
new file mode 100644
index 0000000..fc4da91
--- /dev/null
+++ b/dev-server.cjs
@@ -0,0 +1,13 @@
+console.log('Starting server.');
+
+require('esbuild-server')
+ .createServer(
+ {
+ bundle: true,
+ entryPoints: ['src/index.js'],
+ },
+ {
+ static: 'public'
+ }
+ )
+ .start();