r-renato / ha-card-weather-conditions

Weather condition card (Lovelace) for Home Assistant.
MIT License
193 stars 37 forks source link

rollup.config.js missing in project #51

Open edward-kramphub opened 4 years ago

edward-kramphub commented 4 years ago

Hi, Trying to run this card in my dev environment, but the rollup.config.js is mising. Could you update the project with this file? Would be much appreciated!

r-renato commented 4 years ago

Hi, this is my rollup.config.js

import resolve from 'rollup-plugin-node-resolve';
import typescript from 'rollup-plugin-typescript2';
import babel from 'rollup-plugin-babel';
import { terser } from "rollup-plugin-terser";
import execute from 'rollup-plugin-execute';

export default {
    input: ['src/ha-card-weather-conditions.ts'],
    output: {
        dir: './dist',
        format: 'esm',
        sourceMap: 'inline'
    },
    plugins: [
        resolve(),
        typescript(),
        babel({
            exclude: 'node_modules/**'
        }),
        terser(),
        execute([
            'echo "$(date \'+%d/%m/%Y %H:%M:%S\') rollup done." ; echo -e \'\\007\''
        ])
    ]
};