@jsxtools/cem-analyzer
v0.3.0
Published
A typed release of the Custom Elements Manifest analyzer.
Readme
@jsxtools/cem-analyzer
@jsxtools/cem-analyzer is a forked release of @custom-elements-manifest/analyzer that includes a typed create API, with support for a larger range of TypeScript versions.
Features
- Support for TypeScript versions 5.4.5 and above.
- TypeScript support for
/create.jsand/features/framework-plugins/*.js. - TypeScript support for Custom Elements Manifest schema types.
Installation
npm install @jsxtools/cem-analyzerUsage
This package is primarily intended as a dependency for other tools like @jsxtools/rollup-plugin-cem. However, it can be used directly:
import { create } from '@jsxtools/cem-analyzer/create.js';
import { litPlugin } from '@jsxtools/cem-analyzer/features/framework-plugins/lit/lit.js';
const manifest = create({
modules: sourceFiles, // array of ts.SourceFile objects
plugins: [
// optional analyzer plugins, like...
litPlugin()
]
});Available Exports
create.js- Core analyzer function and typesfeatures/framework-plugins/- Framework-specific plugins:lit/lit.js- Lit framework supportfast/fast.js- FAST framework supportstencil/stencil.js- Stencil framework supportcatalyst/catalyst.js- GitHub Catalyst supportcatalyst-major-2/catalyst.js- Catalyst v2 support
License
MIT-0
