build: minor fixes (#344)

This commit is contained in:
winston authored and GitHub committed 2023-11-20 02:47:03 +01:00
1 parent 463a8a42a8
commit cf5be76064
11 files changed
+25 -19

No files matched your search

+1 -1
View File
@@ -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 -2
View File
@@ -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";
+1 -1
View File
@@ -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 = {
+11 -1
View File
@@ -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,
+2 -2
View File
@@ -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}}
+1 -1
View File
@@ -3,7 +3,7 @@ import { join, relative } from "std/path/mod.ts";
import core from "@actions/core";
import { REPO_ROOT } from "@/deps.ts";
import { log } from "./logger.ts";
import { log } from "@/lint/logger.ts";
import * as color from "std/fmt/colors.ts";
const requiredFiles = [
+4 -6
View File
@@ -1,17 +1,15 @@
#!/usr/bin/env -S deno run -A
import { walk } from "std/fs/walk.ts";
import { parse as parseFlags } from "std/flags/mod.ts";
import { basename, dirname, join, relative } from "std/path/mod.ts";
// @deno-types="npm:@types/less";
import less from "less";
import { REPO_ROOT } from "@/deps.ts";
import { checkForMissingFiles } from "./file-checker.ts";
import { log } from "./logger.ts";
import { verifyMetadata } from "./metadata.ts";
import { lint } from "./stylelint.ts";
import { checkForMissingFiles } from "@/lint/file-checker.ts";
import { log } from "@/lint/logger.ts";
import { verifyMetadata } from "@/lint/metadata.ts";
import { lint } from "@/lint/stylelint.ts";
const flags = parseFlags(Deno.args, { boolean: ["fix"] });
const subDir = flags._[0]?.toString() ?? "";
+1 -1
View File
@@ -1,6 +1,6 @@
// @deno-types="@/types/usercss-meta.d.ts";
import usercssMeta from "usercss-meta";
import { log } from "./logger.ts";
import { log } from "@/lint/logger.ts";
import * as color from "std/fmt/colors.ts";
import { sprintf } from "std/fmt/printf.ts";
import type { WalkEntry } from "std/fs/walk.ts";
+1 -1
View File
@@ -6,7 +6,7 @@ import stylelintConfigStandard from "npm:stylelint-config-standard";
import stylelintConfigRecommended from "npm:stylelint-config-recommended";
import postcssLess from "npm:postcss-less";
import { log } from "./logger.ts";
import { log } from "@/lint/logger.ts";
import { relative } from "https://deno.land/[email protected]/path/mod.ts";
import { REPO_ROOT } from "@/deps.ts";
import { WalkEntry } from "std/fs/walk.ts";
+1 -2
View File
@@ -1,11 +1,10 @@
#!/usr/bin/env -S deno run -A
import * as assert from "std/assert/mod.ts";
import * as path from "std/path/mod.ts";
import { Octokit } from "@octokit/rest";
import { REPO_ROOT, userStylesSchema } from "@/deps.ts";
import type { UserStylesSchema } from "../types/mod.d.ts";
import type { UserStylesSchema } from "@/types/mod.ts";
import { validateYaml } from "@/utils.ts";
import { UserstylesSchema } from "@/types/userstyles.d.ts";
@@ -1,4 +1,4 @@
export * as UserStylesSchema from "./userstyles.d.ts";
export * as UserStylesSchema from "@/types/userstyles.d.ts";
export * as PortsSchema from "catppuccin-repo/resources/generate/types.d.ts";
import { Entries } from "https://esm.sh/[email protected]";