custom-elements-manifest
custom-elements-manifest copied to clipboard
add funding links
Hi all.
I would like to add funding links in custom-elements-manifest. A good example of this use case would be Github... funding.yaml file, which allows you to include links such as paypal, librepay and other links for funding the repository.
So... Would it be possible?
{
"schemaVersion": "2.0.0",
"readme": "README.md",
"funding": [
{
"patreon": "url"
},
{
"opencollective": "url"
},
{
"ko-fi": "url"
},
{
"tidelift": "url"
},
{
"paypal": "url"
},
{
"patreon": "url"
},
{
"bitcoin_btc": "url"
},
{
"binance": "url"
}
],
"modules": [
{
"kind": "javascript-module",
"path": "my-project/my-element.js",
"declarations": [
{
"kind": "class",
"customElement": true,
"name": "MyElement",
"tagName": "my-element",
"description": "This is the description of the class",
"members": [
{
"kind": "field",
"name": "disabled"
},
{
"kind": "method",
"name": "fire"
}
],
"events": [
{
"name": "disabled-changed",
"type": {
"text": "Event"
}
}
],
"attributes": [
{
"name": "disabled"
}
],
"superclass": {
"name": "HTMLElement"
}
}
],
"exports": [
{
"kind": "js",
"name": "MyElement",
"declaration": {
"name": "MyElement"
}
},
{
"kind": "custom-element-definition",
"name": "my-element",
"declaration": {
"name": "MyElement"
}
}
]
}
]
}
code-description: As we can see in this example, there are several donation or funding links for several web components projects such as paypal, bitcoin, librepay, patreon, opencollective, ko-fi, tidelift among others. My idea would be to give access to various means of payment for any developer to create web components. This would be done through an array with key and value in json - where you can insert as many links as you want.