Skip to content

Commit

Permalink
refactor: use handlebars, split generate script
Browse files Browse the repository at this point in the history
  • Loading branch information
nekowinston committed Nov 19, 2023
1 parent c3f013a commit 9c6b425
Show file tree
Hide file tree
Showing 24 changed files with 634 additions and 404 deletions.
55 changes: 2 additions & 53 deletions .github/ISSUE_TEMPLATE/userstyle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,59 +14,7 @@ body:
label: What userstyles are you seeing the problem on?
description: "Don't worry about the `lbl:` prefix, it allows issues to be automatically labeled!"
multiple: true
options:
[
"lbl:advent-of-code",
"lbl:anilist",
"lbl:boringproxy",
"lbl:brave-search",
"lbl:bstats",
"lbl:canvas-lms",
"lbl:chatgpt",
"lbl:chatreplay",
"lbl:chess.com",
"lbl:cinny",
"lbl:codeberg",
"lbl:crowdin",
"lbl:deepl",
"lbl:ecosia",
"lbl:elk",
"lbl:formative",
"lbl:github",
"lbl:gmail",
"lbl:hacker-news",
"lbl:homepage",
"lbl:hoppscotch",
"lbl:ichi.moe",
"lbl:instagram",
"lbl:invidious",
"lbl:invokeai",
"lbl:lastfm",
"lbl:libreddit",
"lbl:linkedin",
"lbl:mastodon",
"lbl:modrinth",
"lbl:nitter",
"lbl:nixos-search",
"lbl:nixos.wiki",
"lbl:paste.rs",
"lbl:pinterest",
"lbl:planet-minecraft",
"lbl:proton",
"lbl:quizlet",
"lbl:reddit",
"lbl:searxng",
"lbl:startpage",
"lbl:stylus",
"lbl:substack",
"lbl:syncthing",
"lbl:tutanota",
"lbl:twitch",
"lbl:vercel",
"lbl:whatsapp-web",
"lbl:wikiwand",
"lbl:youtube",
]
options: ["replaceme"]
validations:
required: true
- type: textarea
Expand All @@ -91,3 +39,4 @@ body:
attributes:
label: Any additional comments?
description: Add any information that hasn't been covered in the previous sections!
# yaml-language-server: $schema=https://json.schemastore.org/github-issue-forms.json
2 changes: 1 addition & 1 deletion .github/issue-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ twitch: ["(lbl:twitch)"]
vercel: ["(lbl:vercel)"]
whatsapp-web: ["(lbl:whatsapp-web)"]
wikiwand: ["(lbl:wikiwand)"]
youtube: ["(lbl:youtube)"]
youtube: ["(lbl:youtube)"]
2 changes: 1 addition & 1 deletion .github/labels.yml
Original file line number Diff line number Diff line change
Expand Up @@ -148,4 +148,4 @@
color: "#8aadf4"
- name: youtube
description: YouTube
color: "#8aadf4"
color: "#8aadf4"
2 changes: 1 addition & 1 deletion .github/pr-labeler.yml
Original file line number Diff line number Diff line change
Expand Up @@ -48,4 +48,4 @@ twitch: styles/twitch/**/*
vercel: styles/vercel/**/*
whatsapp-web: styles/whatsapp-web/**/*
wikiwand: styles/wikiwand/**/*
youtube: styles/youtube/**/*
youtube: styles/youtube/**/*
3 changes: 2 additions & 1 deletion deno.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
"@actions/core": "npm:@actions/[email protected]",
"@octokit/rest": "npm:@octokit/[email protected]",
"ajv": "npm:[email protected]",
"handlebars": "npm:[email protected]",
"less": "npm:[email protected]",
"usercss-meta": "npm:[email protected]"
},
Expand All @@ -14,6 +15,6 @@
"ci:sync-maintainers": "deno run -A ./scripts/sync-maintainers/main.ts",
"lint": "deno run -A ./scripts/lint/main.ts",
"lint:fix": "deno task lint --fix",
"update-types": "deno run -A 'npm:json-schema-to-typescript' ./scripts/userstyles.schema.json ./scripts/types/userstyles.d.ts"
"update-types": "deno run -A ./scripts/update-types.ts"
}
}
Loading

0 comments on commit 9c6b425

Please sign in to comment.