Improved output from dev script

refs https://github.com/TryGhost/DevOps/issues/104

- added a single line outputting what projects we're running
- removed line for Stripe token fetching
This commit is contained in:
Daniel Lockyer 2023-11-15 09:55:10 +01:00 committed by Daniel Lockyer
parent 54e1b6002d
commit 76672e3e15
2 changed files with 4 additions and 1 deletions

View File

@ -2,6 +2,7 @@ const path = require('path');
const util = require('util');
const exec = util.promisify(require('child_process').exec);
const chalk = require('chalk');
const concurrently = require('concurrently');
// check we're running on Node 18 and above
@ -171,7 +172,6 @@ async function handleStripe() {
if (DASH_DASH_ARGS.includes('offline')) {
return;
}
console.log('Fetching Stripe secret token..');
let stripeSecret;
try {
@ -204,6 +204,8 @@ async function handleStripe() {
process.exit(0);
}
console.log(`Running projects: ${commands.map(c => chalk.green(c.name)).join(', ')}`);
const {result} = concurrently(commands, {
prefix: 'name',
killOthers: ['failure', 'success']

View File

@ -105,6 +105,7 @@
"*.js": "eslint"
},
"devDependencies": {
"chalk": "4.1.2",
"concurrently": "8.2.2",
"eslint": "8.44.0",
"eslint-plugin-ghost": "3.3.2",