mirror of
https://github.com/alexhopeoconnor/bom-local-card.git
synced 2026-10-04 04:28:11 +10:00
- Custom Home Assistant card for displaying BOM radar data - Docker-based build system (no local Node.js required) - Test environment with Home Assistant and BOM service - TypeScript source with LitElement framework - HACS integration ready
36 lines
680 B
JavaScript
36 lines
680 B
JavaScript
import resolve from '@rollup/plugin-node-resolve';
|
|
import commonjs from '@rollup/plugin-commonjs';
|
|
import typescript from '@rollup/plugin-typescript';
|
|
|
|
export default {
|
|
input: 'src/bom-local-radar-card.ts',
|
|
output: {
|
|
file: 'dist/bom-local-radar-card.js',
|
|
format: 'es',
|
|
},
|
|
onwarn(warning, warn) {
|
|
if (warning.code === 'THIS_IS_UNDEFINED') {
|
|
return;
|
|
}
|
|
warn(warning);
|
|
},
|
|
plugins: [
|
|
resolve({
|
|
browser: true,
|
|
}),
|
|
commonjs(),
|
|
typescript({
|
|
tsconfig: './tsconfig.json',
|
|
}),
|
|
],
|
|
// Dependencies are bundled (not external) so the card works in HA
|
|
// HA doesn't provide lit or custom-card-helpers globally
|
|
};
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|