zerozeeker 1.0.0

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.
@@ -0,0 +1 @@
1
+ #!/usr/bin/env node
package/dist/index.js ADDED
@@ -0,0 +1,61 @@
1
+ #!/usr/bin/env node
2
+
3
+ // index.ts
4
+ import { Command } from "commander";
5
+ import { execSync } from "child_process";
6
+ import ora from "ora";
7
+ import chalk from "chalk";
8
+ var REGISTRY_URL = "https://www.zerozeeker.com/r";
9
+ var COMPONENTS = [
10
+ "rainbow-button",
11
+ "shimmer-button",
12
+ "magnetic-button",
13
+ "expand-button",
14
+ "flip-button",
15
+ "circle-reveal-button",
16
+ "index"
17
+ ];
18
+ var program = new Command();
19
+ program.name("zerozeeker").description("CLI for installing ZeroZeeker UI components").version("1.0.0");
20
+ program.command("add <component>").description("Add a component from ZeroZeeker registry").action((component) => {
21
+ if (!COMPONENTS.includes(component)) {
22
+ console.error(chalk.red(`\u274C Component "${component}" not found.`));
23
+ console.log(chalk.dim("\nAvailable components:"));
24
+ COMPONENTS.filter((c) => c !== "index").forEach((c) => {
25
+ console.log(chalk.cyan(` - ${c}`));
26
+ });
27
+ process.exit(1);
28
+ }
29
+ const url = `${REGISTRY_URL}/${component}.json`;
30
+ const spinner = ora(`Installing ${chalk.cyan(component)}...`).start();
31
+ try {
32
+ execSync(`npx shadcn@latest add ${url}`, {
33
+ stdio: "inherit",
34
+ encoding: "utf-8"
35
+ });
36
+ spinner.stop();
37
+ console.log(chalk.green(`\u2705 Successfully installed ${component}!`));
38
+ } catch (error) {
39
+ spinner.stop();
40
+ console.error(chalk.red(`\u274C Failed to install ${component}`));
41
+ process.exit(1);
42
+ }
43
+ });
44
+ program.command("list").description("List all available components").action(() => {
45
+ console.log(chalk.bold("\n\u{1F4E6} Available ZeroZeeker Components:\n"));
46
+ const descriptions = {
47
+ "rainbow-button": "Animated rainbow gradient border button",
48
+ "shimmer-button": "Moving border glow effect button",
49
+ "magnetic-button": "Cursor-following magnetic button",
50
+ "expand-button": "Expanding pill button",
51
+ "flip-button": "3D flip card button",
52
+ "circle-reveal-button": "Icon to pill expansion button"
53
+ };
54
+ COMPONENTS.filter((c) => c !== "index").forEach((component) => {
55
+ console.log(chalk.cyan(` ${component}`));
56
+ console.log(chalk.dim(` ${descriptions[component]}
57
+ `));
58
+ });
59
+ console.log(chalk.dim("Install with: ") + chalk.white("npx zerozeeker add <component>\n"));
60
+ });
61
+ program.parse();
package/package.json ADDED
@@ -0,0 +1,43 @@
1
+ {
2
+ "name": "zerozeeker",
3
+ "version": "1.0.0",
4
+ "description": "CLI for installing ZeroZeeker UI components",
5
+ "type": "module",
6
+ "bin": {
7
+ "zerozeeker": "dist/index.js"
8
+ },
9
+ "files": [
10
+ "dist"
11
+ ],
12
+ "scripts": {
13
+ "build": "tsup index.ts --format esm --dts --clean",
14
+ "dev": "tsup index.ts --format esm --watch",
15
+ "prepublishOnly": "npm run build"
16
+ },
17
+ "keywords": [
18
+ "shadcn",
19
+ "components",
20
+ "ui",
21
+ "zerozeeker"
22
+ ],
23
+ "author": "ZeroZeeker",
24
+ "license": "MIT",
25
+ "dependencies": {
26
+ "commander": "^12.1.0",
27
+ "ora": "^8.0.1",
28
+ "chalk": "^5.3.0"
29
+ },
30
+ "devDependencies": {
31
+ "@types/node": "^20.11.5",
32
+ "tsup": "^8.0.1",
33
+ "typescript": "^5.3.3"
34
+ },
35
+ "engines": {
36
+ "node": ">=18.0.0"
37
+ },
38
+ "repository": {
39
+ "type": "git",
40
+ "url": "https://github.com/ZERO-DAWN-X/zero-zeeker-frontend.git",
41
+ "directory": "cli-unscoped"
42
+ }
43
+ }