Add package.jsonn in examples

This commit is contained in:
Sébastien Chopin 2016-11-10 14:30:18 +01:00
parent 179a806a36
commit b9680bc3ea
12 changed files with 64 additions and 30 deletions

View File

@ -123,7 +123,7 @@ bin/nuxt examples/hello-world
## Production deployment ## 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 ```bash
nuxt build nuxt build
@ -135,7 +135,7 @@ For example, to deploy with [`now`](https://zeit.co/now) a `package.json` like f
{ {
"name": "my-app", "name": "my-app",
"dependencies": { "dependencies": {
"next": "latest" "nuxt": "latest"
}, },
"scripts": { "scripts": {
"dev": "nuxt", "dev": "nuxt",

View File

@ -1,11 +1,13 @@
{ {
"name": "async-data", "name": "nuxt-async-data",
"description": "", "description": "",
"dependencies": { "dependencies": {
"axios": "^0.15.2", "axios": "^0.15.2",
"nuxt": "latest" "nuxt": "latest"
}, },
"scripts": { "scripts": {
"start": "nuxt" "dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
} }
} }

View File

@ -1,18 +0,0 @@
<template>
<div class="basic-css">
<p>Hello World</p>
</div>
</template>
<style>
.basic-css {
font: 15px Helvetica, Arial, sans-serif;
background: #eee;
padding: 100px;
text-align: center;
transition: 100ms ease-in background;
}
.basic-css:hover {
background: #ccc
}
</style>

View File

@ -1,10 +1,12 @@
{ {
"name": "custom-build", "name": "nuxt-custom-build",
"description": "", "description": "",
"dependencies": { "dependencies": {
"nuxt": "latest" "nuxt": "latest"
}, },
"scripts": { "scripts": {
"start": "nuxt" "dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
} }
} }

View File

@ -1,11 +1,13 @@
{ {
"name": "custom-routes", "name": "nuxt-custom-routes",
"description": "", "description": "",
"dependencies": { "dependencies": {
"axios": "^0.15.2", "axios": "^0.15.2",
"nuxt": "latest" "nuxt": "latest"
}, },
"scripts": { "scripts": {
"start": "nuxt" "dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
} }
} }

View File

@ -1,5 +1,5 @@
{ {
"name": "global-css", "name": "nuxt-global-css",
"description": "", "description": "",
"dependencies": { "dependencies": {
"bulma": "^0.2.3", "bulma": "^0.2.3",

View File

@ -0,0 +1,11 @@
{
"name": "nuxt-head-elements",
"dependencies": {
"nuxt": "latest"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
}
}

View File

@ -0,0 +1,11 @@
{
"name": "nuxt-hello-world",
"dependencies": {
"nuxt": "latest"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
}
}

View File

@ -0,0 +1,11 @@
{
"name": "nuxt-nested-components",
"dependencies": {
"nuxt": "latest"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
}
}

View File

@ -1,5 +1,5 @@
{ {
"name": "shared-code", "name": "nuxt-plugins-vendor",
"description": "", "description": "",
"dependencies": { "dependencies": {
"axios": "^0.15.2", "axios": "^0.15.2",
@ -8,6 +8,8 @@
"vue-notifications": "^0.7.0" "vue-notifications": "^0.7.0"
}, },
"scripts": { "scripts": {
"start": "nuxt" "dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
} }
} }

View File

@ -0,0 +1,11 @@
{
"name": "nuxt-vuex-store",
"dependencies": {
"nuxt": "latest"
},
"scripts": {
"dev": "nuxt",
"build": "nuxt build",
"start": "nuxt start"
}
}

View File

@ -1,5 +1,5 @@
{ {
"name": "ava-tests", "name": "nuxt-with-ava",
"scripts": { "scripts": {
"start": "../../bin/nuxt .", "start": "../../bin/nuxt .",
"test": "ava" "test": "ava"