kopia lustrzana https://github.com/shoelace-style/shoelace
update analyzer and remove dash plugin
rodzic
8e45f7d785
commit
3558bd5d9b
|
@ -18,34 +18,6 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
// Strip dashes from jsDoc comments
|
||||
{
|
||||
name: 'shoelace-jsdoc-dashes',
|
||||
packageLinkPhase({ customElementsManifest, context }) {
|
||||
for (const module of customElementsManifest?.modules) {
|
||||
for (const declaration of module?.declarations) {
|
||||
const items = [
|
||||
declaration.animations,
|
||||
declaration.attributes,
|
||||
declaration.cssParts,
|
||||
declaration.cssProperties,
|
||||
declaration.events,
|
||||
declaration.members,
|
||||
declaration?.members?.flatMap(member => member.parameters),
|
||||
declaration.slots
|
||||
];
|
||||
|
||||
items.flat().map(item => {
|
||||
// Remove dash prefix and trim whitespace from the description
|
||||
if (item?.description) {
|
||||
item.description = item.description.replace(/^-/, '').trim();
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
// Parse custom jsDoc tags
|
||||
{
|
||||
name: 'shoelace-custom-tags',
|
||||
|
|
|
@ -18,7 +18,7 @@
|
|||
"qr-creator": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@custom-elements-manifest/analyzer": "^0.3.9",
|
||||
"@custom-elements-manifest/analyzer": "^0.3.11",
|
||||
"@open-wc/testing": "^2.5.33",
|
||||
"@types/color": "^3.0.1",
|
||||
"@web/dev-server-esbuild": "^0.2.12",
|
||||
|
@ -140,9 +140,9 @@
|
|||
}
|
||||
},
|
||||
"node_modules/@custom-elements-manifest/analyzer": {
|
||||
"version": "0.3.9",
|
||||
"resolved": "https://registry.npmjs.org/@custom-elements-manifest/analyzer/-/analyzer-0.3.9.tgz",
|
||||
"integrity": "sha512-pv56FMdPrZ1gfsMadkbFOWhspaZWPcbVVlJbLOj/Jb7MHWk933UFXPYkNtf4hWfHYwtqe8MORpOuN36iRdktkQ==",
|
||||
"version": "0.3.11",
|
||||
"resolved": "https://registry.npmjs.org/@custom-elements-manifest/analyzer/-/analyzer-0.3.11.tgz",
|
||||
"integrity": "sha512-W2/HQ6DqntAf1hm96CGrDqz8N4lQeVHEklt/eKSJV5z9yHwFswKO9SQzbJgrDBUeS866CDXYTLecP9G4f1vHng==",
|
||||
"dev": true,
|
||||
"dependencies": {
|
||||
"@web/config-loader": "^0.1.3",
|
||||
|
@ -11315,9 +11315,9 @@
|
|||
}
|
||||
},
|
||||
"@custom-elements-manifest/analyzer": {
|
||||
"version": "0.3.9",
|
||||
"resolved": "https://registry.npmjs.org/@custom-elements-manifest/analyzer/-/analyzer-0.3.9.tgz",
|
||||
"integrity": "sha512-pv56FMdPrZ1gfsMadkbFOWhspaZWPcbVVlJbLOj/Jb7MHWk933UFXPYkNtf4hWfHYwtqe8MORpOuN36iRdktkQ==",
|
||||
"version": "0.3.11",
|
||||
"resolved": "https://registry.npmjs.org/@custom-elements-manifest/analyzer/-/analyzer-0.3.11.tgz",
|
||||
"integrity": "sha512-W2/HQ6DqntAf1hm96CGrDqz8N4lQeVHEklt/eKSJV5z9yHwFswKO9SQzbJgrDBUeS866CDXYTLecP9G4f1vHng==",
|
||||
"dev": true,
|
||||
"requires": {
|
||||
"@web/config-loader": "^0.1.3",
|
||||
|
|
|
@ -49,7 +49,7 @@
|
|||
"qr-creator": "^1.0.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@custom-elements-manifest/analyzer": "^0.3.9",
|
||||
"@custom-elements-manifest/analyzer": "^0.3.11",
|
||||
"@open-wc/testing": "^2.5.33",
|
||||
"@types/color": "^3.0.1",
|
||||
"@web/dev-server-esbuild": "^0.2.12",
|
||||
|
|
Ładowanie…
Reference in New Issue