mirror of
https://github.com/nuxt/nuxt.git
synced 2024-11-27 08:02:01 +00:00
examples: Upgrade to nuxt-edge (#3911)
This commit is contained in:
parent
d1f6f0dc09
commit
65432e6aa2
@ -3,7 +3,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookieparser": "^0.1.0",
|
"cookieparser": "^0.1.0",
|
||||||
"js-cookie": "^2.2.0",
|
"js-cookie": "^2.2.0",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-custom-layouts",
|
"name": "example-custom-layouts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-custom-loading",
|
"name": "example-custom-loading",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-custom-page-loading",
|
"name": "example-custom-page-loading",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-custom-port-host",
|
"name": "example-custom-port-host",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-custom-routes",
|
"name": "example-custom-routes",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "latest",
|
"axios": "latest",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-custom-server",
|
"name": "example-custom-server",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.15.3",
|
"express": "^4.15.3",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "node server.js",
|
"dev": "node server.js",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-dynamic-components",
|
"name": "example-dynamic-components",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chart.js": "^2.7.0",
|
"chart.js": "^2.7.0",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-chartjs": "^2.8.7"
|
"vue-chartjs": "^2.8.7"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-dynamic-layouts",
|
"name": "example-dynamic-layouts",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-global-css",
|
"name": "example-global-css",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"bulma": "^0.5.1",
|
"bulma": "^0.5.1",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-hello-world",
|
"name": "example-hello-world",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-i18n",
|
"name": "example-i18n",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-i18n": "^7.3.2"
|
"vue-i18n": "^7.3.2"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-jsx",
|
"name": "example-jsx",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-layout-transitions",
|
"name": "example-layout-transitions",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.15.3",
|
"axios": "^0.15.3",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/markdownit": "^1.1.2",
|
"@nuxtjs/markdownit": "^1.1.2",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"pug": "^2.0.0-rc.4"
|
"pug": "^2.0.0-rc.4"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-meta-info",
|
"name": "example-meta-info",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-middleware",
|
"name": "example-middleware",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-nested-components",
|
"name": "example-nested-components",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-nested-routes",
|
"name": "example-nested-routes",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-no-ssr",
|
"name": "example-no-ssr",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.16.2",
|
"axios": "^0.16.2",
|
||||||
"mini-toastr": "^0.6.5",
|
"mini-toastr": "^0.6.5",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-notifications": "^0.8.0"
|
"vue-notifications": "^0.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "examples-routes-meta",
|
"name": "examples-routes-meta",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"wingcss": "^1.0.0-beta"
|
"wingcss": "^1.0.0-beta"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-routes-transitions",
|
"name": "example-routes-transitions",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.15.3",
|
"axios": "^0.15.3",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-scroll-behavior",
|
"name": "example-scroll-behavior",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.15.3",
|
"axios": "^0.15.3",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-router": "https://github.com/homerjam/vue-router#dist"
|
"vue-router": "https://github.com/homerjam/vue-router#dist"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-spa",
|
"name": "example-spa",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-static-images",
|
"name": "example-static-images",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"less": "^2.7.3",
|
"less": "^2.7.3",
|
||||||
"less-loader": "^4.0.5",
|
"less-loader": "^4.0.5",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"start": "nuxt start"
|
"start": "nuxt start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^7.1.6",
|
"autoprefixer": "^7.1.6",
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"private": true,
|
"private": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.17.1",
|
"axios": "^0.17.1",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"nuxt-class-component": "^1.1.3",
|
"nuxt-class-component": "^1.1.3",
|
||||||
"tachyons": "^4.9.1",
|
"tachyons": "^4.9.1",
|
||||||
"vue-property-decorator": "^6.0.0",
|
"vue-property-decorator": "^6.0.0",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-uikit",
|
"name": "example-uikit",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"uikit": "^3.0.0-beta.30",
|
"uikit": "^3.0.0-beta.30",
|
||||||
"jquery": "^3.2.1"
|
"jquery": "^3.2.1"
|
||||||
},
|
},
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-vue-apollo",
|
"name": "example-vue-apollo",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@nuxtjs/apollo": "^2.1.1",
|
"@nuxtjs/apollo": "^2.1.1",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"axios": "^0.16.2",
|
"axios": "^0.16.2",
|
||||||
"chart.js": "^2.7.1",
|
"chart.js": "^2.7.1",
|
||||||
"moment": "^2.18.1",
|
"moment": "^2.18.1",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue-chartjs": "^3.1.0"
|
"vue-chartjs": "^3.1.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-persisted-state",
|
"name": "example-persisted-state",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vuex-persistedstate": "^2.0.0"
|
"vuex-persistedstate": "^2.0.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-vuex-store-modules",
|
"name": "example-vuex-store-modules",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-vuex-store",
|
"name": "example-vuex-store",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -11,6 +11,6 @@
|
|||||||
"jsdom": "^11.0.0"
|
"jsdom": "^11.0.0"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -10,7 +10,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"buefy": "^0.5.4",
|
"buefy": "^0.5.4",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue": "~2.4.4"
|
"vue": "~2.4.4"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"cookie": "^0.3.1",
|
"cookie": "^0.3.1",
|
||||||
"js-cookie": "^2.1.4",
|
"js-cookie": "^2.1.4",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -4,7 +4,7 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"element-ui": "^2",
|
"element-ui": "^2",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -32,7 +32,7 @@
|
|||||||
"feathers-rest": "^1.6.0",
|
"feathers-rest": "^1.6.0",
|
||||||
"feathers-socketio": "^1.4.2",
|
"feathers-socketio": "^1.4.2",
|
||||||
"nedb": "^1.8.0",
|
"nedb": "^1.8.0",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"passport": "^0.3.2",
|
"passport": "^0.3.2",
|
||||||
"winston": "^2.3.0"
|
"winston": "^2.3.0"
|
||||||
},
|
},
|
||||||
|
@ -15,6 +15,6 @@
|
|||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"axios": "^0.15.3",
|
"axios": "^0.15.3",
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-with-keep-alive",
|
"name": "example-with-keep-alive",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "nuxt",
|
"dev": "nuxt",
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"name": "example-with-museui",
|
"name": "example-with-museui",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"muse-ui": "latest"
|
"muse-ui": "latest"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
"start": "nuxt start"
|
"start": "nuxt start"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"autoprefixer": "^7.1.6",
|
"autoprefixer": "^7.1.6",
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"express": "^4.14.0",
|
"express": "^4.14.0",
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"socket.io": "^1.7.2",
|
"socket.io": "^1.7.2",
|
||||||
"socket.io-client": "^1.7.2"
|
"socket.io-client": "^1.7.2"
|
||||||
},
|
},
|
||||||
|
@ -16,6 +16,6 @@
|
|||||||
"vue-test-utils": "^1.0.0-beta.2"
|
"vue-test-utils": "^1.0.0-beta.2"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest"
|
"nuxt-edge": "latest"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"name": "example-with-vue-material",
|
"name": "example-with-vue-material",
|
||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vue": "~2.4.4",
|
"vue": "~2.4.4",
|
||||||
"vue-material": "beta"
|
"vue-material": "beta"
|
||||||
},
|
},
|
||||||
|
@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"license": "MIT",
|
"license": "MIT",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"nuxt": "latest",
|
"nuxt-edge": "latest",
|
||||||
"vux": "^2.8.0"
|
"vux": "^2.8.0"
|
||||||
},
|
},
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
Loading…
Reference in New Issue
Block a user