@mobecher/rollup-plugin-quicktype

0.1.1 • Public • Published

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.

Package Sidebar

Install

npm i @mobecher/rollup-plugin-quicktype

Weekly Downloads

1

Version

0.1.1

License

MIT

Unpacked Size

3.29 kB

Total Files

5

Last publish

Collaborators

  • mobecher