Ryujinx-Ldn-Website/package.json
TSRBerry d0ab84a254
Switch to TypeScript and express & Add stats API (#1)
* Switch to node package

Setup environment for:
- Typescript
- express with ejs as the view engine

* Apply prettier formatting

* Read API stats from Redis

* Apply prettier formatting

* Add Dockerfile

* Add environment variables for configuration to README.md

* Log redis errors correctly

* Connect to redis before executing requests

* Rename json properties to match the current ones

* Configure Redis error handler and client correctly

* Remove workflow to fix pnpm dependencies

GitHub supports pnpm for dependabot natively now:
https://github.blog/changelog/2023-06-12-dependabot-version-updates-now-supports-pnpm/

* Add REDIS_SOCKET env var and prefer it over REDIS_URL

* Add default.nix

* Add SOCKET_PATH env var and prefer it over HOST and PORT

* Bump website version

* Add node symlink to output directory

* Add DATA_PATH env var

* Apply prettier formatting

---------

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2023-07-02 04:05:12 +02:00

43 lines
1.1 KiB
JSON

{
"name": "ryujinx-ldn-website",
"version": "1.0.0",
"private": true,
"author": "Ryujinx",
"license": "MIT",
"description": "Ryujinx LDN website",
"repository": {
"url": "https://github.com/Ryujinx/Ryujinx-Ldn-Website"
},
"main": "dist/index.js",
"scripts": {
"format": "prettier -w .",
"lint": "eslint --fix .",
"build": "tsc",
"prestart": "pnpm build",
"start": "node .",
"dev": "pnpm build && pnpm start",
"serve": "nodemon",
"prepack": "pnpm build"
},
"dependencies": {
"ejs": "^3.1.9",
"express": "~4.18.2",
"express-actuator": "^1.8.4",
"redis": "^4.6.7",
"winston": "^3.9.0"
},
"devDependencies": {
"@tsconfig/recommended": "^1.0.2",
"@types/express": "^4.17.17",
"@types/express-actuator": "^1.8.0",
"@types/node": "^20.2.5",
"@typescript-eslint/eslint-plugin": "^5.59.7",
"@typescript-eslint/parser": "^5.59.7",
"eslint": "^8.41.0",
"eslint-config-prettier": "^8.8.0",
"nodemon": "^2.0.22",
"prettier": "2.8.8",
"typescript": "^5.0.4"
}
}