From 0ec698371ec62bcbca324887c0500346a49deb01 Mon Sep 17 00:00:00 2001 From: Filip Znachor Date: Wed, 8 Jun 2022 22:11:07 +0200 Subject: [PATCH] Added README --- .gitignore | 4 +++- README.md | 17 +++++++++++++++++ 2 files changed, 20 insertions(+), 1 deletion(-) create mode 100644 README.md diff --git a/.gitignore b/.gitignore index b512c09..3f047cd 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,3 @@ -node_modules \ No newline at end of file +node_modules +dist +*.js \ No newline at end of file diff --git a/README.md b/README.md new file mode 100644 index 0000000..348be58 --- /dev/null +++ b/README.md @@ -0,0 +1,17 @@ +# on-demand-proxy +A simple proxy that starts and stops backend instances + +## Packaging +Transpile TypeScript to JavaScript + +``` +tsc +``` + +Create binaries for x64 / arm64 / arm32 + +``` +pkg index.js -o dist/on-demand-proxy-x64 -t node16-linux-x64 --no-bytecode --public-packages "*" --public +pkg index.js -o dist/on-demand-proxy-arm64 -t node16-linux-arm64 --no-bytecode --public-packages "*" --public +pkg index.js -o dist/on-demand-proxy-arm32 -t node14-linux-armv6 --no-bytecode --public-packages "*" --public +``` \ No newline at end of file