From dfd5c50b80bb17db666b8d53c3aa7787e12ac0d9 Mon Sep 17 00:00:00 2001 From: Daniel Lockyer Date: Thu, 22 Jun 2023 10:22:14 +0200 Subject: [PATCH] Configured `yarn dev` to allow starting Comments-UI refs https://github.com/TryGhost/Toolbox/issues/400 - this allows for easier development with Comments-UI --- .github/dev.js | 10 +++++++++- apps/comments-ui/README.md | 1 - 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/dev.js b/.github/dev.js index ae7a8f389b..b65ce255c3 100644 --- a/.github/dev.js +++ b/.github/dev.js @@ -137,7 +137,15 @@ if (DASH_DASH_ARGS.includes('lexical')) { COMMAND_GHOST.env['editor__url'] = 'http://localhost:4173/koenig-lexical.umd.js'; } -if (DASH_DASH_ARGS.includes('comments')) { +if (DASH_DASH_ARGS.includes('comments') || DASH_DASH_ARGS.includes('all')) { + commands.push({ + name: 'comments', + command: 'yarn dev', + cwd: path.resolve(__dirname, '../apps/comments-ui'), + prefixColor: '#E55137', + env: {} + }); + COMMAND_GHOST.env['comments__url'] = 'http://localhost:7174/comments-ui.min.js'; } diff --git a/apps/comments-ui/README.md b/apps/comments-ui/README.md index 404423870d..447a6558d7 100644 --- a/apps/comments-ui/README.md +++ b/apps/comments-ui/README.md @@ -7,7 +7,6 @@ Comments widget that is embedded at the bottom of posts in Ghost. ### Pre-requisites - Run `yarn` in Ghost monorepo root -- Run `yarn` in this directory ### Running via Ghost `yarn dev` in root folder