Browse Source

added npm commands for keeping subtree updated

main
deicidus 6 months ago
parent
commit
1c2aa49a7e
  1. 4
      README.md
  2. 4
      package.json

4
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).
Use `ao-cli` to do this; it has have an easy menu option built in for this (very soon).

4
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": {

Loading…
Cancel
Save