{"_id":"@akifo/now-builder","_rev":"2-d65788195dbf3036ea8b17506e728e08","name":"@akifo/now-builder","dist-tags":{"latest":"0.16.8"},"versions":{"0.16.6":{"name":"@akifo/now-builder","version":"0.16.6","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/akifo/now-builder.git"},"author":{"name":"Akiho Nagao"},"main":"lib/index.js","scripts":{"build":"tsc","lint":"eslint --ext .vue,.js,.ts src examples test","test":"yarn build && jest test","update-fixture":"cd test/fixture && yarn && rm -rf node_modules","update-example":"cd test/example && yarn && rm -rf node_modules","prepublish":"yarn build","release":"standard-version && git push --follow-tags && npm publish"},"dependencies":{"@now/node-bridge":"1.2.2","consola":"2.10.1","esm":"3.2.25","execa":"^1.0.0","fs-extra":"8.1.0","replace-in-file":"^4.1.3","resolve-from":"^5.0.0","semver":"6.3.0"},"devDependencies":{"@now/build-utils":"^0.10.1","@nuxt/types":"^0.3.1","@nuxtjs/eslint-config":"^1.1.2","@types/execa":"^0.9.0","@types/fs-extra":"^8.0.0","@types/glob":"^7.1.1","@types/node":"^12.7.12","@types/resolve-from":"^5.0.1","@types/semver":"^6.0.2","@typescript-eslint/eslint-plugin":"^2.3.3","@typescript-eslint/parser":"^2.3.3","codecov":"^3.6.1","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","eslint-plugin-vue":"^5.2.3","jest":"^24.9.0","nuxt":"^2.10.0","standard-version":"^7.0.0","typescript":"^3.6.4"},"gitHead":"91bc0d183c92c5ed6bfa60f13b650eabdc47c390","description":"![now-builder](https://user-images.githubusercontent.com/904724/61308402-7a752d00-a7f0-11e9-9502-23731ccd00fd.png)","bugs":{"url":"https://github.com/akifo/now-builder/issues"},"homepage":"https://github.com/akifo/now-builder#readme","_id":"@akifo/now-builder@0.16.6","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"akifo","email":"akiho.nagao@gmail.com"},"dist":{"integrity":"sha512-wm8zNYxaCkldUTgdgZVdSwbRHVnyhTK6SS8ojlV4CIOQoJuX3f4++MMW/mmby3w+COpE70jUwlagB9iRw5CYZA==","shasum":"cb6bd799cb19b1c458fd3e0a67f103a21b31a64f","tarball":"https://registry.npmjs.org/@akifo/now-builder/-/now-builder-0.16.6.tgz","fileCount":19,"unpackedSize":40348,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdooxSCRA9TVsSAnZWagAA6agP/2TJNNzs+lBcySuC/9AE\na51UghhmZE07SN2166ryYLZ4ochb8ACGRdflCc3d8aM3sJ/3FojT4VwMH4Gv\n+kcvIhoEaDeRRW6pcMxOhG4hXec3lnRwJa3WoH223Pu2CHNGmuLxLFvUIysp\nCLltKcGuE79pEU3VhVBXXNt3TDEfBF8uSMJkWARAkxwb+HkEjU07YKlo/j2p\n8HrLglzYMgdy8GvPSlogJnwuzGxeMw4jXOaexHPkUeV2J5zSQ9kT5hOFEzVk\nvw2sqrCNaYT6NOpwse5n7/m3n7AlnxemopCL5ME6xgCQ6vXQLE4JK6AoQNRa\nkbt9YrfpsMkFy+Vo5mvQrZPKqsDOtZZ+aqOQIyen288TAEmLTkSVv/7kKRxO\n5a/1aIA6IkfLYO0uAYe08kvLWwPv2I/MFEiEZ/ndQ/znMR0iBGC9AkvHbope\nHbL/QgrSkb9xucFk8JE2/Wrf7+BVjhcf3e8fdcxqP3q2/CqZymS6Drq4u7F4\nH0GtLnpmo67GDPELPWeI0igmnwp/f1aVEiW/J6eUEYpTojTh7EeHAq2RN3AV\nMQ7iCNlq500P3pA4HmcwDAN1Zpl2u26xp8mCkR8a2lPrWKMgCYSlX0wHpIUh\n7Ts0blLONWUDWThZ4FRBcWLfK2xhEdoKaZMnQTcGnqED2WQ/rgOZzhB5yD6B\norF+\r\n=5uLZ\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIQDGeWkQwEhKXx6X/pRvoBT3uaIL0zCDWp7GBYfNHKlvXAIgXXTnUyCpWhWmoaohpgNwYCzCWyXR67B731qjjrn39Dg="}]},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/now-builder_0.16.6_1570933841822_0.14430959121256537"},"_hasShrinkwrap":false},"0.16.8":{"name":"@akifo/now-builder","version":"0.16.8","license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/akifo/now-builder.git"},"author":{"name":"Akiho Nagao"},"main":"lib/index.js","scripts":{"build":"tsc","lint":"eslint --ext .vue,.js,.ts src examples test","test":"yarn build && jest test","update-fixture":"cd test/fixture && yarn && rm -rf node_modules","update-example":"cd test/example && yarn && rm -rf node_modules","prepublish":"yarn build","release":"standard-version && git push --follow-tags && npm publish"},"dependencies":{"@now/node-bridge":"1.2.2","consola":"2.10.1","esm":"3.2.25","execa":"^1.0.0","fs-extra":"8.1.0","replace-in-file":"^4.1.3","resolve-from":"^5.0.0","semver":"6.3.0"},"devDependencies":{"@now/build-utils":"^0.10.1","@nuxt/types":"^0.3.1","@nuxtjs/eslint-config":"^1.1.2","@types/execa":"^0.9.0","@types/fs-extra":"^8.0.0","@types/glob":"^7.1.1","@types/node":"^12.7.12","@types/resolve-from":"^5.0.1","@types/semver":"^6.0.2","@typescript-eslint/eslint-plugin":"^2.3.3","@typescript-eslint/parser":"^2.3.3","codecov":"^3.6.1","eslint":"^6.5.1","eslint-config-standard":"^14.1.0","eslint-plugin-import":"^2.18.2","eslint-plugin-jest":"^22.17.0","eslint-plugin-node":"^10.0.0","eslint-plugin-promise":"^4.2.1","eslint-plugin-standard":"^4.0.1","eslint-plugin-vue":"^5.2.3","jest":"^24.9.0","nuxt":"^2.10.0","standard-version":"^7.0.0","typescript":"^3.6.4"},"gitHead":"0359b95f62bca1ec77ba8d03bc0be8170077641f","description":"![now-builder](https://user-images.githubusercontent.com/904724/61308402-7a752d00-a7f0-11e9-9502-23731ccd00fd.png)","bugs":{"url":"https://github.com/akifo/now-builder/issues"},"homepage":"https://github.com/akifo/now-builder#readme","_id":"@akifo/now-builder@0.16.8","_npmVersion":"6.4.1","_nodeVersion":"10.15.3","_npmUser":{"name":"akifo","email":"akiho.nagao@gmail.com"},"dist":{"integrity":"sha512-rffEnjP14k/Cs8/I8F4wKGC+brWsmvjQj389ZmZnYXojsFYrWDpUPX/tHwrDG+CRhgy1Iz7fGvxZVBLoBbfnqA==","shasum":"4f6a22190af92940349c7fe254900dac95c827ee","tarball":"https://registry.npmjs.org/@akifo/now-builder/-/now-builder-0.16.8.tgz","fileCount":19,"unpackedSize":40439,"npm-signature":"-----BEGIN PGP SIGNATURE-----\r\nVersion: OpenPGP.js v3.0.4\r\nComment: https://openpgpjs.org\r\n\r\nwsFcBAEBCAAQBQJdoo2LCRA9TVsSAnZWagAARqoP/i7Fu8f03ai6j7G7htOF\nDuLbL6xNM9Za9sXAVxkdY52V4yCjeU7KXb2jgVcfhsbchkvCHkMHw3rlXxh7\n5CRBH0tpd977l/AHAYh18xt7w4o9+m170mdIecOmQ3MAr1xLP2dCBWANrswf\n/QbiT/QjErH6KDB6WWfNSdUwJ9byp9sGpyJO7RDXs+w5r0zfhAhxc7VmaSo5\n0/zZ8j3nAmCxiorSZpKe7AFCvAn8blWEo/xc/vkQxKga4PwfS1Huxr5deClM\nmjC8poJGbqMnfIWyawuehBaXFWcgG75Lnlbb9sEGjzBpFOYBGqcGtgG76S2e\nL0q07PZYoGCGNsi7huJjgqm1O/pb4fgOuXfg6PMDqUBmTO+lzgkXAlvBFdEF\nop/Hi8s+wsDHF2nKhgPRKf4J49rytwDwL4Ii2jcDi2lwlB+F0EKC/qgt8eo/\nbxuzy0mdpg7rnthxQOuPZxD15lqTpW3dHDfuLRRl8uZ7gPe3cradOBTALFH1\nLVzzJ14P88lKQ16Bim/3OzfFVlZ0tL/p15D2hyGexQeN+lZzWCXJDOxf6yyg\nW6RKM0VqU7e7h1dAGpgU40SnpZO4jmEY+edkhKmobztVfdhAlQmvGnSWzPtb\nmNoZLG+9J4KukuG303BsrSoIVEDKu+SshIhO89Jc9N/rBhiImTfFgHi9Tz3Y\nMHuP\r\n=eWjR\r\n-----END PGP SIGNATURE-----\r\n","signatures":[{"keyid":"SHA256:jl3bwswu80PjjokCgh0o2w5c2U4LhQAE57gj9cz1kzA","sig":"MEUCIEUeWeqC6haCXG/N7OYBUMVjvIaHJQJk5Iu4vcc4JpHdAiEAt+g7Fsbq/ubrpT8xktANljF38otsWOW5ABuTQZrvwvA="}]},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"directories":{},"_npmOperationalInternal":{"host":"s3://npm-registry-packages","tmp":"tmp/now-builder_0.16.8_1570934154705_0.8519127943456295"},"_hasShrinkwrap":false}},"time":{"created":"2019-10-13T02:30:41.601Z","0.16.6":"2019-10-13T02:30:42.005Z","modified":"2022-04-04T12:29:20.465Z","0.16.8":"2019-10-13T02:35:54.822Z"},"maintainers":[{"name":"akifo","email":"akiho.nagao@gmail.com"}],"description":"![now-builder](https://user-images.githubusercontent.com/904724/61308402-7a752d00-a7f0-11e9-9502-23731ccd00fd.png)","homepage":"https://github.com/akifo/now-builder#readme","repository":{"type":"git","url":"git+ssh://git@github.com/akifo/now-builder.git"},"author":{"name":"Akiho Nagao"},"bugs":{"url":"https://github.com/akifo/now-builder/issues"},"license":"MIT","readme":"![now-builder](https://user-images.githubusercontent.com/904724/61308402-7a752d00-a7f0-11e9-9502-23731ccd00fd.png)\n\n# Now Builder for Nuxt.js\n\n[![npm version][npm-version-src]][npm-version-href]\n[![npm downloads][npm-downloads-src]][npm-downloads-href]\n[![packagephobia][packagephobia-src]][packagephobia-href]\n[![Circle CI][circle-ci-src]][circle-ci-href]\n[![Codecov][codecov-src]][codecov-href]\n[![Dependencies][david-dm-src]][david-dm-href]\n[![Standard JS][standard-js-src]][standard-js-href]\n\nThis Now builder takes a [Nuxt.js application](https://nuxtjs.org) defined by a `nuxt.config` entrypoint and deploys it to a Now v2 serverless environment.\n\nIt features built-in caching of `node_modules` and the yarn global cache (even with dependency changes!) and multi-stage build for fast and small deployments.\n\n## When to use it\n\nIf you are using the Now platform, `@nuxtjs/now-builder` is the ideal way to ship a fast, production-ready [Nuxt.js application](https://nuxtjs.org) that scales automatically.\n\nFor more information on why you should use Nuxt.js for your project, see [the Nuxt.js website](https://nuxtjs.org).\n\n## How to use it\n\nThe first step is to set up a Nuxt.js project.\n\nTo get started, make sure you have installed the Nuxt.js dependencies with the following command:\n\n```bash\nyarn add nuxt\n```\n\nThen, in your project directory, create a `pages` directory with some example pages, for example; the home index page, `pages/index.vue`:\n\n```html\n<template>\n  <div>\n    Works!\n  </div>\n</template>\n```\n\nCreate a simple `nuxt.config.js` file:\n\n```js\nexport default {\n  head: {\n    title: 'My Nuxt.js Application!',\n  },\n}\n```\n\nThen define the build in `now.json`:\n\n```json\n{\n  \"version\": 2,\n  \"builds\": [\n    {\n      \"src\": \"nuxt.config.js\",\n      \"use\": \"@nuxtjs/now-builder\",\n      \"config\": {}\n    }\n  ]\n}\n```\n\nUpon deployment, you will get a URL like this: https://nuxtjs-8fnzfb1ci.now.sh\n\nSee [Basic Example](./examples/basic) for a more complete deployable example.\n\nSee [Deploying two Nuxt apps side-by-side](./examples/side-by-side/README.md) for details on deploying two nuxt apps in one Now Monorepo.\n\n## Using with TypeScript\n\n`now-builder` supports TypeScript runtime compilation, though it does so in a slightly different from `@nuxt/typescript-runtime`. It adds in a pre-compilation step as part of building the lambda for files not compiled by Webpack, such as `nuxt.config.ts`, local modules and serverMiddleware.\n\nReferences to original TS files in strings outside of `modules` or `serverMiddleware` may therefore cause unexpected errors.\n\n## Configuration\n\n### `serverFiles`\n\n- Type: `Array`\n\nIf you need to include files in the server lambda that are not built by webpack or within `static/`, such as a local module or serverMiddleware, you may specify them with this option. Each item can be a glob pattern.\n\nExample:\n\n```json\n{\n  \"src\": \"nuxt.config.js\",\n  \"use\": \"@nuxtjs/now-builder\",\n  \"config\": {\n    \"serverFiles\": [\"server-middleware/**\"]\n  }\n}\n```\n\n### `tscOptions`\n\n- Type: `Object`\n\nIf you need to pass TypeScript compiler options to override your `tsconfig.json`, you can pass them here. See [the TypeScript documentation](https://www.typescriptlang.org/docs/handbook/compiler-options.html) for valid options. Example:\n\n```json\n{\n  \"src\": \"nuxt.config.ts\",\n  \"use\": \"@nuxtjs/now-builder\",\n  \"config\": {\n    \"tscOptions\": {\n      \"sourceMap\": false\n    }\n  }\n}\n```\n\n## Technical details\n\n### Dependency installation\n\nPackage dependencies are installed with either `npm` (if a `package-lock.json` is present) or `yarn`.\n\n**NOTE:** Using `yarn` is HIGHLY recommended due to its [autoclean](https://yarnpkg.com/lang/en/docs/cli/autoclean) functionality , which can decrease lambda size.\n\n### Private npm modules\n\nTo install private npm modules, define `NPM_TOKEN` as a [build environment](https://zeit.co/docs/v2/deployments/configuration#build.env) in `now.json`.\n\n### Node.js version\n\nThe Node.js version used is the latest **8.10.x release** or (if your `package.json` specifies Node 10 in `engines`, the latest **10.x release**) - see [Now documentation](https://zeit.co/docs/v2/advanced/builders#static-build-project-node.js-version).\n\n## Troubleshooting\n\n### Environment variables\n\nBecause of Nuxt.js' [approach to environment variables](https://nuxtjs.org/api/configuration-env#process-env-), environment variables present at build time will be compiled into the lambda. They may also be required at runtime, depending on how you are consuming them.\n\nYou may, therefore, need to include them in your `now.json` in both the `env` and `build.env` keys (see [Now documentation](https://zeit.co/docs/v2/advanced/configuration#env)). For example:\n\n```json\n  \"env\": {\n    \"MY_VARIABLE\": true\n  },\n  \"build\": {\n    \"env\": {\n      \"MY_VARIABLE\": true\n    }\n  }\n```\n\n# License\n\n[MIT License](./LICENSE)\n\nDocumentation and builder inspired by [Next.js](https://nextjs.org) by [Zeit.co](https://zeit.co)\n\nCopyright (c) Nuxt Community\n\n<!-- Badges -->\n\n[npm-version-src]: https://flat.badgen.net/npm/dt/@nuxtjs/now-builder\n[npm-version-href]: https://npmjs.com/package/@nuxtjs/now-builder\n[npm-downloads-src]: https://flat.badgen.net/npm/v/@nuxtjs/now-builder\n[npm-downloads-href]: https://npmjs.com/package/@nuxtjs/now-builder\n[circle-ci-src]: https://flat.badgen.net/circleci/github/nuxt/now-builder\n[circle-ci-href]: https://circleci.com/gh/nuxt/now-builder\n[codecov-src]: https://flat.badgen.net/codecov/c/github/nuxt/now-builder\n[codecov-href]: https://codecov.io/gh/nuxt/now-builder\n[david-dm-src]: https://flat.badgen.net/david/dep/nuxt/now-builder\n[david-dm-href]: https://david-dm.org/nuxt/now-builder\n[standard-js-src]: https://flat.badgen.net/badge/code%20style/standard/f2a\n[standard-js-href]: https://standardjs.com\n[packagephobia-src]: https://flat.badgen.net/packagephobia/install/@nuxtjs/now-builder\n[packagephobia-href]: https://packagephobia.now.sh/result?p=@nuxtjs/now-builder\n","readmeFilename":"README.md"}