Nuxt is an intuitive and extendable way to create type-safe, performant and production-grade full-stack web apps and websites with Vue 3.
Go to file
renovate[bot] 004f383315 chore(deps): update all non-major dependencies (#4049)
This PR contains the following updates:

| Package | Type | Update | Change | References |
|---|---|---|---|---|
| puppeteer | devDependencies | minor | `^1.8.0` -> `^1.9.0` | [source](https://renovatebot.com/gh/GoogleChrome/puppeteer) |
| rollup | devDependencies | patch | `^0.66.3` -> `^0.66.4` | [source](https://renovatebot.com/gh/rollup/rollup) |

---

### Release Notes

<details>
<summary>GoogleChrome/puppeteer</summary>

### [`v1.9.0`](https://renovatebot.com/gh/GoogleChrome/puppeteer/releases/v1.9.0)

[Compare Source](https://renovatebot.com/gh/GoogleChrome/puppeteer/compare/v1.8.0...v1.9.0)

#### Big Changes

-   Chromium 71.0.3563.0 (r594312)
-   Debugging: Puppeteer errors now have [async stack traces](0b9d8a6271)
-   Puppeteer now can be [bundled with Browserify](https://renovatebot.com/gh/GoogleChrome/puppeteer/tree/master/utils/browser/README.md).
-   It's now possible to navigate frames using [`frame.goto`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#framegotourl-options) and [`frame.waitForNavigation`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#framewaitfornavigationoptions)

#### API Changes

##### Added:

-   [`browser.target()`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#browsertarget) ([`4e48dfc`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/4e48dfc7))
-   [`frame.goto(url, options)`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#framegotourl-options) ([`5acf953`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5acf9531))
-   [`frame.waitForNavigation(options)`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#framewaitfornavigationoptions) ([`5acf953`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5acf9531))
-   [`response.frame()`](https://renovatebot.com/gh/GoogleChrome/puppeteer/blob/v1.9.0/docs/api.md#responseframe) ([`5acf953`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5acf9531))

#### Bug Fixes

-   [#&#8203;2374](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/2374) - feat(browser): Run puppeteer in browser (POC)
-   [#&#8203;2377](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/2377) - Certificates error using puppeteer
-   [#&#8203;2721](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/2721) - page.goto doesn't clear internal timeout when the browser is closed
-   [#&#8203;2888](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/2888) - Cannot read property '\_bodyLoadedPromiseFulfill' of null
-   [#&#8203;2918](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/2918) - Support waitForNavigation for frames
-   [#&#8203;3104](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3104) - Full page screenshot fails when defaultViewport is null
-   [#&#8203;3109](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3109) - Is it clear what &lt;...Type> means in the docs?
-   [#&#8203;3204](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3204) - docs: mention require('puppeteer-core')
-   [#&#8203;3221](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3221) - As for puppeteer to emulate the movement of the mouse while pressing?
-   [#&#8203;3232](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3232) - Add documentation and examples for iframe API.
-   [#&#8203;3234](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3234) - Black render with `omitBackground: true` 
-   [#&#8203;3340](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3340) - Does --filter=SomeTest do anything when running npm run unit

#### Raw Notes

[`4abf7d1`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/4abf7d1) - docs(bundling): add docs about bundling for web ([#&#8203;3348](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3348))  
[`8becb31`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/8becb31) - test: add failing test for page.select ([#&#8203;3346](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3346))
[`5ebfe1a`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5ebfe1a) - docs(contributing): remove the --filter note ([#&#8203;3342](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3342))
[`cd54ce3`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/cd54ce3) - fix(types): upgrade node types to 8.10.34 ([#&#8203;3341](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3341))
[`c9657f8`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/c9657f8) - docs(api.md): minor grammar and consistency fixes ([#&#8203;3320](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3320))
[`c237947`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/c237947) - chore(types): upgrade to TypeScript 3.1.1 ([#&#8203;3331](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3331))
[`842fee8`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/842fee8) - fix(page): full page screenshot when defaultViewport is null ([#&#8203;3306](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3306))
[`e75e36b`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/e75e36b) - feat(chromium): roll Chromium to r594312 ([#&#8203;3310](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3310))
[`85aca8e`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/85aca8e) - chore(testserver): prepare test server ([#&#8203;3294](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3294))
[`9c89090`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/9c89090) - chore(testrunner): fix readme description ([#&#8203;3293](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3293))
[`12e317c`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/12e317c) - chore: add .npmignore for testrunner ([#&#8203;3290](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3290))
[`5b3ddf5`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5b3ddf5) - chore(testrunner): bump version to v0.5.0-post ([#&#8203;3291](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3291))
[`907d9be`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/907d9be) - chore: prepare testrunner to be published to npm ([#&#8203;3289](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3289))
[`4e48dfc`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/4e48dfc) - feat(launcher): add experimental "transport" option to pptr.connect ([#&#8203;3265](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3265))
[`5acf953`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/5acf953) - feat(frame): introduce Frame.goto and Frame.waitForNavigation ([#&#8203;3276](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3276))
[`ad49f79`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/ad49f79) - docs(api.md): Fix description of SecurityDetails class ([#&#8203;3277](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3277))
[`0b9d8a6`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/0b9d8a6) - feat: async stacks for all "async" public methods ([#&#8203;3262](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3262))
[`9223bca`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/9223bca) - refactor: move navigation management to FrameManager ([#&#8203;3266](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3266))
[`27477a1`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/27477a1) - docs(api.md): Fix typo ([#&#8203;3273](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3273))
[`b97bddf`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/b97bddf) - refactor: unify response tracking in page.goto and waitForNavigation ([#&#8203;3258](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3258))
[`a1a211d`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/a1a211d) - chore: nicer stack highlight ([#&#8203;3259](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3259))
[`a4abb4a`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/a4abb4a) - feat(chromium): Roll Chromium to r591618 ([#&#8203;3263](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3263))
[`7f00860`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/7f00860) - fix(browserfetcher): Fix windows fetching ([#&#8203;3256](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3256))
[`f5d388a`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/f5d388a) - docs(api.md): add example for Mouse class ([#&#8203;3244](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3244))
[`d547b9d`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/d547b9d) - fix(browser): browser closing/disconnecting should abort navigations ([#&#8203;3245](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3245))
[`f0beabd`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/f0beabd) - chore: drop DEBUG for public API calls ([#&#8203;3246](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3246))
[`d929f7e`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/d929f7e) - fix: set JPG background to white when omitBackground option is used ([#&#8203;3240](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3240))
[`6ec3ce6`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/6ec3ce6) - chore: make sure Puppeteer bundling works ([#&#8203;3239](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3239))
[`f49687f`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/f49687f) - docs(api.md): add frame example ([#&#8203;3237](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3237))
[`a582acd`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/a582acd) - feat(chromium): roll Chromium to r590951 ([#&#8203;3236](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3236))
[`7ec0801`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/7ec0801) - fix: expect Network.responseReceived event is never dispatched ([#&#8203;3233](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3233))
[`c644a3b`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/c644a3b) - test: make sure zero-width screenshots don't hang ([#&#8203;3214](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3214))
[`9c4b6d0`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/9c4b6d0) - refactor: use browser-compliant interface of 'ws' ([#&#8203;3218](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3218))
[`56b3bd8`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/56b3bd8) - docs(readme.md): Added yarn guide also to puppeteer-core ([#&#8203;3227](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3227))
[`6581ee9`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/6581ee9) - docs: add `ndb` as a debugging tip ([#&#8203;3195](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3195))
[`1b2c811`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/1b2c811) - refactor: move Connection to use ConnectionTransport ([#&#8203;3217](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3217))
[`c967aeb`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/c967aeb) - docs(api.md): add an include statement for puppeteer-core ([#&#8203;3213](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3213))
[`c5511ec`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/c5511ec) - docs(api.md): Clarify how to call page.setCookie ([#&#8203;3215](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3215))
[`78e9d5c`](https://renovatebot.com/gh/GoogleChrome/puppeteer/commit/78e9d5c) - chore: bump version to v1.8.0-post ([#&#8203;3212](https://renovatebot.com/gh/GoogleChrome/puppeteer/issues/3212))

</details>

<details>
<summary>rollup/rollup</summary>

### [`v0.66.4`](https://renovatebot.com/gh/rollup/rollup/blob/master/CHANGELOG.md#&#8203;0664)

[Compare Source](https://renovatebot.com/gh/rollup/rollup/compare/v0.66.3...v0.66.4)

_2018-10-04_

-   Fix links in warnings and errors ([#&#8203;2471](https://renovatebot.com/gh/rollup/rollup/pull/2471))

</details>

---

### Renovate configuration

📅 **Schedule**: At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻️ **Rebasing**: Whenever PR becomes conflicted, or if you modify the PR title to begin with "`rebase!`".

👻 **Immortal**: This PR will be recreated if closed unmerged. Get [config help](https://renovatebot.com/gh/renovatebot/config-help/issues) if that's undesired.

---

This PR has been generated by [Renovate Bot](https://renovatebot.com/gh/marketplace/renovate). View repository job log [here](https://renovatebot.com/dashboard#nuxt/nuxt.js).
2018-10-05 13:35:54 +01:00
.circleci fix: only publish package include package.json (#4045) 2018-10-03 20:28:18 +01:00
.github meta: improve github templates (#4004) 2018-09-28 13:56:13 +03:30
benchmarks refactor: lint scripts and benchmarks 2018-08-10 15:18:54 +01:00
bin fix(cli): apply default value for NODE_ENV environment variable (#4003) 2018-09-28 18:23:25 +02:00
examples exmaple: remove unnecessary transpile for vuetify 2018-09-29 21:18:33 +01:00
lib feat: abstract minify and use value for all modes (#3965) 2018-09-30 18:12:38 +02:00
packages fix(deps): update dependency std-env to v2.0.2 (#4056) 2018-10-05 13:23:29 +01:00
test fix(deps): update all non-major dependencies (#3991) 2018-09-30 18:11:52 +02:00
.all-contributorsrc contributors: Add two new members 2018-09-20 22:57:16 +01:00
.babelrc fix: appveyor test failure (#3754) 2018-08-17 22:25:23 +02:00
.editorconfig Add editorconfig 2016-12-15 18:47:20 +01:00
.eslintignore lint: force if braces, no lonely ifs and add store.js (#3685) 2018-08-11 00:24:53 +01:00
.eslintrc.js lint: force if braces, no lonely ifs and add store.js (#3685) 2018-08-11 00:24:53 +01:00
.gitignore chore: git ignore yarn-error.log (#3413) 2018-06-06 16:56:30 +04:30
.npmrc fix(ci): use registry.npmjs.org instead of registry.yarnpkg.com 2018-09-02 13:27:44 +04:30
.yarnrc chore: upgrade dependecies 2018-09-13 10:02:19 +01:00
appveyor.yml fix: appveyor test failure (#3754) 2018-08-17 22:25:23 +02:00
CODE_OF_CONDUCT.md Create CODE_OF_CONDUCT.md 2017-10-20 10:32:44 +02:00
CONTRIBUTING.md chore: update contribution guide (#4028) 2018-10-03 20:01:02 +01:00
index.js feat: move nuxt-legacy and nuxt-start into packages (#3824) 2018-08-31 22:51:41 +04:30
jest.config.js fix: appveyor test failure (#3754) 2018-08-17 22:25:23 +02:00
LICENSE chore: update core team info (#3950) 2018-09-24 17:39:15 +02:00
package.js chore(package): automatically sort dependencies 2018-09-21 01:04:08 +04:30
package.json chore(deps): update all non-major dependencies (#4049) 2018-10-05 13:35:54 +01:00
README.md chore: update core team info (#3950) 2018-09-24 17:39:15 +02:00
renovate.json chore: configure renovate bot (#3959) 2018-09-27 01:38:21 +03:30
rollup.config.js feat: move build to packages (#4031) 2018-10-03 19:50:22 +01:00
yarn.lock chore(deps): update all non-major dependencies (#4049) 2018-10-05 13:35:54 +01:00

Build Status Windows Build Status  Coverage Status Downloads Version License Discord

Support us

Vue.js Meta Framework to create complex, fast & universal web applications quickly.

Features

  • Automatic transpilation and bundling (with webpack and babel)
  • Hot code reloading
  • Server-side rendering OR Single Page App OR Static Generated, you choose 🔥
  • Static file serving. ./static/ is mapped to /
  • Configurable with a nuxt.config.js file
  • Custom layouts with the layouts/ directory
  • Middleware
  • Code splitting for every pages/

Learn more at nuxtjs.org.

Professional support with TideLift

Professionally supported Nuxt.js is now available!

Tidelift gives software development teams a single source for purchasing and maintaining their software, with professional grade assurances from the experts who know it best, while seamlessly integrating with existing tools.

Get supported Nuxt with the Tidelift Subscription.

Partners

Become a partner and get your logo on our README on GitHub and every page of https://nuxtjs.org website with a link to your site. [Become a partner]

Sponsors

Become a sponsor and get your logo on our README on GitHub with a link to your site. [Become a sponsor]

Backers

Support us with a monthly donation and help us continue our activities. [Become a backer]

Getting started

$ npm install nuxt

Add a script to your package.json like this:

{
  "scripts": {
    "start": "nuxt"
  }
}

After that, the file-system is the main API. Every .vue file becomes a route that gets automatically processed and rendered.

Populate ./pages/index.vue inside your project:

<template>
  <h1>Hello {{ name }}!</h1>
</template>

<script>
export default {
  data: () => {
    return { name: 'world' }
  }
}
</script>

And then run:

npm start

Go to http://localhost:3000

Templates

👉 We recommend to start directly with our cli create-nuxt-app for the latest updates.

Or you can start by using one of our starter templates:

  • starter: Basic Nuxt.js project template
  • express: Nuxt.js + Express
  • koa: Nuxt.js + Koa
  • adonuxt: Nuxt.js + AdonisJS
  • micro: Nuxt.js + Micro
  • nuxtent: Nuxt.js + Nuxtent module for content heavy sites

Using nuxt.js programmatically

const { Nuxt, Builder } = require('nuxt')

// Import and set nuxt.js options
let config = require('./nuxt.config.js')
config.dev = (process.env.NODE_ENV !== 'production')

let nuxt = new Nuxt(config)

// Start build process (only in development)
if (config.dev) {
  new Builder(nuxt).build()
}

// You can use nuxt.render(req, res) or nuxt.renderRoute(route, context)

Learn more: https://nuxtjs.org/api/nuxt

Using nuxt.js as a middleware

You might want to use your own server with your configurations, your API and everything awesome your created with. That's why you can use nuxt.js as a middleware. It's recommended to use it at the end of your middleware since it will handle the rendering of your web application and won't call next().

app.use(nuxt.render)

Learn more: https://nuxtjs.org/api/nuxt-render

Render a specific route

This is mostly used for nuxt generate and test purposes but you might find another utility!

nuxt.renderRoute('/about', context)
.then(function ({ html, error }) {
  // You can check error to know if your app displayed the error page for this route
  // Useful to set the correct status code if an error appended:
  if (error) {
    return res.status(error.statusCode || 500).send(html)
  }
  res.send(html)
})
.catch(function (error) {
  // And error appended while rendering the route
})

Learn more: https://nuxtjs.org/api/nuxt-render-route

Examples

Please take a look at https://nuxtjs.org/examples or directly in https://github.com/nuxt/nuxt.js/tree/dev/examples.

Production deployment

To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands:

nuxt build
nuxt start

For example, to deploy with now a package.json like follows is recommended:

{
  "name": "my-app",
  "dependencies": {
    "nuxt": "latest"
  },
  "scripts": {
    "dev": "nuxt",
    "build": "nuxt build",
    "start": "nuxt start"
  }
}

Then run now and enjoy!

Note: we recommend putting .nuxt in .npmignore or .gitignore.

Core team


Sébastien Chopin

📝 🐛 💻 🎨 📖 💬 👀 📢

Alexandre Chopin

🎨 📖 📋 📦 💬 📢

Pooya Parsa

🐛 💻 🔌 💬 👀 🔧

Clark Du

🐛 💻 💡 👀 ⚠️ 🔧

Alexander Lichter

💬 🐛 💻 💡 👀 ⚠️

Jonas Galvez

💬 🐛 💻 💡 👀 ⚠️

Contributors

Thank you to all our contributors!

Contributing

Please see our CONTRIBUTING.md

Cross-browser testing

Thanks to BrowserStack!

BrowserStack

License

MIT