Configured `yarn dev` to allow starting Comments-UI

refs https://github.com/TryGhost/Toolbox/issues/400

- this allows for easier development with Comments-UI
This commit is contained in:
Daniel Lockyer 2023-06-22 10:22:14 +02:00
parent 76a6a14731
commit dfd5c50b80
No known key found for this signature in database
2 changed files with 9 additions and 2 deletions

10
.github/dev.js vendored
View File

@ -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';
}

View File

@ -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