From b9680bc3ea5c82c5d9675f02b5e5676dcd1e0425 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Chopin?= Date: Thu, 10 Nov 2016 14:30:18 +0100 Subject: [PATCH] Add package.jsonn in examples --- README.md | 4 ++-- examples/async-data/package.json | 6 ++++-- examples/basic-css/pages/index.vue | 18 ------------------ examples/custom-build/package.json | 6 ++++-- examples/custom-routes/package.json | 6 ++++-- examples/global-css/package.json | 2 +- examples/head-elements/package.json | 11 +++++++++++ examples/hello-world/package.json | 11 +++++++++++ examples/nested-components/package.json | 11 +++++++++++ examples/plugins-vendor/package.json | 6 ++++-- examples/vuex-store/package.json | 11 +++++++++++ examples/with-ava/package.json | 2 +- 12 files changed, 64 insertions(+), 30 deletions(-) delete mode 100755 examples/basic-css/pages/index.vue create mode 100644 examples/head-elements/package.json create mode 100644 examples/hello-world/package.json create mode 100644 examples/nested-components/package.json create mode 100644 examples/vuex-store/package.json diff --git a/README.md b/README.md index fa9cf1c083..f177f7045c 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ bin/nuxt examples/hello-world ## Production deployment -To deploy, instead of running next, you probably want to build ahead of time. Therefore, building and starting are separate commands: +To deploy, instead of running nuxt, you probably want to build ahead of time. Therefore, building and starting are separate commands: ```bash nuxt build @@ -135,7 +135,7 @@ For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like f { "name": "my-app", "dependencies": { - "next": "latest" + "nuxt": "latest" }, "scripts": { "dev": "nuxt", diff --git a/examples/async-data/package.json b/examples/async-data/package.json index e1a67c63b1..5295e05f5b 100644 --- a/examples/async-data/package.json +++ b/examples/async-data/package.json @@ -1,11 +1,13 @@ { - "name": "async-data", + "name": "nuxt-async-data", "description": "", "dependencies": { "axios": "^0.15.2", "nuxt": "latest" }, "scripts": { - "start": "nuxt" + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" } } diff --git a/examples/basic-css/pages/index.vue b/examples/basic-css/pages/index.vue deleted file mode 100755 index d66dbd94e7..0000000000 --- a/examples/basic-css/pages/index.vue +++ /dev/null @@ -1,18 +0,0 @@ - - - diff --git a/examples/custom-build/package.json b/examples/custom-build/package.json index b9a104231d..bca372acaa 100644 --- a/examples/custom-build/package.json +++ b/examples/custom-build/package.json @@ -1,10 +1,12 @@ { - "name": "custom-build", + "name": "nuxt-custom-build", "description": "", "dependencies": { "nuxt": "latest" }, "scripts": { - "start": "nuxt" + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" } } diff --git a/examples/custom-routes/package.json b/examples/custom-routes/package.json index 296e16e3b2..31c9724fdb 100644 --- a/examples/custom-routes/package.json +++ b/examples/custom-routes/package.json @@ -1,11 +1,13 @@ { - "name": "custom-routes", + "name": "nuxt-custom-routes", "description": "", "dependencies": { "axios": "^0.15.2", "nuxt": "latest" }, "scripts": { - "start": "nuxt" + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" } } diff --git a/examples/global-css/package.json b/examples/global-css/package.json index c451035856..d5954f043a 100644 --- a/examples/global-css/package.json +++ b/examples/global-css/package.json @@ -1,5 +1,5 @@ { - "name": "global-css", + "name": "nuxt-global-css", "description": "", "dependencies": { "bulma": "^0.2.3", diff --git a/examples/head-elements/package.json b/examples/head-elements/package.json new file mode 100644 index 0000000000..b06c061ade --- /dev/null +++ b/examples/head-elements/package.json @@ -0,0 +1,11 @@ +{ + "name": "nuxt-head-elements", + "dependencies": { + "nuxt": "latest" + }, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" + } +} diff --git a/examples/hello-world/package.json b/examples/hello-world/package.json new file mode 100644 index 0000000000..33d3b0501f --- /dev/null +++ b/examples/hello-world/package.json @@ -0,0 +1,11 @@ +{ + "name": "nuxt-hello-world", + "dependencies": { + "nuxt": "latest" + }, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" + } +} diff --git a/examples/nested-components/package.json b/examples/nested-components/package.json new file mode 100644 index 0000000000..cf348d5c6f --- /dev/null +++ b/examples/nested-components/package.json @@ -0,0 +1,11 @@ +{ + "name": "nuxt-nested-components", + "dependencies": { + "nuxt": "latest" + }, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" + } +} diff --git a/examples/plugins-vendor/package.json b/examples/plugins-vendor/package.json index 7b6278e1bb..71724527fe 100644 --- a/examples/plugins-vendor/package.json +++ b/examples/plugins-vendor/package.json @@ -1,5 +1,5 @@ { - "name": "shared-code", + "name": "nuxt-plugins-vendor", "description": "", "dependencies": { "axios": "^0.15.2", @@ -8,6 +8,8 @@ "vue-notifications": "^0.7.0" }, "scripts": { - "start": "nuxt" + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" } } diff --git a/examples/vuex-store/package.json b/examples/vuex-store/package.json new file mode 100644 index 0000000000..3bd4273fa4 --- /dev/null +++ b/examples/vuex-store/package.json @@ -0,0 +1,11 @@ +{ + "name": "nuxt-vuex-store", + "dependencies": { + "nuxt": "latest" + }, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" + } +} diff --git a/examples/with-ava/package.json b/examples/with-ava/package.json index 9f53c3a5e8..248e6b34eb 100755 --- a/examples/with-ava/package.json +++ b/examples/with-ava/package.json @@ -1,5 +1,5 @@ { - "name": "ava-tests", + "name": "nuxt-with-ava", "scripts": { "start": "../../bin/nuxt .", "test": "ava"