unictive-angular 1.0.12 → 1.0.13

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/README.md CHANGED
@@ -91,11 +91,11 @@ src/app/
91
91
 
92
92
  - **Node.js** (>= 16)
93
93
  - **npm** (>= 8)
94
- - **Angular CLI** (jika belum ada, akan otomatis diinstall)
94
+ - **Angular CLI** (>=18 jika belum ada, akan otomatis diinstall)
95
95
 
96
96
  ---
97
97
 
98
- ## 💡 Jalankan Proyek
98
+ ## 💡 Jalankan Project yang sudah di generate
99
99
 
100
100
  ```bash
101
101
  cd nama-project && ng serve
package/bin/index.js CHANGED
@@ -34,25 +34,26 @@ if (process.argv.includes("-v") || process.argv.includes("--version")) {
34
34
 
35
35
 
36
36
  // ===================== Notifikasi Update =====================
37
- // const notifier = updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 6 });
38
- const notifier = updateNotifier({ pkg, updateCheckInterval: 0 });
37
+ const notifier = updateNotifier({ pkg, updateCheckInterval: 1000 * 60 * 60 * 6 });
38
+ // const notifier = updateNotifier({ pkg, updateCheckInterval: 0 });
39
39
 
40
40
  if (notifier.update) {
41
- console.log(`
42
- ${chalk.yellow('⚠ Update tersedia untuk unictive-angular CLI ini!')}
43
- ${chalk.gray('Versi lokal ')} : ${chalk.red(notifier.update.current)}
44
- ${chalk.gray('Versi terbaru')} : ${chalk.green(notifier.update.latest)}
45
-
46
- ${chalk.gray('Jalankan perintah berikut untuk update:')}
47
- ${chalk.cyan(`npm i -g ${pkg.name}`)}
48
-
49
- ${chalk.gray('Catatan: Versi terbaru ini mungkin berisi fitur tambahan dan perbaikan bug.')}
50
- `);
41
+ console.log(chalk.yellow(`
42
+ ┌───────────────────────────────────────────────────────────────┐
43
+ │ ⚠ Update tersedia untuk unictive-angular CLI ini! │
44
+ ├───────────────────────────────────────────────────────────────┤
45
+ │ Versi lokal : ${chalk.red(notifier.update.current)} │
46
+ │ Versi terbaru : ${chalk.green(notifier.update.latest)} │
47
+ │ │
48
+ │ Jalankan perintah berikut untuk update: │
49
+ │ ${chalk.cyan(`npm i -g ${pkg.name}`)} │
50
+ │ │
51
+ │ Catatan: Versi terbaru mungkin berisi fitur baru │
52
+ │ dan perbaikan bug. │
53
+ └───────────────────────────────────────────────────────────────┘
54
+ `));
51
55
  }
52
56
 
53
- // console.log(`${chalk.yellow('⚠ Update tersedia untuk unictive-angular CLI ini!')}
54
- // ${chalk.red(notifier.update)}
55
- // `);
56
57
 
57
58
  // ===================== Utility =====================
58
59
  const sleep = (ms) => new Promise((res) => setTimeout(res, ms));
package/bin/utils/auth.js CHANGED
@@ -69,7 +69,7 @@ async function login() {
69
69
  process.exit(1);
70
70
  }
71
71
 
72
- const input = await askPassword("Masukkan password: ");
72
+ const input = await askPassword("Harap login terlebih dahulu. (Masukkan password): ");
73
73
  if (input !== correctPassword) {
74
74
  console.error("❌ Password salah. Akses ditolak!");
75
75
  process.exit(1);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "unictive-angular",
3
- "version": "1.0.12",
3
+ "version": "1.0.13",
4
4
  "description": "CLI untuk membuat project Angular dengan struktur kustom (Modules, Core, API, Shared).",
5
5
  "scripts": {
6
6
  "build": "npm version patch && npm publish --access public"