bunchee
simple bundler
Last updated 3 months ago by huozhi .
MIT · Original npm · Tarball · package.json
$ cnpm install bunchee 
SYNC missed versions from official npm registry.

bunchee

zero config bundler for js library

Installation

npm install --save-dev bunchee

Usage

CLI

Usage: bunchee [options]

Options:
  -v, --version     output the version number
  -w, --watch       watch src files changes
  -d, --dest <dir>  specify output dest file
  -h, --help        output usage information

Usage:
  $ bunchee ./src/index.js

Dev Dependency

Declare your main field and module field in package.json, then call bunchee cli in build scripts

{
  "main": "dist/pkg.cjs.js",
  "module": "dist/pkg.esm.js",
  "scripts": {
    "build": "bunchee ./src/index.js"
  }
}

Or use it globally

# assume your file entry is ./src/index.js
# make sure there is a package.json file in your project root directory
# make sure there are `main` and `name` fields in package.json for description

cd <project-root-dir>
bunchee ./src/index.js

Current Tags

  • 0.3.1                                ...           latest (3 months ago)

5 Versions

  • 0.3.1                                ...           3 months ago
  • 0.3.0                                ...           3 months ago
  • 0.2.1                                ...           4 months ago
  • 0.2.0                                ...           5 months ago
  • 0.1.2                                ...           5 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 8
Dependencies (6)
Dev Dependencies (0)
None
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |