Adding package and config

This commit is contained in:
2026-03-25 22:20:47 -05:00
parent dadbec4c9f
commit d013feffa7
2 changed files with 45 additions and 0 deletions

15
config/default.json Normal file
View File

@@ -0,0 +1,15 @@
{
"server": {
"port": 3000,
"host": "0.0.0.0"
},
"proxy": {
"pathPrefix": "/ProxyScript/run/",
"workspaceId": "67bca862210071627d32ef12",
"branch": "current",
"routeName": "myProxy"
},
"logging": {
"level": "debug"
}
}

30
package.json Normal file
View File

@@ -0,0 +1,30 @@
{
"name": "my proxy",
"version": "1.0.0",
"description": "Proxy Script",
"type": "module",
"main": "src/server.js",
"scripts": {
"dev": "node --watch src/server.js",
"start": "node src/server.js | jq -R 'fromjson? | select(. != null)'",
"test": "node --test tests/**/*.test.js",
"test:unit": "node --test tests/unit/**/*.test.js",
"test:integration": "node --test tests/integration/**/*.test.js",
"test:contract": "node --test tests/contract/**/*.test.js",
"clean": "rm -rvf dist/* & rm -rvf **/*.old & rm -rvf **/*.{backup,backup-new,backup-old,backup-regenerated} & rm -rvf **/*-old.js"
},
"keywords": [
"proxy",
],
"author": "",
"license": "ISC",
"engines": {
"node": ">=18.0.0"
},
"dependencies": {
"axios": "^1.13.6",
"jsonwebtoken": "^9.0.3",
"uuid": "^13.0.0",
"xmlbuilder2": "^4.0.3"
}
}