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:
parent
54e1b6002d
commit
76672e3e15
4
.github/scripts/dev.js
vendored
4
.github/scripts/dev.js
vendored
@ -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']
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user