From 1c2aa49a7ebb461172ae8f28833dc2de15ce3ced Mon Sep 17 00:00:00 2001 From: deicidus <> Date: Mon, 13 Jun 2022 16:43:22 -0700 Subject: [PATCH] added npm commands for keeping subtree updated --- README.md | 4 ++-- package.json | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index db7e6f5..1728a2a 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # AO API Server (ao-server) -An AO server, or AO API server keeps track of the history of a single community. One or more users can connect to the same AO server and communicate. +The AO API server (or 'AO server') keeps track of the history of a single community. One or more users can connect to the same AO server and communicate. ## Installation @@ -27,4 +27,4 @@ To start the server running, do: To run the server in the background or on system startup, install it as a systemd service. -Use `ao-cli` to do this; it has have an easy menu option built in for this (very soon). \ No newline at end of file +Use `ao-cli` to do this; it has have an easy menu option built in for this (very soon). diff --git a/package.json b/package.json index 449008d..01d272d 100644 --- a/package.json +++ b/package.json @@ -5,7 +5,9 @@ "license": "AGPL-3.0-or-later", "scripts": { "build": "npx tsc --project tsconfig.json", - "serve": "npm run build && node --loader ts-node/esm src/server/app.ts" + "serve": "npm run build && node --loader ts-node/esm src/server/app.ts", + "ao-lib:update": "git fetch ao-lib && git subtree pull --prefix src/ao-lib ao-lib main --squash", + "ao-lib:push": "git subtree push --prefix=src/ao-lib ao-lib main" }, "type": "module", "devDependencies": {