{"bin":{"microbundle":"dist/cli.js"},"dist":{"shasum":"c6adccba7cc9d9d62fe0f8328ec2a9c424252a51","tarball":"https://registry.npmjs.org/microbundle/-/microbundle-0.12.0-next.0.tgz","fileCount":20,"integrity":"sha512-k/wxNcH6bahvQs7T3Hdm7ECuafFiI87lYVaI/D0HJMhI7Tow/nICvLQX7RxKLROrBNk6oGuyZMgK/2EkDlXBDw==","signatures":[{"sig":"MEYCIQDqG+OaxfbX+NdK2titRSxaoBX0sEptrZQeB3ny5fS5+QIhAPWfM/km13y9yqNmSSWYkb7XeTIfgCcfUScTkQgZp1kA","keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA"}],"unpackedSize":264130,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJc7GkYCRA9TVsSAnZWagAA3gUP/14Uh4goUTB6v2GzxPdm\nyeitJhlFJ60mvMcY5eDqzPalGwr/TfzoLfUPyJsIHYiwNmDz/iISwMBtZt5Q\n8OvTGsrQeF+qLiKsC1Y2MOFzWqINBsV9KDn75MDIRu6U9W3dPvFIifQMWzdQ\nyEF4Hda6oODf56DvO8g54ofCqF4hTOVvO0yZaRkeT1gS51i7nTcvR5mXA1Lf\nOupSisYgmpAZBz7OxIiNFb+hBMqtKmMoSSzA/nssdKIe7OSCwTImRpYQ43VF\nPAscwAqlnwKcMCwa5zIml46oQKKF8/zR66JOuGr56lan5ddAOy4pRlcBwgrN\nQ70rciE5MZhESsrj6qiI5eltUIx+kfucJoS+cG//tLXfUyj+nNmrnWIKfo9v\n3ut60SmerrodEv/hhzuhTwvRBqxu7C0kgwj3wDOfKtLOZVIA7qnJoev9g44n\nbj36Ee5k5x0anPk42HRgrBjjTTM314xH7uyVORrqpgVv9jwlK+uDdBvYZg9t\nPRKfmpdBPgA1a4RCh7P70U/JQOUSOdAtZmob0wI5HxEVosFIDDSiky4CDqAy\n/GTZH6at/FMufnjDbYVw2G/Wb0IAuY83yGpTTbb0kXVi2OmE0mt1HU2W0Pm5\n/3nIAEN8DtMgAFtukNYMJp6vDxXtaXVH3rsIm6SJ8CXyVocNyFRoTEEi5Ax5\nNigE\r\n=ofzg\r\n-----END PGP SIGNATURE-----\r\n"},"jest":{"testURL":"http://localhost","testEnvironment":"node"},"main":"dist/microbundle.js","name":"microbundle","husky":{"hooks":{"pre-commit":"lint-staged"}},"author":{"url":"http://jasonformat.com","name":"Jason Miller","email":"jason@developit.ca"},"readme":"<p align=\"center\">\n  <img src=\"https://i.imgur.com/LMEgZMh.gif\" width=\"597\" alt=\"microbundle\">\n</p>\n<h1 align=\"center\">\n\tMicrobundle\n\t<a href=\"https://www.npmjs.org/package/microbundle\"><img src=\"https://img.shields.io/npm/v/microbundle.svg?style=flat\" alt=\"npm\"></a> <a href=\"https://travis-ci.org/developit/microbundle\"><img src=\"https://travis-ci.org/developit/microbundle.svg?branch=master\" alt=\"travis\"></a>\n</h1>\n<p align=\"center\">The <strong>zero-configuration</strong> bundler for <em>tiny modules</em>, powered by <a href=\"https://github.com/rollup/rollup\">Rollup</a>.</p>\n\n---\n\n## ✨ Features:\n\n- **One dependency** to bundle your library using only a `package.json`\n- Support for ESnext & async/await _(via [Bublé] & [async-to-promises])_\n- Produces tiny, optimized code for all inputs\n- Supports multiple entry modules _(`cli.js` + `index.js`, etc)_\n- Creates multiple output formats for each entry _(<abbr title=\"CommonJS (node)\">CJS</abbr>, <abbr title=\"Universal Module Definition\">UMD</abbr> & <abbr title=\"ECMAScript Modules\">ESM</abbr>)_\n- 0 configuration TypeScript support\n- Built-in Terser compression & gzipped bundle size tracking\n\n## 🔧 Installation\n\n### Download\n\n`npm i -D microbundle`\n\n### Set up your `package.json`\n\n```js\n{\n  \"source\": \"src/foo.js\",         // Your source file (same as 1st arg to microbundle)\n  \"main\": \"dist/foo.js\",        // output path for CommonJS/Node\n  \"module\": \"dist/foo.mjs\",     // output path for JS Modules\n  \"unpkg\": \"dist/foo.umd.js\",   // optional, for unpkg.com\n  \"scripts\": {\n    \"build\": \"microbundle\",       // uses \"source\" and \"main\" as input and output paths by default\n    \"dev\": \"microbundle watch\"\n  }\n}\n```\n\n## 📦 Usage\n\nMicrobundle includes two commands - `build` (the default) and `watch`. Neither require any options, but you can tailor things to suit your needs a bit if you like.\n\n### `microbundle` / `microbundle build`\n\nUnless overridden via the command line, microbundle uses the `source` property in your `package.json` to locate the input file, and the `main` property for the output.\n\nFor UMD builds, microbundle will use a snake case version of the `name` field in your `package.json` as export name. This can be overridden either by providing an `amdName` key in your `package.json` or via the `--name` flag in the cli.\n\n### `microbundle watch`\n\nActs just like `microbundle build`, but watches your source files and rebuilds on any change.\n\n### Using with TypeScript\n\nJust point the input to a `.ts` file through either the cli or the `source` key in your `package.json` and you’re done.\n\n### Specifying builds in `package.json`\n\nYou can specify output builds in a `package.json` as follows:\n\n```\n\"main\": \"dist/foo.js\",          // CJS bundle\n\"umd:main\": \"dist/foo.umd.js\",  // UMD bundle\n\"module\": \"dist/foo.mjs\",       // ES Modules bundle\n\"source\": \"src/foo.js\",         // custom entry module (same as 1st arg to microbundle)\n\"types\": \"dist/foo.d.ts\",       // TypeScript typings\n```\n\n### Mangling Properties\n\nLibraries often wish to rename internal object properties or class members to smaller names - transforming `this._internalIdValue` to `this._i`. Microbundle doesn't currently do this by default, but it can be enabled by adding a \"mangle\" property to your package.json, with a pattern to control when properties should be mangled. To mangle all property names beginning an underscore, add the following:\n\n```json\n{\n  \"mangle\": {\n    \"regex\": \"^_\"\n  }\n}\n```\n### All CLI Options\n\n```\n Usage\n    $ microbundle <command> [options]\n\n  Available Commands\n    build    Build once and exit\n    watch    Rebuilds on any change\n\n  For more info, run any command with the `--help` flag\n    $ microbundle build --help\n    $ microbundle watch --help\n\n  Options\n    -v, --version    Displays current version\n    -i, --entry      Entry module(s)\n    -o, --output     Directory to place build files into\n    -f, --format     Only build specified formats  (default es,cjs,umd)\n    -w, --watch      Rebuilds on any change  (default false)\n    --target         Specify your target environment (node or web, default web)\n    --external       Specify external dependencies, or 'none'\n    --globals        Specify globals dependencies, or 'none'\n    --define         Replace constants with hard-coded values\n    --alias          Map imports to different modules\n    --compress       Compress output using Terser  (default true)\n    --strict         Enforce undefined global context and add \"use strict\"\n    --name           Specify name exposed in UMD builds\n    --cwd            Use an alternative working directory  (default .)\n    --sourcemap      Generate source map  (default true)\n    --raw            Show raw byte size  (default false)\n    --jsx            A custom JSX pragma like React.createElement (default: h)\n    -h, --help       Displays this message\n\n  Examples\n    $ microbundle microbundle --globals react=React,jquery=$\n    $ microbundle microbundle --define API_KEY=1234\n    $ microbundle microbundle --alias react=preact\n    $ microbundle microbundle --no-sourcemap # don't generate sourcemaps\n```\n\n## 🛣 Roadmap\n\nHere's what's coming up for Microbundle:\n\n- [ ] [Multiple separate inputs->outputs](https://github.com/developit/microbundle/issues/50)\n- [x] [TypeScript support](https://github.com/developit/microbundle/issues/5)\n- [x] [Flowtype support](https://github.com/developit/microbundle/issues/5#issuecomment-351075881)\n\n## 🔨 Built with Microbundle\n\n- [Stockroom](https://github.com/developit/stockroom) Offload your store management to a worker easily.\n- [Microenvi](https://github.com/fwilkerson/microenvi) Bundle, serve, and hot reload with one command.\n- [react-recomponent](https://github.com/philipp-spiess/react-recomponent) Reason-style reducer components for React using ES6 classes.\n- [brazilian-utils](https://github.com/brazilian-utils/brazilian-utils) Utils library for specific Brazilian businesses.\n- [react-hooks-lib](https://github.com/beizhedenglong/react-hooks-lib) A set of reusable react hooks.\n- [mdx-deck-live-code](https://github.com/JReinhold/mdx-deck-live-code) A library for [mdx-deck](https://github.com/jxnblk/mdx-deck) to do live React and JS coding directly in slides.\n- [react-router-ext](https://github.com/ri7nz/react-router-ext) An Extended [react-router-dom](https://github.com/ReactTraining/react-router/tree/master/packages/react-router-dom) with simple usage.\n\n## 🥂 License\n\n[MIT](https://oss.ninja/mit/developit/)\n\n[rollup]: https://github.com/rollup/rollup\n[bublé]: https://github.com/Rich-Harris/buble\n[async-to-promises]: https://github.com/rpetrich/babel-plugin-transform-async-to-promises\n","source":"src/index.js","license":"MIT","scripts":{"lint":"eslint src","test":"npm run -s lint && npm run -s build && cross-env BABEL_ENV=test jest","build":"npm run -s build:babel && npm run -s build:self","prepare":"npm run -s build","release":"npm run -s prepare && npm test && git commit -am $npm_package_version && git tag $npm_package_version && git push && git push --tags && npm publish","build:self":"node dist/cli.js --target=node --format cjs src/{cli,index}.js","build:babel":"babel-node src/cli.js --target=node --format cjs src/{cli,index}.js","prepare:babel":"babel src/*.js -d dist && npm t"},"_npmUser":{"name":"harmony","email":"me@hrmny.sh"},"keywords":["bundle","rollup","micro library"],"prettier":{"useTabs":true,"singleQuote":true,"trailingComma":"all"},"repository":{"url":"https://github.com/developit/microbundle.git","type":"git"},"description":"Zero-configuration bundler for tiny JS libs, powered by Rollup.","directories":{},"maintainers":[{"name":"developit","email":"jason@developit.ca"}],"dependencies":{"sade":"^1.4.0","kleur":"^3.0.3","tslib":"^1.9.0","rollup":"^1.12.4","asyncro":"^3.0.0","cssnano":"^4.1.10","filesize":"^4.1.2","camelcase":"^5.3.1","gzip-size":"^5.1.1","tiny-glob":"^0.2.6","typescript":"^3.4.5","@babel/core":"^7.4.5","brotli-size":"^0.1.0","autoprefixer":"^9.5.1","pretty-bytes":"^5.2.0","es6-promisify":"^6.0.1","@babel/polyfill":"^7.4.4","rollup-plugin-es3":"^1.1.0","@babel/preset-flow":"^7.0.0","rollup-plugin-flow":"^1.1.1","rollup-plugin-json":"^4.0.0","rollup-plugin-alias":"^1.5.1","rollup-plugin-babel":"^4.3.2","rollup-plugin-terser":"^5.0.0","rollup-plugin-postcss":"^2.0.3","rollup-plugin-commonjs":"^10.0.0","@babel/plugin-syntax-jsx":"^7.2.0","module-details-from-path":"^1.0.3","rollup-plugin-bundle-size":"^1.0.1","rollup-plugin-typescript2":"^0.21.1","rollup-plugin-node-resolve":"^5.0.0","@babel/plugin-transform-react-jsx":"^7.3.0","@babel/plugin-proposal-class-properties":"7.4.4","babel-plugin-transform-async-to-promises":"^0.8.11","babel-plugin-transform-replace-expressions":"^0.2.0"},"_hasShrinkwrap":false,"readmeFilename":"README.md","devDependencies":{"esm":"^3.2.22","jest":"^24.8.0","husky":"^2.3.0","eslint":"^5.16.0","rimraf":"^2.6.3","fs-extra":"^8.0.1","prettier":"^1.17.1","cross-env":"^5.2.0","@babel/cli":"^7.4.4","babel-core":"^7.0.0-bridge.0","babel-jest":"^24.8.0","strip-ansi":"^5.2.0","@babel/node":"^7.4.5","lint-staged":"^8.1.7","shell-quote":"^1.6.1","directory-tree":"^2.2.3","@babel/preset-env":"^7.4.5","travis-size-report":"^1.0.1","regenerator-runtime":"^0.13.2","eslint-config-prettier":"^4.3.0","eslint-plugin-prettier":"^3.1.0","eslint-config-developit":"^1.1.1","@babel/plugin-proposal-throw-expressions":"^7.2.0"},"_npmOperationalInternal":{"tmp":"tmp/microbundle_0.12.0-next.0_1558997271343_0.08452736115110748","host":"s3://npm-registry-packages"},"_id":"microbundle@0.12.0-next.0","version":"0.12.0-next.0"}