create-laju-app 1.0.13 → 1.0.14
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/cli.js +20 -6
- package/package.json +1 -1
package/bin/cli.js
CHANGED
|
@@ -7,6 +7,23 @@ const path = require('path');
|
|
|
7
7
|
const fs = require('fs');
|
|
8
8
|
const { execSync } = require('child_process');
|
|
9
9
|
|
|
10
|
+
const ASCII_ART = ` -
|
|
11
|
+
:+===+ =+
|
|
12
|
+
++++++++++++++
|
|
13
|
+
=++++= =+++
|
|
14
|
+
+++= +++=
|
|
15
|
+
++= +++++
|
|
16
|
+
++ ++++++ +
|
|
17
|
+
== =++++++++++++ -=
|
|
18
|
+
= =++++++++++++ ++
|
|
19
|
+
= ++++++ ++
|
|
20
|
+
- =++++ =+=
|
|
21
|
+
=++++ +++
|
|
22
|
+
=++= -+++=
|
|
23
|
+
++++++++++++++=
|
|
24
|
+
++=+++++++++=
|
|
25
|
+
== `;
|
|
26
|
+
|
|
10
27
|
program
|
|
11
28
|
.name('create-laju-app')
|
|
12
29
|
.description('CLI to create a new project from template')
|
|
@@ -16,6 +33,8 @@ program
|
|
|
16
33
|
.argument('[project-directory]', 'Project directory name')
|
|
17
34
|
.action(async (projectDirectory) => {
|
|
18
35
|
try {
|
|
36
|
+
console.log(ASCII_ART); // Tambahkan ini
|
|
37
|
+
console.log('\n'); // Tambah baris kosong setelah ASCII art
|
|
19
38
|
// If no project name, ask user
|
|
20
39
|
if (!projectDirectory) {
|
|
21
40
|
const response = await prompts({
|
|
@@ -92,12 +111,7 @@ program
|
|
|
92
111
|
console.log('2. 🔥 npm run dev => to start the development server.');
|
|
93
112
|
console.log('3. 📦 npm run build => to build the production files.');
|
|
94
113
|
console.log('');
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
114
|
+
|
|
101
115
|
} catch (error) {
|
|
102
116
|
console.error('Error:', error.message);
|
|
103
117
|
process.exit(1);
|