build: minor fixes (#344)
This commit is contained in:
1 parent
463a8a42a8
commit
cf5be76064
11 files changed
+25
-19
No files matched your search
@@ -2,7 +2,7 @@ import { join } from "std/path/mod.ts";
|
||||
|
||||
import { REPO_ROOT } from "@/deps.ts";
|
||||
import { updateFile } from "@/generate/utils.ts";
|
||||
import { UserStylesSchema } from "@/types/mod.d.ts";
|
||||
import { UserStylesSchema } from "@/types/mod.ts";
|
||||
import { stringify } from "std/yaml/stringify.ts";
|
||||
import palette from "https://raw.githubusercontent.com/catppuccin/palette/v0.2.0/palette-porcelain.json" assert {
|
||||
type: "json",
|
||||
|
||||
@@ -1,8 +1,7 @@
|
||||
#!/usr/bin/env -S deno run -A
|
||||
import { join } from "std/path/mod.ts";
|
||||
|
||||
import { portsSchema, REPO_ROOT, userStylesSchema } from "@/deps.ts";
|
||||
import type { PortsSchema, UserStylesSchema } from "@/types/mod.d.ts";
|
||||
import type { PortsSchema, UserStylesSchema } from "@/types/mod.ts";
|
||||
|
||||
import { syncIssueLabels } from "@/generate/labels.ts";
|
||||
import { generateMainReadme } from "@/generate/readme-repo.ts";
|
||||
|
||||
@@ -2,7 +2,7 @@ import { join } from "std/path/mod.ts";
|
||||
import Handlebars from "handlebars";
|
||||
|
||||
import { REPO_ROOT } from "@/deps.ts";
|
||||
import { PortsSchema, UserStylesSchema } from "@/types/mod.d.ts";
|
||||
import { PortsSchema, UserStylesSchema } from "@/types/mod.ts";
|
||||
import { updateFile, updateReadme } from "@/generate/utils.ts";
|
||||
|
||||
type MappedPorts = {
|
||||
|
||||
@@ -1,8 +1,18 @@
|
||||
import { UserStylesSchema } from "@/types/mod.d.ts";
|
||||
import { UserStylesSchema } from "@/types/mod.ts";
|
||||
import { join } from "std/path/mod.ts";
|
||||
import { REPO_ROOT } from "@/deps.ts";
|
||||
import Handlebars from "handlebars";
|
||||
|
||||
// we can have some nice things :)
|
||||
Handlebars.registerHelper(
|
||||
"pluralize",
|
||||
(c: number | unknown[], str: string): string => {
|
||||
if (typeof c === "undefined") return str;
|
||||
const num = Array.isArray(c) ? c.length : c;
|
||||
return num === 1 ? str : `${str}s`;
|
||||
},
|
||||
);
|
||||
|
||||
const heading = (
|
||||
name: UserStylesSchema.Name,
|
||||
link: UserStylesSchema.ApplicationLink,
|
||||
|
||||
@@ -49,13 +49,13 @@
|
||||
{{/each}}
|
||||
{{/if}}
|
||||
|
||||
## 💝 Current Maintainer(s)
|
||||
## 💝 Current {{pluralize collaborators.currentMaintainers 'Maintainer'}}
|
||||
{{#each collaborators.currentMaintainers}}
|
||||
- [{{name}}]({{url}})
|
||||
{{/each}}
|
||||
|
||||
{{#if collaborators.pastMaintainers}}
|
||||
## 💝 Past Maintainer(s)
|
||||
## 💖 Past {{pluralize collaborators.pastMaintainers 'Maintainer'}}
|
||||
{{#each collaborators.pastMaintainers}}
|
||||
- [{{name}}]({{url}})
|
||||
{{/each}}
|
||||
|
||||
Reference in new issue
Block a user