Update to use rollup.js
Thanks @ljmerza!
This commit is contained in:
1 parent
5a42d9644c
commit
4ad9ff4fcf
8 files changed
+2358
-26
No files matched your search
@@ -0,0 +1,41 @@
|
||||
import {
|
||||
LitElement,
|
||||
html,
|
||||
customElement,
|
||||
property,
|
||||
CSSResult,
|
||||
TemplateResult,
|
||||
css
|
||||
} from "lit-element";
|
||||
|
||||
interface BoilerplateConfig {
|
||||
type: string;
|
||||
}
|
||||
|
||||
@customElement("boilerplate-card")
|
||||
class BoilerplateCard extends LitElement {
|
||||
@property() public hass?: any;
|
||||
@property() private _config?: BoilerplateConfig;
|
||||
|
||||
public setConfig(config: BoilerplateConfig): void {
|
||||
if (!this._config) {
|
||||
// TODO Log error
|
||||
}
|
||||
|
||||
this._config = config;
|
||||
}
|
||||
|
||||
protected render(): TemplateResult | void {
|
||||
if (!this._config || !this.hass) {
|
||||
return html``;
|
||||
}
|
||||
|
||||
return html`
|
||||
<div>boilerplate</div>
|
||||
`;
|
||||
}
|
||||
|
||||
static get styles(): CSSResult {
|
||||
return css``;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user