nuxt

The Intuitive Vue Framework.

MIT License

Downloads
23.2M
Stars
49.1K
Committers
764

Bot releases are visible (Hide)

nuxt - v0.3.6

Published by Atinux almost 8 years ago

Features

  • Add redirected key in the result of nuxt.renderRoute(route, context = {}), useful for unit tests
  • Add redirect field in the contextreceived in data (context) and fetch (context), useful for authenticated routes:
// Ex: dashboard.vue
<script>
export default {
  fetch ({ redirect, route }) {
    // Check if user is connected via req.session or JWT...
    redirect({
      path: '/login',
      query: { redirect: route.fullPath }
    })
  }
}
</script>

You can also use redirect('/login') if you don't want to add any query parameter.

The redirect also works for nuxt generate and will create a html page with:

<meta http-equiv="refresh" content="0; url={{ redirectedPath }}" />
<script type="text/javascript">
    window.location.href = '{{ redirectedPath }}'
</script>
nuxt - v0.3.5

Published by Atinux almost 8 years ago

Feature

  • Add _build and _renderer options to control the start of the renderer and the build process when instantiating Nuxt(options)

Fix

  • Dev server will render the correct routes when router.base is set
  • Fix webpack server config buildPath which was erased
  • Stop using path.join to join url paths (on Windows, will be joined by a \)
nuxt - v0.3.4

Published by Atinux almost 8 years ago

Features

  • Breaking changes: custom routes are now defined in router.routes, see examples/custom-routes/
  • Add router object to cutomise vue-router options: base and linkActiveClass
nuxt - v0.3.3

Published by Atinux almost 8 years ago

Misc.

  • Don't use sync function when generating the routes
  • Check is static folder exists before copying it
nuxt - v0.3.2

Published by Atinux almost 8 years ago

Features

  • Thanks to @alexchopin for making nuxt generate to generate a static website with nuxt.js
nuxt - v0.3.1

Published by Atinux almost 8 years ago

Features

  • [dev mode] Nuxt.js is now watching on the pages/ folder to reload the build when a .vue file is added or removed (using chokidar)
  • Breaking changes: rename nuxt.stop() to nuxt.close() to stop watching files on dev build (used by most libraries)

Misc.

  • Add use strict in every js files of nuxt
nuxt - v0.3.0

Published by Atinux almost 8 years ago

Features

  • Breaking change: ./static/ folder is now mapped to /, this to allows to have robots.txt files or sitemap.xml, since there is no main reason to not map it to /
  • Breaking change: nuxt.renderRoute(route, context) send back an object with html and error instead of the html
  • Nuxt.js is now serving the static folder from its render(req, res) function (instead of the server used by nuxt-dev and nuxt-start), this to keep consistency in the behaviour of nuxt

Misc

  • Update with-ava example to check when the app sent back an error from the server
  • Update exit status to 1 when app fail to respect standard
nuxt - v0.2.6

Published by Atinux almost 8 years ago

Features

  • nuxt build -> Build only the application
  • nuxt start -> Launch the server and nuxt (without building it, so make sure to launch nuxt build before)
  • Add dev option to specify if the build will be for production or development, define also the webpack-dev-middleware and hot-reloading for nuxt-dev

Misc

  • Refactoring some logic for webpack inside the webpack/*.config.js files
  • Update README for production deployment
  • Improve test with ava (checking the value of the color of the element)
nuxt - v0.2.5

Published by Atinux almost 8 years ago

Move repository to nuxt organization

Feature

  • give the root instance in window.onNuxtReady

Misc.

  • Rename components loading to nuxt-loading and error-page to nuxt-error to avoid global component erase and keep consistency
nuxt - v0.2.4

Published by Atinux almost 8 years ago

Features

Misc.

nuxt -

Published by Atinux almost 8 years ago

Features

  • Add plugins options to load given files before loading the vues.js application (see example)

Misc.

nuxt - v0.2.2

Published by Atinux almost 8 years ago

Fix

  • Catching error on new Nuxt() was calling then() instead of catch()
  • Production mode, extract all chunks in CSS now
nuxt -

Published by Atinux almost 8 years ago

Features

  • Support meta field in custom routes

Misc.

  • Add .npmignore to ignore examples/
  • Add README.md to examples/custom-routes/ (read it here)
  • Add Context part in README.md of `examples/async-data/ (red it here
  • Remove --harmony_proxies flag
nuxt - v0.2.0

Published by Atinux almost 8 years ago

Features

Fixes

  • display error when webpack build fails
Package Rankings
Top 0.24% on Npmjs.org
Top 3.32% on Proxy.golang.org
Top 16.53% on Repo1.maven.org
Badges
Extracted from project README
Nuxt banner