@lukoweb/apitogo 0.1.83 → 0.1.84

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/dist/cli/cli.js +25 -5
  2. package/package.json +1 -1
package/dist/cli/cli.js CHANGED
@@ -5633,7 +5633,7 @@ import {
5633
5633
  // package.json
5634
5634
  var package_default = {
5635
5635
  name: "@lukoweb/apitogo",
5636
- version: "0.1.83",
5636
+ version: "0.1.84",
5637
5637
  type: "module",
5638
5638
  sideEffects: [
5639
5639
  "**/*.css",
@@ -10574,7 +10574,7 @@ function createDefaultApitogoJsonConfig(options) {
10574
10574
  site: {
10575
10575
  title: options.title,
10576
10576
  logo: {
10577
- src: { light: "/logo-light.png", dark: "/logo-dark.png" },
10577
+ src: { light: "/logo-light.svg", dark: "/logo-dark.svg" },
10578
10578
  alt: "API ToGo",
10579
10579
  width: "130px"
10580
10580
  }
@@ -10586,7 +10586,7 @@ function createDefaultApitogoJsonConfig(options) {
10586
10586
  redirectToAfterSignUp: "/account/dashboard"
10587
10587
  },
10588
10588
  metadata: {
10589
- favicon: "/Icon.png"
10589
+ favicon: "/logo-light.svg"
10590
10590
  },
10591
10591
  theme: {
10592
10592
  fonts: {
@@ -11038,7 +11038,7 @@ function printPaidPlanPlatformWarning() {
11038
11038
  }
11039
11039
  function printInteractiveWrapUp(hasPaidPlans) {
11040
11040
  printDiagnosticsToConsole("");
11041
- printDiagnosticsToConsole("Configuration saved. Next steps:");
11041
+ printDiagnosticsToConsole("Configuration is done. Next steps:");
11042
11042
  printDiagnosticsToConsole("- Preview locally: npm run dev");
11043
11043
  if (hasPaidPlans) {
11044
11044
  printPaidPlanPlatformWarning();
@@ -11278,7 +11278,7 @@ export default function ${componentName}() {
11278
11278
  // src/cli/make-config/scaffold-project.ts
11279
11279
  init_package_json();
11280
11280
  import { constants } from "node:fs";
11281
- import { access as access2, mkdir as mkdir6, readFile as readFile4, writeFile as writeFile6 } from "node:fs/promises";
11281
+ import { access as access2, copyFile, mkdir as mkdir6, readFile as readFile4, writeFile as writeFile6 } from "node:fs/promises";
11282
11282
  import path35 from "node:path";
11283
11283
  import { glob as glob4 } from "glob";
11284
11284
  var OPENAPI_GLOBS = [
@@ -11483,6 +11483,26 @@ async function ensurePortalStubFiles(dir) {
11483
11483
  await mkdir6(path35.join(dir, "user-panel"), { recursive: true });
11484
11484
  await writeFile6(plansPath, ACCOUNT_PLANS_PAGE_SOURCE, "utf8");
11485
11485
  }
11486
+ await ensurePublicBrandingFiles(dir);
11487
+ }
11488
+ var BRANDING_ASSETS = ["logo-light.svg", "logo-dark.svg"];
11489
+ async function ensurePublicBrandingFiles(dir) {
11490
+ const destDir = path35.join(dir, "public");
11491
+ await mkdir6(destDir, { recursive: true });
11492
+ const srcDir = path35.join(
11493
+ getZudokuRootDir(),
11494
+ "src",
11495
+ "cli",
11496
+ "make-config",
11497
+ "public"
11498
+ );
11499
+ for (const name of BRANDING_ASSETS) {
11500
+ const dest = path35.join(destDir, name);
11501
+ if (await fileExists2(dest)) {
11502
+ continue;
11503
+ }
11504
+ await copyFile(path35.join(srcDir, name), dest);
11505
+ }
11486
11506
  }
11487
11507
  async function ensureThinConfigTsx(dir) {
11488
11508
  const tsxPath = path35.join(dir, "apitogo.config.tsx");
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.1.83",
3
+ "version": "0.1.84",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",