{"name":"@zeit/ncc","version":"0.1.5-webpack","dependencies":{"@webassemblyjs/ast":"1.7.11","@webassemblyjs/helper-module-context":"1.7.11","@webassemblyjs/wasm-edit":"1.7.11","@webassemblyjs/wasm-parser":"1.7.11","acorn":"^5.6.2","acorn-dynamic-import":"^3.0.0","ajv":"^6.1.0","ajv-keywords":"^3.1.0","arg":"^2.0.0","chrome-trace-event":"^1.0.0","enhanced-resolve":"^4.1.0","eslint-scope":"^4.0.0","json-parse-better-errors":"^1.0.2","loader-runner":"^2.3.0","loader-utils":"^1.1.0","memory-fs":"~0.4.1","micromatch":"^3.1.8","mkdirp":"~0.5.0","neo-async":"^2.5.0","node-libs-browser":"^2.0.0","resolve":"^1.8.1","schema-utils":"^0.4.4","tapable":"^1.1.0","uglifyjs-webpack-plugin":"^1.2.4","webpack-sources":"^1.3.0"},"license":"MIT","main":"index.js","bin":{"ncc":"./cli.js"},"scripts":{"test":"jest"},"devDependencies":{"@google-cloud/datastore":"^2.0.0","@sentry/node":"^4.3.0","apollo-server-express":"^2.2.2","auth0":"^2.14.0","aws-sdk":"^2.356.0","axios":"^0.18.0","core-js":"^2.5.7","cowsay":"^1.3.1","express":"^4.16.4","firebase":"^5.5.8","fontkit":"^1.7.7","graphql":"^14.0.2","ioredis":"^4.2.0","jest":"^23.6.0","jimp":"^0.5.6","koa":"^2.6.2","mailgun":"^0.5.0","mariadb":"^2.0.1-beta","memcached":"^2.2.2","mongoose":"^5.3.12","mysql":"^2.16.0","pdfkit":"^0.8.3","pg":"^7.6.1","react":"^16.6.3","react-dom":"^16.6.3","redis":"^2.8.0","request":"^2.88.0","rxjs":"^6.3.3","saslprep":"^1.0.2","stripe":"^6.15.0","the-answer":"^1.0.0","twilio":"^3.23.2"},"gitHead":"771e920e63032d1f3c1f91d00749d341c53a77db","description":"Simple CLI for compiling a Node.js module into a single file, together with all its dependencies, gcc-style.","bundleDependencies":["@webassemblyjs/ast","@webassemblyjs/helper-module-context","@webassemblyjs/wasm-edit","@webassemblyjs/wasm-parser","acorn","acorn-dynamic-import","ajv","ajv-keywords","chrome-trace-event","enhanced-resolve","eslint-scope","json-parse-better-errors","loader-runner","loader-utils","memory-fs","micromatch","mkdirp","neo-async","node-libs-browser","schema-utils","tapable","uglifyjs-webpack-plugin","webpack-sources"],"_id":"@zeit/ncc@0.1.5-webpack","_npmVersion":"6.4.1","_nodeVersion":"10.12.0","_npmUser":{"name":"igorklopov","email":"igor@klopov.com"},"dist":{"integrity":"sha512-7ReKNL5MUbEkhCnyTIFfAU+VVIv4Tda7QK6qiIp8d/w+Z8ysZmERJp7uNXMH50I9m8+7vktqQ9EazWijaB84+w==","shasum":"f3a39a108f1a0f6ff5ba74ff4783e7dad0b8c190","tarball":"http://registry-npm.ywwl.com/@zeit/ncc/download/@zeit/ncc-0.1.5-webpack.tgz","fileCount":2841,"unpackedSize":13498341,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJb9C2MCRA9TVsSAnZWagAAa6EP/3xLhDO9QHgEVyuACuHl\naCMbWXr6s+e78NDuubjpmDpC9qQx14ZGN0c9OjdlimSLZlsisOCY2+0iSlo3\nxiL2zqZr+BaAIl4ZofOJoLzRs7CDHRihoqzL7L2BrWC1x6/nKNTOUxEh2/bT\nZdR2yz4TEdzYNY/5qgrwaDFzB+iBFe3aF6XdipVSgf7FZpbg5u+r43odF9TM\nJdHgpVbVKbuiH89y9DYTfbeScnz29Drc9yr9kC3bm0RWT55seTpn1bqr3Vve\nDDo6W2F5HZG6rsZ7no5qqcNwfSsQNx9E16rQEsDgikgwwfKGqOhJ5yoddbXt\n0Bt0qJ6MrZfTMozm0ZDSyLR9pXFS3+OneZOrjAtDFyHCU2cgoDnDJ7j7oN8T\n6XbNkhPZNSziwpf9eZyi3UvNq6xdfdzaPmb9a8/IiKJ4fuUmSaWmV6CV2k0c\nTzeJEjSYAyo5X33To5yUJyhl/22wpfW9MASMaiaGNTYhBENQOTHva4pQiukr\nLvblc1ZClqo8+yylh9NCbcsaZrVpR20OFpTL00E26br5zF44GbMClvMd7M90\nhE5ZWx0pPOYkjk9SWziQL6aCX7IPXBt5gy34AuF+ZGRJIrqo8fiA9Itt9PSK\n+gIqYqaavt3ro2rkZrZxZpCgyoarwT9RbNhkwsw4QSvUlhqCPZiweyRJ3/GC\noVS3\r\n=OAyd\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIB2E98o/CkFGvVkOWO/KrIVBAtxn8trvcWgoVAzPZkXNAiEAkWtS7umpwqvYE/BvSqdYanEC6AHrVs/Gomuc0cPZZQM="}],"size":3260262,"noattachment":false,"key":"/@zeit/ncc/-/@zeit/ncc-0.1.5-webpack.tgz"},"maintainers":[{"email":"arunoda.susiripala@gmail.com","name":"arunoda"},{"email":"thecodetheory@gmail.com","name":"codetheory"},{"email":"fivepointseven@icloud.com","name":"fivepointseven"},{"email":"guybedford@gmail.com","name":"guybedford"},{"email":"hharnisc@gmail.com","name":"hharnisc"},{"email":"hello@evilrabb.it","name":"iamevilrabbit"},{"email":"igor@klopov.com","name":"igorklopov"},{"email":"jamo@isotalo.fi","name":"jamo"},{"email":"javier.velasco86@gmail.com","name":"javivelasco"},{"email":"joecohenr@gmail.com","name":"joecohens"},{"email":"leo@zeit.co","name":"leo"},{"email":"me@matheus.top","name":"matheuss"},{"email":"naoyuki.kanezawa@gmail.com","name":"nkzawa"},{"email":"olli@zeit.co","name":"olliv"},{"email":"pranay.gp@gmail.com","name":"pranaygp"},{"email":"ds303077135@gmail.com","name":"quietshu"},{"email":"rauchg@gmail.com","name":"rauchg"},{"email":"tim@timneutkens.nl","name":"timneutkens"},{"email":"nathan@tootallnate.net","name":"tootallnate"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/ncc_0.1.5-webpack_1542729099338_0.8641767104574987"},"_hasShrinkwrap":false,"readme":"# ncc\n\n[![CI Status](https://github.com/zeit/ncc/workflows/CI/badge.svg)](https://github.com/zeit/ncc/actions?workflow=CI)\n[![codecov](https://codecov.io/gh/zeit/ncc/branch/master/graph/badge.svg)](https://codecov.io/gh/zeit/ncc)\n\nSimple CLI for compiling a Node.js module into a single file,\ntogether with all its dependencies, gcc-style.\n\n## Motivation\n\n- Publish minimal packages to npm\n- Only ship relevant app code to serverless environments\n- Don't waste time configuring bundlers\n- Generally faster bootup time and less I/O overhead\n- Compiled language-like experience (e.g.: `go`)\n\n## Design goals\n\n- Zero configuration\n- TypeScript built-in\n- Only supports Node.js programs as input / output\n- Support all Node.js patterns and npm modules\n\n## Usage\n\n### Installation\n```bash\nnpm i -g @zeit/ncc\n```\n\n### Usage\n\n```bash\n$ ncc <cmd> <opts>\n```\nEg:\n```bash\n$ ncc build input.js -o dist\n```\n\nOutputs the Node.js compact build of `input.js` into `dist/index.js`.\n\n> Note: If the input file is using a `.cjs` extension, then so will the corresponding output file.\n> This is useful for packages that want to use `.js` files as modules in native Node.js using\n> a `\"type\": \"module\"` in the package.json file.\n\n#### Commands:\n```\n  build <input-file> [opts]\n  run <input-file> [opts]\n  cache clean|dir|size\n  help\n  version\n```\n\n#### Options:\n```\n  -o, --out [file]         Output directory for build (defaults to dist)\n  -m, --minify             Minify output\n  -C, --no-cache           Skip build cache population\n  -s, --source-map         Generate source map\n  --no-source-map-register Skip source-map-register source map support\n  -e, --external [mod]     Skip bundling 'mod'. Can be used many times\n  -q, --quiet              Disable build summaries / non-error outputs\n  -w, --watch              Start a watched build\n  --v8-cache               Emit a build using the v8 compile cache\n  --stats-out [file]       Emit webpack stats as json to the specified output file\n```\n\n### Execution Testing\n\nFor testing and debugging, a file can be built into a temporary directory and executed with full source maps support with the command:\n\n```bash\n$ ncc run input.js\n```\n\n### With TypeScript\n\nThe only requirement is to point `ncc` to `.ts` or `.tsx` files. A `tsconfig.json`\nfile is necessary. Most likely you want to indicate `es2015` support:\n\n```json\n{\n  \"compilerOptions\": {\n    \"target\": \"es2015\",\n    \"moduleResolution\": \"node\"\n  }\n}\n```\n\n### Package Support\n\nSome packages may need some extra options for ncc support in order to better work with the static analysis.\n\nSee [package-support.md](package-support.md) for some common packages and their usage with ncc.\n\n### Programmatically From Node.js\n\n```js\nrequire('@zeit/ncc')('/path/to/input', {\n  // provide a custom cache path or disable caching\n  cache: \"./custom/cache/path\" | false,\n  // externals to leave as requires of the build\n  externals: [\"externalpackage\"],\n  // directory outside of which never to emit assets\n  filterAssetBase: process.cwd(), // default\n  minify: false, // default\n  sourceMap: false, // default\n  sourceMapBasePrefix: '../', // default treats sources as output-relative\n  // when outputting a sourcemap, automatically include\n  // source-map-support in the output file (increases output by 32kB).\n  sourceMapRegister: true, // default\n  watch: false, // default\n  v8cache: false, // default\n  quiet: false, // default\n  debugLog: false // default\n}).then(({ code, map, assets }) => {\n  console.log(code);\n  // Assets is an object of asset file names to { source, permissions, symlinks }\n  // expected relative to the output code (if any)\n})\n```\n\nWhen `watch: true` is set, the build object is not a promise, but has the following signature:\n\n```js\n{\n  // handler re-run on each build completion\n  // watch errors are reported on \"err\"\n  handler (({ err, code, map, assets }) => { ... })\n  // handler re-run on each rebuild start\n  rebuild (() => {})\n  // close the watcher\n  void close ();\n}\n```\n\n## Caveats\n\n- Files / assets are relocated based on a [static evaluator](https://github.com/zeit/webpack-asset-relocator-loader#how-it-works). Dynamic non-statically analyzable asset loads may not work out correctly\n","publish_time":1542729099623,"_cnpm_publish_time":1542729099623,"dist-tags":{"beta":"0.19.0-beta.1","canary":"0.1.14","latest":"0.22.3"}}