@ooneex/cli 1.43.0 → 1.44.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.
package/dist/index.js CHANGED
@@ -10826,6 +10826,15 @@ var biome_jsonc_default = `{
10826
10826
  "unsafeParameterDecoratorsEnabled": true
10827
10827
  }
10828
10828
  },
10829
+ "css": {
10830
+ "parser": {
10831
+ "cssModules": true,
10832
+ "tailwindDirectives": true
10833
+ },
10834
+ "linter": {
10835
+ "enabled": true
10836
+ }
10837
+ },
10829
10838
  "assist": {
10830
10839
  "enabled": true,
10831
10840
  "actions": {
@@ -16326,12 +16335,18 @@ class AppInitCommand {
16326
16335
  "nx",
16327
16336
  "typescript",
16328
16337
  "undici-types"
16329
- ], { cwd: destination, stdout: "ignore", stderr: "inherit" });
16338
+ ], { cwd: destination, stdout: "ignore", stderr: "ignore" });
16339
+ const devDepsSpinner = silent ? null : createSpinner("Installing dev dependencies...");
16330
16340
  await addDevDeps.exited;
16331
- const gitInit = Bun.spawn(["git", "init"], { cwd: destination, stdout: "ignore", stderr: "inherit" });
16341
+ devDepsSpinner?.stop();
16342
+ const gitSpinner = silent ? null : createSpinner("Initializing git repository...");
16343
+ const gitInit = Bun.spawn(["git", "init"], { cwd: destination, stdout: "ignore", stderr: "ignore" });
16332
16344
  await gitInit.exited;
16333
- const huskyInit = Bun.spawn(["bunx", "husky", "init"], { cwd: destination, stdout: "ignore", stderr: "inherit" });
16345
+ gitSpinner?.stop();
16346
+ const huskySpinner = silent ? null : createSpinner("Configuring husky...");
16347
+ const huskyInit = Bun.spawn(["bunx", "husky", "init"], { cwd: destination, stdout: "ignore", stderr: "ignore" });
16334
16348
  await huskyInit.exited;
16349
+ huskySpinner?.stop();
16335
16350
  await Bun.write(join7(destination, ".husky", "pre-commit"), "lint-staged");
16336
16351
  await Bun.write(join7(destination, ".husky", "commit-msg"), `bunx commitlint --edit "$1"`);
16337
16352
  const runClaudeSkills = await askConfirm({ message: "Add Claude skills?", initial: true });
@@ -16430,14 +16445,18 @@ class AppCreateCommand {
16430
16445
  "apache-arrow",
16431
16446
  "reflect-metadata",
16432
16447
  "typeorm@^1.0.0"
16433
- ], { cwd: destination, stdout: "ignore", stderr: "inherit" });
16448
+ ], { cwd: destination, stdout: "ignore", stderr: "ignore" });
16449
+ const depsSpinner = createSpinner("Installing dependencies...");
16434
16450
  await addDeps.exited;
16451
+ depsSpinner.stop();
16452
+ const devDepsSpinner = createSpinner("Installing dev dependencies...");
16435
16453
  const addDevDeps = Bun.spawn(["bun", "add", "-D", "@ooneex/command", "@ooneex/migrations", "@ooneex/seeds"], {
16436
16454
  cwd: destination,
16437
16455
  stdout: "ignore",
16438
- stderr: "inherit"
16456
+ stderr: "ignore"
16439
16457
  });
16440
16458
  await addDevDeps.exited;
16459
+ devDepsSpinner.stop();
16441
16460
  const rootPackagePath = join8(destination, "package.json");
16442
16461
  const rootPackage = await Bun.file(rootPackagePath).json();
16443
16462
  const templatePackage = JSON.parse(package_json_default.replace(/{{NAME}}/g, kebabName));
@@ -17447,12 +17466,14 @@ class ControllerCreateCommand {
17447
17466
  const deps = packageJson.dependencies ?? {};
17448
17467
  const devDeps = packageJson.devDependencies ?? {};
17449
17468
  if (!deps["@ooneex/controller"] && !devDeps["@ooneex/controller"]) {
17469
+ const spinner = createSpinner("Installing @ooneex/controller...");
17450
17470
  const install = Bun.spawn(["bun", "add", "@ooneex/controller"], {
17451
17471
  cwd: process.cwd(),
17452
17472
  stdout: "ignore",
17453
- stderr: "inherit"
17473
+ stderr: "ignore"
17454
17474
  });
17455
17475
  await install.exited;
17476
+ spinner.stop();
17456
17477
  }
17457
17478
  }
17458
17479
  }
@@ -17727,12 +17748,14 @@ class DatabaseCreateCommand {
17727
17748
  const deps = packageJson.dependencies ?? {};
17728
17749
  const devDeps = packageJson.devDependencies ?? {};
17729
17750
  if (!deps["@ooneex/database"] && !devDeps["@ooneex/database"]) {
17751
+ const spinner = createSpinner("Installing @ooneex/database...");
17730
17752
  const install = Bun.spawn(["bun", "add", "@ooneex/database"], {
17731
17753
  cwd: process.cwd(),
17732
17754
  stdout: "ignore",
17733
- stderr: "inherit"
17755
+ stderr: "ignore"
17734
17756
  });
17735
17757
  await install.exited;
17758
+ spinner.stop();
17736
17759
  }
17737
17760
  }
17738
17761
  }
@@ -17777,22 +17800,28 @@ class DesignCreateCommand {
17777
17800
  }
17778
17801
  const tmpDir = join16(tmpdir(), `ooneex-design-${kebabName}`);
17779
17802
  await rm(tmpDir, { recursive: true, force: true });
17803
+ const cloneSpinner = silent ? null : createSpinner("Cloning design source...");
17780
17804
  const clone = Bun.spawn(["git", "clone", "--depth", "1", DESIGN_REPOSITORY, tmpDir], {
17781
17805
  stdout: "ignore",
17782
- stderr: "inherit"
17806
+ stderr: "ignore"
17783
17807
  });
17784
17808
  await clone.exited;
17809
+ cloneSpinner?.stop();
17785
17810
  await cp(join16(tmpDir, "src"), srcDir, { recursive: true });
17786
17811
  const designPackage = await Bun.file(join16(tmpDir, "package.json")).json();
17787
17812
  const deps = Object.entries(designPackage.dependencies ?? {}).map(([dep, version]) => `${dep}@${version}`);
17788
17813
  const devDeps = Object.entries(designPackage.devDependencies ?? {}).map(([dep, version]) => `${dep}@${version}`);
17789
17814
  if (deps.length > 0) {
17790
- const addDeps = Bun.spawn(["bun", "add", ...deps], { cwd, stdout: "ignore", stderr: "inherit" });
17815
+ const depsSpinner = silent ? null : createSpinner("Installing design dependencies...");
17816
+ const addDeps = Bun.spawn(["bun", "add", ...deps], { cwd, stdout: "ignore", stderr: "ignore" });
17791
17817
  await addDeps.exited;
17818
+ depsSpinner?.stop();
17792
17819
  }
17793
17820
  if (devDeps.length > 0) {
17794
- const addDevDeps = Bun.spawn(["bun", "add", "-D", ...devDeps], { cwd, stdout: "ignore", stderr: "inherit" });
17821
+ const devDepsSpinner = silent ? null : createSpinner("Installing design dev dependencies...");
17822
+ const addDevDeps = Bun.spawn(["bun", "add", "-D", ...devDeps], { cwd, stdout: "ignore", stderr: "ignore" });
17795
17823
  await addDevDeps.exited;
17824
+ devDepsSpinner?.stop();
17796
17825
  }
17797
17826
  await rm(tmpDir, { recursive: true, force: true });
17798
17827
  if (!silent) {
@@ -99324,12 +99353,14 @@ class MailerCreateCommand {
99324
99353
  const deps = packageJson.dependencies ?? {};
99325
99354
  const devDeps = packageJson.devDependencies ?? {};
99326
99355
  if (!deps["@ooneex/mailer"] && !devDeps["@ooneex/mailer"]) {
99356
+ const spinner = createSpinner("Installing @ooneex/mailer...");
99327
99357
  const install = Bun.spawn(["bun", "add", "@ooneex/mailer"], {
99328
99358
  cwd: process.cwd(),
99329
99359
  stdout: "ignore",
99330
- stderr: "inherit"
99360
+ stderr: "ignore"
99331
99361
  });
99332
99362
  await install.exited;
99363
+ spinner.stop();
99333
99364
  }
99334
99365
  }
99335
99366
  }
@@ -100509,12 +100540,14 @@ class RepositoryCreateCommand {
100509
100540
  const deps = packageJson.dependencies ?? {};
100510
100541
  const devDeps = packageJson.devDependencies ?? {};
100511
100542
  if (!deps["@ooneex/repository"] && !devDeps["@ooneex/repository"]) {
100543
+ const spinner = createSpinner("Installing @ooneex/repository...");
100512
100544
  const install = Bun.spawn(["bun", "add", "@ooneex/repository"], {
100513
100545
  cwd: process.cwd(),
100514
100546
  stdout: "ignore",
100515
- stderr: "inherit"
100547
+ stderr: "ignore"
100516
100548
  });
100517
100549
  await install.exited;
100550
+ spinner.stop();
100518
100551
  }
100519
100552
  }
100520
100553
  }
@@ -100737,19 +100770,23 @@ ${members}
100737
100770
  `;
100738
100771
  await Bun.write(join31(sdkSrcDir, "index.ts"), indexContent);
100739
100772
  if (generated.length > 0) {
100773
+ const depSpinner = silent ? null : createSpinner("Installing @ooneex/http-response...");
100740
100774
  const addDep = Bun.spawn(["bun", "add", "@ooneex/http-response"], {
100741
100775
  cwd: sdkDir,
100742
100776
  stdout: "ignore",
100743
- stderr: "inherit"
100777
+ stderr: "ignore"
100744
100778
  });
100745
100779
  await addDep.exited;
100780
+ depSpinner?.stop();
100746
100781
  }
100782
+ const installSpinner = silent ? null : createSpinner("Installing bunup...");
100747
100783
  const install = Bun.spawn(["bun", "add", "-D", "bunup"], {
100748
100784
  cwd: sdkDir,
100749
100785
  stdout: "ignore",
100750
- stderr: "inherit"
100786
+ stderr: "ignore"
100751
100787
  });
100752
100788
  await install.exited;
100789
+ installSpinner?.stop();
100753
100790
  if (!silent) {
100754
100791
  logger.success(`modules/sdk generated with ${generated.length} module(s)`, undefined, LOG_OPTIONS);
100755
100792
  }
@@ -101139,4 +101176,4 @@ VectorDatabaseCreateCommand = __legacyDecorateClassTS([
101139
101176
  // src/index.ts
101140
101177
  await run();
101141
101178
 
101142
- //# debugId=733D32D3A2C4886364756E2164756E21
101179
+ //# debugId=DC8D85116027E7EB64756E2164756E21