Update to use rollup.js

Thanks @ljmerza!
This commit is contained in:
Ian Richardson
2019-02-26 21:39:08 -06:00
parent 5a42d9644c
commit 4ad9ff4fcf
8 changed files with 2358 additions and 26 deletions
+41
View File
@@ -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``;
}
}