@icarusmx/creta 1.4.1 β†’ 1.4.3

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/creta.js CHANGED
@@ -1,10 +1,7 @@
1
1
  #!/usr/bin/env node
2
2
 
3
- import { WELCOME_BANNER } from '../lib/data/messages.js'
4
3
  import { runCLI } from '../lib/cli/index.js'
5
4
 
6
- console.log(WELCOME_BANNER)
7
-
8
5
  try {
9
6
  const exitCode = await runCLI(process.argv.slice(2))
10
7
  process.exit(exitCode)
package/lib/data/menus.js CHANGED
@@ -1,8 +1,6 @@
1
- import { WELCOME_BANNER } from './messages.js'
2
1
  import { ENUNCIADOS } from './enunciados.js'
3
2
 
4
3
  export const MAIN_MENU_CONFIG = {
5
- banner: WELCOME_BANNER,
6
4
  title: 'Te ofrecemos las siguientes opciones:',
7
5
  options: [
8
6
  { id: 'sintaxis', title: 'Aprender sintaxis' },
@@ -22,7 +22,4 @@ export const HELP_TEXT = `
22
22
 
23
23
  πŸ’‘ Tip: Si estΓ‘s dentro de un proyecto existente, los comandos
24
24
  portafolio-1/2/3 actualizarΓ‘n tus archivos directamente
25
-
26
- 🎯 La filosofía Creta: partir de enunciados que generan 'ruido' para
27
- construir comprensiΓ³n real, no solo sintaxis.
28
25
  `
@@ -2,11 +2,22 @@ import chalk from 'chalk'
2
2
  import { UserState } from './user-state.js'
3
3
  import { askQuestion, createPromptInterface } from './input.js'
4
4
 
5
+ const BANNER_ART = `
6
+ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
7
+ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ
8
+ β–ˆ C β–ˆ R β–ˆ E β–ˆ T β–ˆ A β–ˆ β–ˆ β–ˆ
9
+ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ β–ˆ
10
+ β–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆβ–ˆ
11
+
12
+ Bienvenido a la escuela de software de icarus.mx`
13
+
5
14
  export async function greetUser() {
6
15
  const state = UserState.updateLastSeen()
7
16
 
8
17
  // First time user - ask for name
9
18
  if (!state.name) {
19
+ console.log(BANNER_ART)
20
+
10
21
  const rl = createPromptInterface()
11
22
 
12
23
  console.log('')
@@ -14,7 +25,7 @@ export async function greetUser() {
14
25
 
15
26
  if (name && name.trim()) {
16
27
  UserState.setName(name.trim())
17
- console.log(chalk.green(`\nΒ‘Bienvenido, ${name.trim()}!`))
28
+ console.log(chalk.cyan(`\nSalgamos de este laberinto, ${name.trim()} πŸ›οΈ`))
18
29
  }
19
30
 
20
31
  rl.close()
@@ -26,7 +37,8 @@ export async function greetUser() {
26
37
  const lessonsCount = state.lessonsCompleted.length
27
38
  const greeting = lessonsCount > 0
28
39
  ? `Β‘Hola de vuelta, ${state.name}! πŸ“Š ${lessonsCount} ${lessonsCount === 1 ? 'lecciΓ³n completada' : 'lecciones completadas'}`
29
- : `Β‘Hola de vuelta, ${state.name}!`
40
+ : `Salgamos de este laberinto, ${state.name} πŸ›οΈ`
30
41
 
31
- console.log(chalk.cyan(`\n${greeting}\n`))
42
+ console.log(BANNER_ART)
43
+ console.log(chalk.cyan(`${greeting}\n`))
32
44
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@icarusmx/creta",
3
- "version": "1.4.1",
3
+ "version": "1.4.3",
4
4
  "description": "Salgamos de este laberinto.",
5
5
  "type": "module",
6
6
  "bin": {