From 749274d22a8451cefc31485be733a819d9ab725c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Mon, 7 Nov 2016 20:57:44 +0100 Subject: [PATCH] Version 0.1.5 - Add examples/with-store/ to show how to use Vuex with nuxt.js - Fix fetch().then when fetch does not return a promise - Map static folder to /static/ --- bin/nuxt-init | 3 +- bin/nuxt-start | 27 +++++++------- examples/hello-world/pages/about.vue | 14 +++++++- examples/hello-world/pages/index.vue | 14 +++++++- examples/hello-world/static/nuxt.png | Bin 0 -> 3427 bytes examples/with-store/README.md | 51 +++++++++++++++++++++++++++ examples/with-store/nuxt.config.js | 3 ++ examples/with-store/pages/about.vue | 8 +++++ examples/with-store/pages/index.vue | 26 ++++++++++++++ examples/with-store/store/index.js | 17 +++++++++ lib/app/client.js | 1 + package.json | 2 +- 12 files changed, 147 insertions(+), 19 deletions(-) create mode 100644 examples/hello-world/static/nuxt.png create mode 100644 examples/with-store/README.md create mode 100644 examples/with-store/nuxt.config.js create mode 100644 examples/with-store/pages/about.vue create mode 100644 examples/with-store/pages/index.vue create mode 100644 examples/with-store/store/index.js diff --git a/bin/nuxt-init b/bin/nuxt-init index 6331dcd080..d48a255d76 100755 --- a/bin/nuxt-init +++ b/bin/nuxt-init @@ -58,8 +58,7 @@ const baseConfig = `module.exports = { } ` -const basePage = ` -