This package has been deprecated

Author message:

Package no longer supported. Contact Support at https://www.npmjs.com/support for more info.

@grixu/rollup-config

1.0.0 • Public • Published

@grixu/rollup-config

It's simple Rollup config for use in grixu/ui library and other projects.

Usage

yarn add -D @grixu/rollup-config

Then, add rollup.config.js file with following content:

const { createBanner, createConfig } = require("@grixu/rollup-config")
const pkg = require("./package.json")

const banner = createBanner(pkg)

const outputConfigs = {
  esm: {
    file: pkg.module,
    format: `es`,
  },
  cjs: {
    file: pkg.main,
    format: `cjs`,
  },
  browser: {
    file: pkg.browser,
    format: "umd",
    minify: true,
  },
  css: {
    file: pkg.style,
  },
}

const allFormats = Object.keys(outputConfigs)
const packageConfigs = allFormats.map(format => createConfig(format, outputConfigs[format], banner, pkg))

export default packageConfigs

Changelog

Please see CHANGELOG in each package for more information what has changed recently.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

Package Sidebar

Install

npm i @grixu/rollup-config

Weekly Downloads

0

Version

1.0.0

License

MIT

Unpacked Size

7.44 kB

Total Files

6

Last publish

Collaborators

  • grixu