@patternfly/create-element
Advanced tools
Comparing version 1.0.0-next.14 to 1.0.0-next.15
{ | ||
"name": "@patternfly/create-element", | ||
"version": "1.0.0-next.14", | ||
"version": "1.0.0-next.15", | ||
"description": "Scaffold web components monorepos based on PatternFly Elements", | ||
@@ -5,0 +5,0 @@ "author": "Benny Powers <bennyp@redhat.com>", |
import { pfeCustomElementsManifestConfig } from '@patternfly/pfe-tools/custom-elements-manifest.js'; | ||
export default pfeCustomElementsManifestConfig({ | ||
globs: ['<%= tagPrefix %>-*.ts'], | ||
globs: ['<%= tagPrefix %>-*.ts', 'Base*.ts'], | ||
}); |
import '<%= importSpecifier %>'; | ||
const root = document.querySelector('[data-demo="<%= tagName %>"]')?.shadowRoot ?? document; | ||
root.querySelector('<%= tagName %>'); | ||
const element = document.querySelector('<%= tagName %>'); |
import { LitElement, html } from 'lit'; | ||
import { customElement } from 'lit/decorators.js'; | ||
import { pfelement } from '@patternfly/pfe-core/decorators.js'; | ||
import styles from '<%= cssRelativePath %>'; | ||
@@ -12,6 +10,4 @@ | ||
*/ | ||
@customElement('<%= tagName %>') @pfelement() | ||
@customElement('<%= tagName %>') | ||
export class <%= className %> extends LitElement { | ||
static readonly version = '{{version}}'; | ||
static readonly styles = [styles]; | ||
@@ -29,3 +25,3 @@ | ||
'<%= tagName %>': <%= className %>; | ||
} | ||
} | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
19825
445