1
0
Fork 0
mirror of https://we.phorge.it/source/phorge.git synced 2024-11-09 16:32:39 +01:00

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
This commit is contained in:
Amaury Séchet 2021-06-19 17:11:01 +00:00
parent af36da4741
commit 2258ba8535
3 changed files with 27 additions and 3 deletions

View file

@ -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 To install Node.js, follow the instructions on
[[ http://nodejs.org | nodejs.org ]]. [[ 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: installed into the notification server directory:
phorge/ $ cd support/aphlict/server/ 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. server.

12
support/aphlict/server/package-lock.json generated Normal file
View file

@ -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=="
}
}
}

View file

@ -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"
}
}