@epic-web/workshop-app 5.26.0 → 5.28.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/bin/epicshop.js CHANGED
@@ -256,14 +256,30 @@ async function start() {
256
256
  spawnChild()
257
257
  } else if (key === 'k') {
258
258
  const messages = [
259
- chalk.bgCyan.black('🐨 Kody says: You are koalafied for greatness!'),
260
- chalk.bgGreen.black('🐨 Kody says: Keep going, you are pawsome!'),
261
- chalk.bgMagenta.white('🐨 Kody says: Eucalyptus up and code on!'),
262
- chalk.bgYellow.black('🐨 Kody says: You can do it, fur real!'),
263
- chalk.bgBlue.white('🐨 Kody says: Stay curious, stay cuddly!'),
264
- chalk.bgRed.white("🐨 Kody says: Don't leaf your dreams behind!"),
259
+ '🐨 Kody says: You are koalafied for greatness!',
260
+ '🐨 Kody says: Keep going, you are pawsome!',
261
+ '🐨 Kody says: Eucalyptus up and code on!',
262
+ '🐨 Kody says: You can do it, fur real!',
263
+ '🐨 Kody says: Stay curious, stay cuddly!',
264
+ "🐨 Kody says: Don't leaf your dreams behind!",
265
+ '🐨 Kody says: Time to branch out and grow!',
266
+ '🐨 Kody says: You are tree-mendous at this!',
267
+ '🐨 Kody says: Leaf your worries behind!',
268
+ '🐨 Kody says: You are absolutely koala-fied!',
269
+ '🐨 Kody says: Keep climbing, you are doing great!',
265
270
  ]
266
- const msg = messages[Math.floor(Math.random() * messages.length)]
271
+ const colors = [
272
+ chalk.bgCyan.black,
273
+ chalk.bgGreen.black,
274
+ chalk.bgMagenta.white,
275
+ chalk.bgYellow.black,
276
+ chalk.bgBlue.white,
277
+ chalk.bgRed.white,
278
+ ]
279
+ const randomMessage =
280
+ messages[Math.floor(Math.random() * messages.length)]
281
+ const randomColor = colors[Math.floor(Math.random() * colors.length)]
282
+ const msg = randomColor(randomMessage)
267
283
  console.log('\n' + msg + '\n')
268
284
  } else if (key === '\u0003') {
269
285
  // Ctrl+C
@@ -294,10 +310,12 @@ async function killChild(child) {
294
310
  }
295
311
 
296
312
  function printSupportedKeys() {
297
- console.log(chalk.bold.cyan('\nSupported keys:'))
298
- console.log(` ${chalk.blue('o')} - open browser`)
299
- console.log(` ${chalk.green('u')} - update repo`)
300
- console.log(` ${chalk.magenta('r')} - restart`)
301
- console.log(` ${chalk.cyan('k')} - Kody kudos 🐨`)
302
- console.log(` ${chalk.gray('q')} (or ${chalk.gray('Ctrl+C')}) - exit`)
313
+ console.log(`
314
+ ${chalk.bold.cyan('Supported keys:')}
315
+ ${chalk.blue('o')} - open browser
316
+ ${chalk.green('u')} - update repo
317
+ ${chalk.magenta('r')} - restart
318
+ ${chalk.cyan('k')} - Kody kudos 🐨
319
+ ${chalk.gray('q')} (or ${chalk.gray('Ctrl+C')}) - exit
320
+ `)
303
321
  }