added editor config
This commit is contained in:
@@ -0,0 +1 @@
|
|||||||
|
|
||||||
+3
-4
@@ -2320,12 +2320,11 @@ let BoilerplateCard = class BoilerplateCard extends LitElement {
|
|||||||
return html `
|
return html `
|
||||||
<ha-card>
|
<ha-card>
|
||||||
<div class="warning">Show Warning</div>
|
<div class="warning">Show Warning</div>
|
||||||
</ha-card>`;
|
</ha-card>
|
||||||
|
`;
|
||||||
}
|
}
|
||||||
return html `
|
return html `
|
||||||
<ha-card
|
<ha-card .header=${this._config.name ? this._config.name : 'Boilerplate'}></ha-card>
|
||||||
.header=${this._config.name ? this._config.name : 'Boilerplate'}
|
|
||||||
></ha-card>
|
|
||||||
`;
|
`;
|
||||||
}
|
}
|
||||||
static get styles() {
|
static get styles() {
|
||||||
|
|||||||
+23
-10
@@ -1,14 +1,27 @@
|
|||||||
import resolve from 'rollup-plugin-node-resolve';
|
import resolve from 'rollup-plugin-node-resolve';
|
||||||
import typescript from 'rollup-plugin-typescript2';
|
import typescript from 'rollup-plugin-typescript2';
|
||||||
|
|
||||||
export default {
|
|
||||||
input: 'src/index.ts',
|
const commonPlugins = [
|
||||||
output: {
|
resolve(),
|
||||||
file: 'boilerplate-card.js',
|
typescript()
|
||||||
format: 'es'
|
];
|
||||||
|
|
||||||
|
export default [
|
||||||
|
{
|
||||||
|
input: 'src/index.ts',
|
||||||
|
output: {
|
||||||
|
file: 'boilerplate-card.js',
|
||||||
|
format: 'es'
|
||||||
|
},
|
||||||
|
plugins: [...commonPlugins]
|
||||||
},
|
},
|
||||||
plugins: [
|
{
|
||||||
resolve(),
|
input: 'src/editor.ts',
|
||||||
typescript ()
|
output: {
|
||||||
]
|
file: 'boilerplate-card-editor.js',
|
||||||
};
|
format: 'es'
|
||||||
|
},
|
||||||
|
plugins: [...commonPlugins]
|
||||||
|
}
|
||||||
|
]
|
||||||
Reference in New Issue
Block a user