@lukoweb/apitogo 0.1.84 → 0.1.85

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 +20 -12
  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.84",
5636
+ version: "0.1.85",
5637
5637
  type: "module",
5638
5638
  sideEffects: [
5639
5639
  "**/*.css",
@@ -11278,9 +11278,25 @@ 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, copyFile, mkdir as mkdir6, readFile as readFile4, writeFile as writeFile6 } from "node:fs/promises";
11281
+ import { access as access2, 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
+
11285
+ // src/cli/make-config/branding-assets.ts
11286
+ var BRANDING_ASSETS = [
11287
+ {
11288
+ name: "logo-light.svg",
11289
+ content: `<svg xmlns="http://www.w3.org/2000/svg" width="120" height="24" fill="none" viewBox="0 0 120 24"><g fill="#000"><path fill-rule="evenodd" d="M19.064 1.116A1.754 1.754 0 0 1 20.7 0h6.018c2.372 0 4.063 2.3 3.356 4.564l-1.939 6.203A1.758 1.758 0 0 1 26.459 12H18c-1.243 0-1.875 1.125-2.25 2.25-.291.873-2.39 6.265-3.314 8.634A1.754 1.754 0 0 1 10.8 24H4.782c-2.372 0-4.063-2.3-3.356-4.564l1.939-6.203A1.758 1.758 0 0 1 5.042 12H13.5c1.243 0 1.875-1.125 2.25-2.25.291-.873 2.39-6.265 3.314-8.634Z" clip-rule="evenodd"/><path d="M20.05 13.875c-.782 0-1.481.485-1.756 1.217l-2.747 7.325A1.172 1.172 0 0 0 16.645 24h7.06a4.688 4.688 0 0 0 4.39-3.042l1.171-3.125c.718-1.915-.697-3.958-2.743-3.958H20.05ZM8.17 0a4.688 4.688 0 0 0-4.389 3.042L2.61 6.167c-.718 1.915.698 3.958 2.743 3.958h6.473c.782 0 1.482-.485 1.756-1.217l2.747-7.325A1.172 1.172 0 0 0 15.231 0H8.17ZM37.2 18.436v-3.03l5.793-6.518-.027-.027c-.536.054-.59.054-1.153.054h-4.506V5.83h10.058v3.03l-5.82 6.518.027.026c.536-.053.616-.053 1.18-.053h4.666v3.084H37.2ZM55.222 18.731c-3.863-.027-5.981-2.44-5.981-5.847V5.831h3.7v6.785c0 1.77.779 2.87 2.28 2.897 1.637.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.034 5.82ZM85.19 18.731c-3.997 0-6.813-2.843-6.813-6.598s2.816-6.597 6.812-6.597c3.996 0 6.813 2.842 6.813 6.597 0 3.755-2.817 6.598-6.813 6.598Zm0-3.192c1.85 0 3.164-1.394 3.164-3.406 0-2.011-1.314-3.406-3.165-3.406-1.85 0-3.165 1.395-3.165 3.406 0 2.012 1.315 3.407 3.165 3.407ZM101.626 18.436l-4.292-6.92v6.92h-3.7V.145h3.7v10.54l4.023-4.854h4.292l-4.533 5.203 4.801 7.402h-4.291ZM113.02 18.731c-3.862-.027-5.981-2.44-5.981-5.847V5.831h3.702v6.785c0 1.77.777 2.87 2.279 2.897 1.636.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.035 5.82Z"/><path fill-rule="evenodd" d="M76.74.12h-3.922v5.975a7.44 7.44 0 0 0-2.891-.56c-3.996 0-6.813 2.843-6.813 6.598s2.817 6.598 6.813 6.598c3.958 0 6.759-2.79 6.811-6.492h.001V.12Zm-3.648 12.013c0 2.012-1.314 3.407-3.165 3.407-1.85 0-3.165-1.395-3.165-3.407 0-2.011 1.314-3.406 3.165-3.406 1.85 0 3.165 1.395 3.165 3.406Z" clip-rule="evenodd"/></g></svg>
11290
+ `
11291
+ },
11292
+ {
11293
+ name: "logo-dark.svg",
11294
+ content: `<svg xmlns="http://www.w3.org/2000/svg" width="120" height="24" fill="none" viewBox="0 0 120 24"><g fill="#fff"><path fill-rule="evenodd" d="M19.064 1.116A1.754 1.754 0 0 1 20.7 0h6.018c2.372 0 4.063 2.3 3.356 4.564l-1.939 6.203A1.758 1.758 0 0 1 26.459 12H18c-1.243 0-1.875 1.125-2.25 2.25-.291.873-2.39 6.265-3.314 8.634A1.754 1.754 0 0 1 10.8 24H4.782c-2.372 0-4.063-2.3-3.356-4.564l1.939-6.203A1.758 1.758 0 0 1 5.042 12H13.5c1.243 0 1.875-1.125 2.25-2.25.291-.873 2.39-6.265 3.314-8.634Z" clip-rule="evenodd"/><path d="M20.05 13.875c-.782 0-1.481.485-1.756 1.217l-2.747 7.325A1.172 1.172 0 0 0 16.645 24h7.06a4.688 4.688 0 0 0 4.39-3.042l1.171-3.125c.718-1.915-.697-3.958-2.743-3.958H20.05ZM8.17 0a4.688 4.688 0 0 0-4.389 3.042L2.61 6.167c-.718 1.915.698 3.958 2.743 3.958h6.473c.782 0 1.482-.485 1.756-1.217l2.747-7.325A1.172 1.172 0 0 0 15.231 0H8.17ZM37.2 18.436v-3.03l5.793-6.518-.027-.027c-.536.054-.59.054-1.153.054h-4.506V5.83h10.058v3.03l-5.82 6.518.027.026c.536-.053.616-.053 1.18-.053h4.666v3.084H37.2ZM55.222 18.731c-3.863-.027-5.981-2.44-5.981-5.847V5.831h3.7v6.785c0 1.77.779 2.87 2.28 2.897 1.637.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.034 5.82ZM85.19 18.731c-3.997 0-6.813-2.843-6.813-6.598s2.816-6.597 6.812-6.597c3.996 0 6.813 2.842 6.813 6.597 0 3.755-2.817 6.598-6.813 6.598Zm0-3.192c1.85 0 3.164-1.394 3.164-3.406 0-2.011-1.314-3.406-3.165-3.406-1.85 0-3.165 1.395-3.165 3.406 0 2.012 1.315 3.407 3.165 3.407ZM101.626 18.436l-4.292-6.92v6.92h-3.7V.145h3.7v10.54l4.023-4.854h4.292l-4.533 5.203 4.801 7.402h-4.291ZM113.02 18.731c-3.862-.027-5.981-2.44-5.981-5.847V5.831h3.702v6.785c0 1.77.777 2.87 2.279 2.897 1.636.027 2.334-1.073 2.334-2.87V5.83h3.701v7.08c0 3.245-2.494 5.847-6.035 5.82Z"/><path fill-rule="evenodd" d="M76.74.12h-3.922v5.975a7.44 7.44 0 0 0-2.891-.56c-3.996 0-6.813 2.843-6.813 6.598s2.817 6.598 6.813 6.598c3.958 0 6.759-2.79 6.811-6.492h.001V.12Zm-3.648 12.013c0 2.012-1.314 3.407-3.165 3.407-1.85 0-3.165-1.395-3.165-3.407 0-2.011 1.314-3.406 3.165-3.406 1.85 0 3.165 1.395 3.165 3.406Z" clip-rule="evenodd"/></g></svg>
11295
+ `
11296
+ }
11297
+ ];
11298
+
11299
+ // src/cli/make-config/scaffold-project.ts
11284
11300
  var OPENAPI_GLOBS = [
11285
11301
  "apis/openapi.json",
11286
11302
  "apis/openapi.yaml",
@@ -11485,23 +11501,15 @@ async function ensurePortalStubFiles(dir) {
11485
11501
  }
11486
11502
  await ensurePublicBrandingFiles(dir);
11487
11503
  }
11488
- var BRANDING_ASSETS = ["logo-light.svg", "logo-dark.svg"];
11489
11504
  async function ensurePublicBrandingFiles(dir) {
11490
11505
  const destDir = path35.join(dir, "public");
11491
11506
  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) {
11507
+ for (const { name, content } of BRANDING_ASSETS) {
11500
11508
  const dest = path35.join(destDir, name);
11501
11509
  if (await fileExists2(dest)) {
11502
11510
  continue;
11503
11511
  }
11504
- await copyFile(path35.join(srcDir, name), dest);
11512
+ await writeFile6(dest, content, "utf8");
11505
11513
  }
11506
11514
  }
11507
11515
  async function ensureThinConfigTsx(dir) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lukoweb/apitogo",
3
- "version": "0.1.84",
3
+ "version": "0.1.85",
4
4
  "type": "module",
5
5
  "sideEffects": [
6
6
  "**/*.css",