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