zerozeeker 2.2.7 → 2.2.8
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 +14 -14
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19,33 +19,33 @@ var program = new Command();
|
|
|
19
19
|
program.name("zerozeeker").description("CLI for installing ZeroZeeker UI components - because life is too short for boring interfaces").version("1.0.0");
|
|
20
20
|
program.command("add <component>").description("Add a component from ZeroZeeker registry").action((component) => {
|
|
21
21
|
if (!COMPONENTS.includes(component)) {
|
|
22
|
-
console.error(chalk.red(`Component "${component}" does not exist in this dimension.`));
|
|
23
|
-
console.log(chalk.dim("\
|
|
22
|
+
console.error(chalk.red(`[x] Component "${component}" does not exist in this dimension.`));
|
|
23
|
+
console.log(chalk.dim("\n>>> Here are the components that actually exist:"));
|
|
24
24
|
COMPONENTS.filter((c) => c !== "index").forEach((c) => {
|
|
25
|
-
console.log(chalk.cyan(`
|
|
25
|
+
console.log(chalk.cyan(` | ${c}`));
|
|
26
26
|
});
|
|
27
|
-
console.log(chalk.dim("\
|
|
27
|
+
console.log(chalk.dim("\n[*] Pro tip: Copy-paste is your friend."));
|
|
28
28
|
process.exit(1);
|
|
29
29
|
}
|
|
30
30
|
const url = `${REGISTRY_URL}/${component}.json`;
|
|
31
|
-
const spinner = ora(`Installing ${chalk.cyan(component)}... hold tight`).start();
|
|
31
|
+
const spinner = ora(`[~] Installing ${chalk.cyan(component)}... hold tight`).start();
|
|
32
32
|
try {
|
|
33
33
|
execSync(`npx shadcn@latest add ${url}`, {
|
|
34
34
|
stdio: "inherit",
|
|
35
35
|
encoding: "utf-8"
|
|
36
36
|
});
|
|
37
37
|
spinner.stop();
|
|
38
|
-
console.log(chalk.green(`Successfully installed ${component}. Now go make something beautiful.`));
|
|
38
|
+
console.log(chalk.green(`[+] Successfully installed ${component}. Now go make something beautiful.`));
|
|
39
39
|
} catch (error) {
|
|
40
40
|
spinner.stop();
|
|
41
|
-
console.error(chalk.red(`Failed to install ${component}. The internet might be having a bad day.`));
|
|
42
|
-
console.log(chalk.dim("Try again, or check your network connection."));
|
|
41
|
+
console.error(chalk.red(`[!] Failed to install ${component}. The internet might be having a bad day.`));
|
|
42
|
+
console.log(chalk.dim("[?] Try again, or check your network connection."));
|
|
43
43
|
process.exit(1);
|
|
44
44
|
}
|
|
45
45
|
});
|
|
46
46
|
program.command("list").description("List all available components").action(() => {
|
|
47
|
-
console.log(chalk.bold("\
|
|
48
|
-
console.log(chalk.dim("Modern, polished components that make users actually want to interact.\n"));
|
|
47
|
+
console.log(chalk.bold("\n<<< ZeroZeeker UI Components >>>\n"));
|
|
48
|
+
console.log(chalk.dim("/// Modern, polished components that make users actually want to interact.\n"));
|
|
49
49
|
const descriptions = {
|
|
50
50
|
"rainbow-button": "Animated rainbow gradient border - for when one color just will not cut it",
|
|
51
51
|
"shimmer-button": "Moving border glow effect - subtle flex, maximum impact",
|
|
@@ -55,11 +55,11 @@ program.command("list").description("List all available components").action(() =
|
|
|
55
55
|
"circle-reveal-button": "Icon to pill expansion - the element of surprise"
|
|
56
56
|
};
|
|
57
57
|
COMPONENTS.filter((c) => c !== "index").forEach((component) => {
|
|
58
|
-
console.log(chalk.cyan(` ${component}`));
|
|
59
|
-
console.log(chalk.dim(`
|
|
58
|
+
console.log(chalk.cyan(` [>] ${component}`));
|
|
59
|
+
console.log(chalk.dim(` |__ ${descriptions[component]}
|
|
60
60
|
`));
|
|
61
61
|
});
|
|
62
|
-
console.log(chalk.dim("Install any component with: ") + chalk.white("npx zerozeeker add <component>"));
|
|
63
|
-
console.log(chalk.dim("More components coming soon. Ship fast. Look good doing it.\n"));
|
|
62
|
+
console.log(chalk.dim(">>> Install any component with: ") + chalk.white("npx zerozeeker add <component>"));
|
|
63
|
+
console.log(chalk.dim("/// More components coming soon. Ship fast. Look good doing it.\n"));
|
|
64
64
|
});
|
|
65
65
|
program.parse();
|