pkg-bundler
Zero-config rollup bundler for npm packages built with babel
Last updated a year ago by jxnblk .
MIT · Original npm · Tarball · package.json
$ cnpm install pkg-bundler 
SYNC missed versions from official npm registry.

pkg-bundler

Zero-config rollup bundler for npm packages built with babel

npm i -D pkg-bundler

Add a .babelrc file for your package.

{
  presets: [
    [ 'env', { modules: false } ],
    'react'
  ]
}

Add a main and optional module field to your package.json

"main": "dist/index.cjs.js",
"module": "dist/index.es.js",

Add a prepare script to your package.json

"scripts": {
  "prepare": "pkg-bundler src/index.js"
}

When publishing your package, pkg-bundler will use Rollup to create the dist bundles

Motivation

Setting up similar build configs for multiple packages is a lot of overhead. This is meant to reduce the amount of custom config added to any npm package. This is a sort of react-scripts-like package for publishing packages.

Current Tags

  • 1.0.0-1                                ...           latest (a year ago)

2 Versions

  • 1.0.0-1                                ...           a year ago
  • 1.0.0-0                                ...           a year ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 3
Dependencies (7)
Dev Dependencies (4)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |