pui-inject 0.1.3 → 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.
Files changed (2) hide show
  1. package/bin/pui-inject.js +28 -5
  2. package/package.json +14 -4
package/bin/pui-inject.js CHANGED
@@ -1,4 +1,4 @@
1
- #!/usr/bin/env node
1
+ #!/usr/bin/env node
2
2
 
3
3
  import axios from "axios";
4
4
  import fs from "fs-extra";
@@ -68,10 +68,33 @@ async function run() {
68
68
  }
69
69
  }
70
70
 
71
- console.log(
72
- chalk.green(`\n✔ ${componentName} successfully added to:`),
73
- chalk.cyan(`lib/components/${componentName}`)
74
- );
71
+ spinner.succeed("Component injected successfully");
72
+ await new Promise(res => setTimeout(res, 300));
73
+
74
+ console.log(`
75
+ ${chalk.hex("#7CFFB2").bold("╭──────────────────────────────────────────────╮")}
76
+ ${chalk.hex("#7CFFB2").bold("│")} ${chalk.hex("#7CFFB2").bold("│")}
77
+ ${chalk.hex("#7CFFB2").bold("│")} ${chalk.bold("✨ PUI Inject — Component Ready ✨")} ${chalk.hex("#7CFFB2").bold("│")}
78
+ ${chalk.hex("#7CFFB2").bold("│")} ${chalk.hex("#7CFFB2").bold("│")}
79
+ ${chalk.hex("#7CFFB2").bold("╰──────────────────────────────────────────────╯")}
80
+
81
+ ${chalk.cyan("Component")}
82
+ ${chalk.bold(componentName)}
83
+
84
+ ${chalk.cyan("Injected Into")}
85
+ lib/components/${componentName}
86
+
87
+ ${chalk.cyan("Files Added")}
88
+ ${files.map(f => ` ${chalk.green("✔")} ${f}`).join("\n")}
89
+
90
+ ${chalk.gray("──────────────────────────────────────────────")}
91
+
92
+ ${chalk.yellow("Next Steps")}
93
+ 1. Import the widget into your screen
94
+ 2. Customize layout & theme
95
+ 3. Ship faster 🚀
96
+ `);
97
+
75
98
  } catch (error) {
76
99
  spinner.fail("Failed to fetch registry");
77
100
  console.error(error.message);
package/package.json CHANGED
@@ -1,15 +1,25 @@
1
1
  {
2
2
  "name": "pui-inject",
3
- "version": "0.1.3",
3
+ "version": "0.1.7",
4
4
  "bin": {
5
5
  "pui-inject": "bin/pui-inject.js"
6
6
  },
7
7
  "type": "module",
8
- "files": ["bin"],
9
- "keywords": ["flutter", "ui", "cli", "components"],
8
+ "files": [
9
+ "bin"
10
+ ],
11
+ "keywords": [
12
+ "flutter",
13
+ "ui",
14
+ "cli",
15
+ "components"
16
+ ],
10
17
  "author": "Komal Rastogi",
11
18
  "license": "MIT",
12
19
  "dependencies": {
13
- "axios": "^1.6.0"
20
+ "axios": "^1.6.0",
21
+ "fs-extra": "^11.3.0",
22
+ "chalk": "^5.6.2",
23
+ "ora": "^9.0.0"
14
24
  }
15
25
  }