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
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",

View File

@ -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"
}
}

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": "",
"dependencies": {
"nuxt": "latest"
},
"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": "",
"dependencies": {
"axios": "^0.15.2",
"nuxt": "latest"
},
"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": "",
"dependencies": {
"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": "",
"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"
}
}

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": {
"start": "../../bin/nuxt .",
"test": "ava"