Skip to content
This repository was archived by the owner on Nov 13, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .changeset/neat-carpets-applaud.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
'@crowdstrike/glide-core': patch
---

Each component now includes a JSDoc comment at the top with its attributes, slots, custom properties, events, properties, and methods.
34 changes: 34 additions & 0 deletions custom-elements.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
// The analyzer expects plugins to be JavaScript. But writing plugins in
// JavaScript is unruly and error prone. So we write them in TypeScript,
// then compile and import them as JavaScript.
import addCustomProperties from './dist/cem-analyzer-plugins/add-custom-properties.js';
import addEvents from './dist/cem-analyzer-plugins/add-events.js';
import addRequiredToAttribute from './dist/cem-analyzer-plugins/add-required-to-attributes.js';
import addSlots from './dist/cem-analyzer-plugins/add-slots.js';
import modifyVersionAttribute from './dist/cem-analyzer-plugins/modify-version-attribute.js';
import removeBlockComments from './dist/cem-analyzer-plugins/remove-block-comments.js';

export default {
exclude: [
'./src/**/*stories*',
'./src/**/*test*',
'./src/cem-analzyer-plugins/**',
Copy link
Collaborator Author

@clintcs clintcs Feb 18, 2025

Choose a reason for hiding this comment

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

Many of these globs go away with a monorepo. So does importing from ./dist above.

'./src/eslint/**',
'./src/icons/**',
'./src/library/**',
'./src/stylelint/**',
'./src/styles/**',
'./src/translations/**',
'./src/ts-morph/**',
],
globs: ['./src/*.ts'],
litelement: true,
plugins: [
removeBlockComments(),
addCustomProperties(),
addEvents(),
addRequiredToAttribute(),
addSlots(),
modifyVersionAttribute(),
],
};
Loading