@penpad/rollup-config

0.4.0-alpha.0 • Public • Published

@penpad/rollup-config

Builds a Rollup configuration for use in Penpad plugins. The buildConfig function gets you a Rollup config with some basic necessities:

Usage

Write a rollup.config.js for your plugin:

// rollup.config.js
import buildConfig from '@penpad/rollup-config'
import pkg from './package.json'

export default buildConfig({
  // Entry point
  input: 'src/index.tsx',
  pkg
})

Configure npm scripts for scripts.prepare:

/* package.json */
{
  "scripts": {
    "prepare": "rollup --config"
  }
}

Readme

Keywords

none

Package Sidebar

Install

npm i @penpad/rollup-config

Weekly Downloads

1

Version

0.4.0-alpha.0

License

MIT

Unpacked Size

7.61 kB

Total Files

7

Last publish

Collaborators

  • rstacruz