@embeddable.com/init 0.1.6 → 0.1.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/dist/index.js +10 -4
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -65,7 +65,7 @@ async function main() {
|
|
|
65
65
|
const onCancel = () => exit("\nSetup cancelled.\n");
|
|
66
66
|
console.log(chalk.white(LOGO));
|
|
67
67
|
await typewriter("Welcome to Embeddable!\n\n", chalk.bold, TYPEWRITER_SPEED);
|
|
68
|
-
await typewriter("Embeddable
|
|
68
|
+
await typewriter("Embeddable lets you configure your ", void 0, TYPEWRITER_SPEED);
|
|
69
69
|
await typewriter("charting components", chalk.bold, TYPEWRITER_SPEED);
|
|
70
70
|
await typewriter(", ", void 0, TYPEWRITER_SPEED);
|
|
71
71
|
await typewriter("data models", chalk.bold, TYPEWRITER_SPEED);
|
|
@@ -78,13 +78,19 @@ async function main() {
|
|
|
78
78
|
await typewriter(" and the ", void 0, TYPEWRITER_SPEED);
|
|
79
79
|
await typewriter("data", chalk.bold, TYPEWRITER_SPEED);
|
|
80
80
|
await typewriter(" powering your dashboards.\n\n", void 0, TYPEWRITER_SPEED);
|
|
81
|
-
await typewriter("This tool
|
|
81
|
+
await typewriter("This tool creates a ", void 0, TYPEWRITER_SPEED);
|
|
82
|
+
await typewriter("new folder", chalk.bold, TYPEWRITER_SPEED);
|
|
83
|
+
await typewriter(", containing ", void 0, TYPEWRITER_SPEED);
|
|
84
|
+
await typewriter("sample data models", chalk.bold, TYPEWRITER_SPEED);
|
|
85
|
+
await typewriter(" and ", void 0, TYPEWRITER_SPEED);
|
|
86
|
+
await typewriter("themes", chalk.bold, TYPEWRITER_SPEED);
|
|
87
|
+
await typewriter(" to help you create your first Embeddable dashboard.\n\n", void 0, TYPEWRITER_SPEED);
|
|
82
88
|
const cwd = process.cwd();
|
|
83
89
|
const { confirmDir } = await prompts(
|
|
84
90
|
{
|
|
85
91
|
type: "confirm",
|
|
86
92
|
name: "confirmDir",
|
|
87
|
-
message: `Ok to create a new
|
|
93
|
+
message: `Ok to create a new project subfolder in your current directory ${chalk.cyan(cwd)}?`,
|
|
88
94
|
initial: true
|
|
89
95
|
},
|
|
90
96
|
{ onCancel }
|
|
@@ -143,7 +149,7 @@ Failed to download boilerplate: ${message}
|
|
|
143
149
|
type: "password",
|
|
144
150
|
name: "apiKey",
|
|
145
151
|
message: `You'll need an API Key to push this code bundle to your account's workspace
|
|
146
|
-
(
|
|
152
|
+
(Create your account here: ${chalk.cyan(terminalLink("https://embeddable.com/start", "https://embeddable.com/start", { fallback: (text) => text }))}).
|
|
147
153
|
|
|
148
154
|
Paste your API Key here:`,
|
|
149
155
|
validate: (value) => {
|