From 2258ba8535d57081582add7375c31837ac2f26f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Amaury=20S=C3=A9chet?= Date: Sat, 19 Jun 2021 17:11:01 +0000 Subject: [PATCH] Add package.json for aphlict Summary: This makes the whole setup easier, future proof and reproducible. Test Plan: cd support/aphlict/server/ npm install See that ws gets installed as expected. Reviewers: O1 Blessed Committers, Matthew Reviewed By: O1 Blessed Committers, Matthew Subscribers: Matthew, Ekubischta, speck, tobiaswiese Maniphest Tasks: T15019 Differential Revision: https://we.phorge.it/D25006 --- src/docs/user/configuration/notifications.diviner | 6 +++--- support/aphlict/server/package-lock.json | 12 ++++++++++++ support/aphlict/server/package.json | 12 ++++++++++++ 3 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 support/aphlict/server/package-lock.json create mode 100644 support/aphlict/server/package.json diff --git a/src/docs/user/configuration/notifications.diviner b/src/docs/user/configuration/notifications.diviner index bd1835c294..de1a32d5e1 100644 --- a/src/docs/user/configuration/notifications.diviner +++ b/src/docs/user/configuration/notifications.diviner @@ -41,13 +41,13 @@ The notification server uses Node.js, so you'll need to install it first. To install Node.js, follow the instructions on [[ http://nodejs.org | nodejs.org ]]. -You will also need to install the `ws` module for Node. This needs to be +You will also need to install the dependencies for Node. This needs to be installed into the notification server directory: phorge/ $ cd support/aphlict/server/ - phorge/support/aphlict/server/ $ npm install ws + phorge/support/aphlict/server/ $ npm install -Once Node.js and the `ws` module are installed, you're ready to start the +Once Node.js and its dependencies are installed, you're ready to start the server. diff --git a/support/aphlict/server/package-lock.json b/support/aphlict/server/package-lock.json new file mode 100644 index 0000000000..8af62ae233 --- /dev/null +++ b/support/aphlict/server/package-lock.json @@ -0,0 +1,12 @@ +{ + "name": "aphlict-server", + "requires": true, + "lockfileVersion": 1, + "dependencies": { + "ws": { + "version": "7.5.0", + "resolved": "https://registry.npmjs.org/ws/-/ws-7.5.0.tgz", + "integrity": "sha512-6ezXvzOZupqKj4jUqbQ9tXuJNo+BR2gU8fFRk3XCP3e0G6WT414u5ELe6Y0vtp7kmSJ3F7YWObSNr1ESsgi4vw==" + } + } +} diff --git a/support/aphlict/server/package.json b/support/aphlict/server/package.json new file mode 100644 index 0000000000..b66270b3c5 --- /dev/null +++ b/support/aphlict/server/package.json @@ -0,0 +1,12 @@ +{ + "name": "aphlict-server", + "description": "Phorge's aphlict's server", + "main": "aphlict_server.js", + "directories": { + "lib": "lib" + }, + "license": "Apache-2.0", + "dependencies": { + "ws": "^7.5.0" + } +}