@dasidev/dasi-ui 1.0.6 β 1.0.7
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/dash-cli.cjs +21 -23
- package/package.json +1 -1
package/bin/dash-cli.cjs
CHANGED
|
@@ -9,21 +9,31 @@ const ora = require('ora');
|
|
|
9
9
|
program
|
|
10
10
|
.name('dasi-ui')
|
|
11
11
|
.description('DASI UI - Complete Admin Template Setup')
|
|
12
|
-
.version('1.0.
|
|
12
|
+
.version('1.0.7');
|
|
13
13
|
|
|
14
14
|
program
|
|
15
|
-
.command('
|
|
15
|
+
.command('create [project-name]')
|
|
16
16
|
.description('Initialize DASI UI admin template')
|
|
17
|
-
.action(async () => {
|
|
17
|
+
.action(async (projectName) => {
|
|
18
18
|
console.log(chalk.blue.bold('π Welcome to DASI UI Admin Template Setup'));
|
|
19
19
|
console.log(chalk.gray('This will set up a complete admin dashboard in your current directory\n'));
|
|
20
20
|
|
|
21
|
+
console.log(chalk.blue.bold(`
|
|
22
|
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
23
|
+
β β
|
|
24
|
+
β π DASI UI - Complete Admin Template Generator β
|
|
25
|
+
β β
|
|
26
|
+
β Creating: ${chalk.cyan(projectName.padEnd(35))} β
|
|
27
|
+
β β
|
|
28
|
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
29
|
+
`));
|
|
30
|
+
|
|
21
31
|
const questions = [
|
|
22
32
|
{
|
|
23
33
|
type: 'input',
|
|
24
34
|
name: 'projectName',
|
|
25
35
|
message: 'π¦ Project name:',
|
|
26
|
-
default:
|
|
36
|
+
default: projectName,
|
|
27
37
|
validate: (input) => input.length > 0 || 'Project name is required'
|
|
28
38
|
},
|
|
29
39
|
{
|
|
@@ -63,24 +73,6 @@ program
|
|
|
63
73
|
message: 'π Enable dark mode?',
|
|
64
74
|
default: true
|
|
65
75
|
},
|
|
66
|
-
{
|
|
67
|
-
type: 'confirm',
|
|
68
|
-
name: 'includeAuth',
|
|
69
|
-
message: 'π Include authentication module?',
|
|
70
|
-
default: true
|
|
71
|
-
},
|
|
72
|
-
{
|
|
73
|
-
type: 'confirm',
|
|
74
|
-
name: 'includeCharts',
|
|
75
|
-
message: 'π Include chart components?',
|
|
76
|
-
default: true
|
|
77
|
-
},
|
|
78
|
-
{
|
|
79
|
-
type: 'confirm',
|
|
80
|
-
name: 'includeMaps',
|
|
81
|
-
message: 'πΊοΈ Include map components?',
|
|
82
|
-
default: false
|
|
83
|
-
},
|
|
84
76
|
{
|
|
85
77
|
type: 'confirm',
|
|
86
78
|
name: 'gitInit',
|
|
@@ -158,7 +150,13 @@ program
|
|
|
158
150
|
}
|
|
159
151
|
}
|
|
160
152
|
|
|
161
|
-
|
|
153
|
+
console.log(chalk.green(`
|
|
154
|
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
155
|
+
β β
|
|
156
|
+
β π Success! Your admin dashboard is ready! β
|
|
157
|
+
β β
|
|
158
|
+
ββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
|
|
159
|
+
`));
|
|
162
160
|
|
|
163
161
|
console.log(chalk.green('\nπ Setup Complete! Your admin dashboard is ready.'));
|
|
164
162
|
console.log(chalk.green('\nπ What you get:'));
|