@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 +31 -13
- package/build/client/assets/_layout-B_NrRv0S.js.map +1 -1
- package/build/client/assets/l-ChG-6rmU.js +2 -0
- package/build/client/assets/l-ChG-6rmU.js.map +1 -0
- package/build/client/assets/{manifest-d93a665a.js → manifest-f9e2a790.js} +1 -1
- package/build/client/assets/progress-BJ4ADF-s.js.map +1 -1
- package/build/client/assets/{root-Dh864soy.js → root-C_WG23OF.js} +3 -3
- package/build/client/assets/root-C_WG23OF.js.map +1 -0
- package/build/server/index.js +140 -94
- package/build/server/index.js.map +1 -1
- package/package.json +3 -3
- package/build/client/assets/root-Dh864soy.js.map +0 -1
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
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
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
|
|
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(
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
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
|
}
|