Skip to content

Commit

Permalink
Add codex/codex-icons/codex-design-tokens w/ npm auto-update (#1589)
Browse files Browse the repository at this point in the history
* Add Wikimedia Codex libraries

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

* Update packages/c/codex-icons.json

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>

---------

Co-authored-by: Matt Cowley <me@mattcowley.co.uk>
  • Loading branch information
lucaswerkmeister and MattIPv4 authored Jul 16, 2023
1 parent 67dfd86 commit aa366e2
Show file tree
Hide file tree
Showing 3 changed files with 103 additions and 0 deletions.
34 changes: 34 additions & 0 deletions packages/c/codex-design-tokens.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "codex-design-tokens",
"filename": "theme-wikimedia-ui.css",
"description": "design tokens of the Codex design system for Wikimedia",
"keywords": [
"codex",
"design-system",
"components",
"front-end"
],
"autoupdate": {
"source": "npm",
"target": "@wikimedia/codex-design-tokens",
"fileMap": [
{
"basePath": "dist",
"files": [
"*.@(css|json)"
]
}
]
},
"repository": {
"type": "git",
"url": "git+https://gerrit.wikimedia.org/r/design/codex.git"
},
"authors": [
{
"name": "Wikimedia Foundation Design Systems Team",
"url": "https://www.mediawiki.org/wiki/Design_Systems_Team"
}
],
"license": "GPL-2.0-or-later"
}
35 changes: 35 additions & 0 deletions packages/c/codex-icons.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
{
"name": "codex-icons",
"filename": "codex-icons.umd.js",
"description": "icons of the Codex design system for Wikimedia",
"keywords": [
"codex",
"design-system",
"components",
"front-end"
],
"autoupdate": {
"source": "npm",
"target": "@wikimedia/codex-icons",
"fileMap": [
{
"basePath": "dist",
"files": [
"*.@(js|mjs|json)",
"images/*.svg"
]
}
]
},
"repository": {
"type": "git",
"url": "git+https://gerrit.wikimedia.org/r/design/codex.git"
},
"authors": [
{
"name": "Wikimedia Foundation Design Systems Team",
"url": "https://www.mediawiki.org/wiki/Design_Systems_Team"
}
],
"license": "MIT"
}
34 changes: 34 additions & 0 deletions packages/c/codex.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
{
"name": "codex",
"filename": "codex.umd.js",
"description": "Codex design system for Wikimedia",
"keywords": [
"codex",
"design-system",
"components",
"front-end"
],
"autoupdate": {
"source": "npm",
"target": "@wikimedia/codex",
"fileMap": [
{
"basePath": "dist",
"files": [
"*.@(js|mjs|css)"
]
}
]
},
"repository": {
"type": "git",
"url": "git+https://gerrit.wikimedia.org/r/design/codex.git"
},
"authors": [
{
"name": "Wikimedia Foundation Design Systems Team",
"url": "https://www.mediawiki.org/wiki/Design_Systems_Team"
}
],
"license": "GPL-2.0-or-later"
}

0 comments on commit aa366e2

Please sign in to comment.