lucide/scripts
Eric Fennis 831740411f
feat(metadata|docs): reusable tag groups with $group: (#5037)
* feat(metadata): reusable tag groups with `$group:`

A `$group:<group-name>` marker in `tags` is replaced in place with the tags of
`groups/<group-name>.json`: a small set of tags for what a variant suffix
means, such as `-minus` → remove, delete.

- Read groups in `readGroups` and resolve markers next to `$extends:`,
  failing on unknown groups and on `$group:` outside `tags`
- Add `group.schema.json` and lint, spell-check and format `groups/*.json`
- `pnpm checkIcons` also fails on literals a group already provides, and
  warns about icons that list a group's tags by hand and unused groups
- Add the `minus`, `plus` and `x` groups and use them in
  `alarm-clock-minus`, `file-minus`, `file-plus` and `file-x`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix group checker

* Apply batched suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat(metadata): reusable tag groups with `$group:`

A `$group:<group-name>` marker in `tags` is replaced in place with the tags of
`groups/<group-name>.json`: a small set of tags for what a variant suffix
means, such as `-minus` → remove, delete.

- Read groups in `readGroups` and resolve markers next to `$extends:`,
  failing on unknown groups and on `$group:` outside `tags`
- Add `group.schema.json` and lint, spell-check and format `groups/*.json`
- `pnpm checkIcons` also fails on literals a group already provides, and
  warns about icons that list a group's tags by hand and unused groups
- Add the `minus`, `plus` and `x` groups and use them in
  `alarm-clock-minus`, `file-minus`, `file-plus` and `file-x`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix group checker

* Apply batched suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat(metadata): reusable tag groups with `$group:`

A `$group:<group-name>` marker in `tags` is replaced in place with the tags of
`groups/<group-name>.json`: a small set of tags for what a variant suffix
means, such as `-minus` → remove, delete.

- Read groups in `readGroups` and resolve markers next to `$extends:`,
  failing on unknown groups and on `$group:` outside `tags`
- Add `group.schema.json` and lint, spell-check and format `groups/*.json`
- `pnpm checkIcons` also fails on literals a group already provides, and
  warns about icons that list a group's tags by hand and unused groups
- Add the `minus`, `plus` and `x` groups and use them in
  `alarm-clock-minus`, `file-minus`, `file-plus` and `file-x`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix group checker

* Apply batched suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

* feat(metadata): reusable tag groups with `$group:`

A `$group:<group-name>` marker in `tags` is replaced in place with the tags of
`groups/<group-name>.json`: a small set of tags for what a variant suffix
means, such as `-minus` → remove, delete.

- Read groups in `readGroups` and resolve markers next to `$extends:`,
  failing on unknown groups and on `$group:` outside `tags`
- Add `group.schema.json` and lint, spell-check and format `groups/*.json`
- `pnpm checkIcons` also fails on literals a group already provides, and
  warns about icons that list a group's tags by hand and unused groups
- Add the `minus`, `plus` and `x` groups and use them in
  `alarm-clock-minus`, `file-minus`, `file-plus` and `file-x`

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>

* Fix group checker

* Apply batched suggestions from code review

Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>

---------

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com>
2026-10-29 17:29:58 +01:00
..
eslint ci(lint): split lint jobs and annotate Prettier and JSON schema errors in PRs (#4982) 2026-10-09 11:30:00 +02:00
generate chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
rename chore(dev): upgrade ESLint to latest compatible stack (v10) (#4378) 2026-08-18 13:09:22 +02:00
render chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
addMissingIconJsonFiles.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
checkIconsAndCategories.mts feat(metadata|docs): reusable tag groups with $group: (#5037) 2026-10-29 17:29:58 +01:00
checkLabIcons.mts feat(lab): Migrate lab to main repo. (#4521) 2026-07-24 15:05:40 +02:00
generateNextJSAliases.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
generatePullRequestTitle.mts ci(icon-preview): move icon preview into a composite action on pull_request_target (#5064) 2026-10-26 08:13:27 +01:00
generatePullRequestTitle.test.mts feat(ci): auto-generate PR titles from added file paths (#4790) 2026-10-15 17:17:01 +02:00
githubApi.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
lintFilenames.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
lintFormat.mts ci(lint): split lint jobs and annotate Prettier and JSON schema errors in PRs (#4982) 2026-10-09 11:30:00 +02:00
lintSpelling.mts feat(metadata|docs): reusable tag groups with $group: (#5037) 2026-10-29 17:29:58 +01:00
optimizeStagedSvgs.mts fix(scripts): correct import extension in optimizeStagedSvgs.mts (#4185) 2026-03-24 09:08:14 +01:00
optimizeSvgs.mts chore(scripts): Refactor scripts to typescript (#3316) 2025-06-18 15:47:24 +02:00
updateContributors.mts chore(dev): upgrade ESLint to latest compatible stack (v10) (#4378) 2026-08-18 13:09:22 +02:00
updateGuidelineIcons.mts Potential fix for code scanning alert no. 31: Inefficient regular expression (#4723) 2026-08-19 09:36:16 +02:00
updateSponsors.mts chore(packages): Update sponsors (#5034) 2026-10-21 11:20:37 +02:00