From bc6f67166877cc298d2e05edbf4621f26068fcf6 Mon Sep 17 00:00:00 2001 From: Martin McKeaveney Date: Tue, 28 Jan 2020 09:11:08 +0000 Subject: [PATCH] Run Budibase Dev Server from top level, server side watch mode (#64) * better dev command * update readme --- package.json | 3 ++- readme.md | 9 ++++++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/package.json b/package.json index 34cec66de8..6c39e60edf 100644 --- a/package.json +++ b/package.json @@ -9,6 +9,7 @@ "bootstrap": "lerna bootstrap", "build": "lerna run build", "initialise": "lerna run initialise", - "clean": "lerna clean" + "clean": "lerna clean", + "dev": "lerna run --parallel --stream dev:builder" } } diff --git a/readme.md b/readme.md index ef02437ba9..524a9933b8 100644 --- a/readme.md +++ b/readme.md @@ -73,9 +73,12 @@ if you then want to run the builder in dev mode (i.e. with hot reloading): ... keep the server running, and.. 1. Open a new console -2. `cd packages/builder` -3. `yarn start` -4. Access the builder on http://localhost:3000 +2. `yarn dev` +3. Access the builder on http://localhost:3000 + +This will enable watch mode for both the client AND the server. + +### Running Commands from /server Directory Notice that when inside `packages/server`, you can use any Budibase CLI command via yarn: