From c92f945982425b1a80196b41e7aaa194fb0c0f83 Mon Sep 17 00:00:00 2001 From: Zef Hemel Date: Thu, 21 Apr 2022 15:04:37 +0200 Subject: [PATCH] Switched to npm workspace --- README.md | 34 +++++++++++++++++++++++++++++++--- 1 file changed, 31 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index cb0686d7..ce20aa02 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,35 @@ -# Silverbullet +# Silver Bullet -Install latest yarn: +Mono repo using npm workspaces. + +To install, after clone: ```shell -yarn set version stable +# The path for pages, hardcoded for `npm run server` +mkdir -p pages +# Install dependencies +npm install +# Run initial build (web app, server, etc.) +npm run build +# Again, to install the CLIs just built +npm install +# Build plugs (ctrl-c after done, it's watching) +npm run plugs +# Symlink in the default set of plugs into your space +cd pages +ln -s ../packages/plugs/dist _plug +cd .. +# Launch server +npm run server +``` + +Open at http://localhost:3000 + +General development workflow: + +```shell +# Run these in separate terminals +npm run watch +npm run server +npm run plugs ```