0.1.1 ā€¢ Published 3 years ago

@mobecher/rollup-plugin-quicktype v0.1.1

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

rollup-plugin-quicktype

šŸ£ A Rollup plugin to integrate quicktype

Installation

npm install @mobecher/rollup-plugin-quicktype --save-dev

Example

rollup.config.js

import  quicktype from '@mobecher/rollup-plugin-quicktype';
export default {
    input: 'src/main.js',
    output: {
        dir: "dist",
        format: 'umd'
    },
    plugins: [
        quicktype({
            src: ['./schema/pokedex.schema.json'],
            srcLang: 'schema',
            lang: 'javascript',
            out: './src/pokedex.js'
        })
    ]
};

Options

Same as the options of quicktype quicktype --help

Limitations

At the moment the plugin simply passes the options to the quicktype cli.