Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add codex/codex-icons/codex-design-tokens w/ npm auto-update #1589

Merged
merged 2 commits into from
Jul 16, 2023

Conversation

lucaswerkmeister
Copy link
Contributor

Codex is the design system for Wikimedia. Having it available on cdnjs will be useful for developers of Wikimedia-related tools who want to match the design of Wikimedia sites (see also T338834).

The unscoped codex npm package has not been updated in over ten years (and as “a simple tool for building static [websites]” probably would not be very useful on cdnjs anyways), so I hope nobody will mind using the unprefixed codex name directly for @wikimedia/codex. (There seems to be some precedent for this among existing npmjs packages too, such as angular for @angular/core or treejs for @widgetjs/tree.)

Codex [1] is the design system for Wikimedia. Having it available on
cdnjs will be useful for developers of Wikimedia-related tools who want
to match the design of Wikimedia sites (see also T338834 [2]).

The unscoped codex npm package [3] has not been updated in over ten
years (and as “a simple tool for building static [websites]” probably
would not be very useful on cdnjs anyways), so I hope nobody will mind
using the unprefixed codex name directly for @wikimedia/codex. (There
seems to be some precedent for this among existing npmjs packages too,
such as angular for @angular/core or treejs for @widgetjs/tree.)

[1]: https://www.mediawiki.org/wiki/Special:MyLanguage/Codex
[2]: https://phabricator.wikimedia.org/T338834
[3]: https://www.npmjs.com/package/codex
@lucaswerkmeister
Copy link
Contributor Author

For convenience, checking against the popularity policy:

  • @wikimedia/codex: 589 + 584 + 450 + 730 = 2353 downloads the past four weeks, well over the threshold
  • @wikimedia/codex-icons: 238 + 260 + 245 + 289 = 1032 downloads the past four weeks, closer but still over the threshold
  • @wikimedia/codex-design-tokens: 262 + 226 + 216 + 174 = 878 downloads the past four weeks, barely above (but I hope you’d accept this one anyways as part of Codex as a whole)

The unscoped codex, whose name is being “taken over” here, has 6 + 39 + 40 + 25 = 110 downloads the past four weeks (and 64 stars on GitHub), so it would not be eligible.

@lucaswerkmeister lucaswerkmeister changed the title Add Wikimedia Codex libraries Add Wikimedia Codex libraries w/ npm auto-update Jul 15, 2023
@MattIPv4 MattIPv4 changed the title Add Wikimedia Codex libraries w/ npm auto-update Add codex/codex-icons/codex-design-tokens w/ npm auto-update Jul 16, 2023
Copy link
Member

@MattIPv4 MattIPv4 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@MattIPv4 MattIPv4 merged commit aa366e2 into cdnjs:master Jul 16, 2023
1 check passed
@lucaswerkmeister lucaswerkmeister deleted the add-codex branch July 16, 2023 21:24
@lucaswerkmeister
Copy link
Contributor Author

Thanks! codex is working fine, but codex-icons and codex-design-tokens 404 and I don’t know why… do libraries without JS files automatically get filtered out, perhaps?

@MattIPv4
Copy link
Member

It looks like they haven't been processed yet: https://github.com/cdnjs/logs/commits/prod

@lucaswerkmeister
Copy link
Contributor Author

I see, thanks.

@lucaswerkmeister
Copy link
Contributor Author

You’re right, now they’re both there. Thanks again!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants