mirror of
https://github.com/nuxt/nuxt.git
synced 2025-01-19 09:55:53 +00:00
Add package.jsonn in examples
This commit is contained in:
parent
179a806a36
commit
b9680bc3ea
@ -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",
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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>
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "global-css",
|
||||
"name": "nuxt-global-css",
|
||||
"description": "",
|
||||
"dependencies": {
|
||||
"bulma": "^0.2.3",
|
||||
|
11
examples/head-elements/package.json
Normal file
11
examples/head-elements/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "nuxt-head-elements",
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
}
|
||||
}
|
11
examples/hello-world/package.json
Normal file
11
examples/hello-world/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "nuxt-hello-world",
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
}
|
||||
}
|
11
examples/nested-components/package.json
Normal file
11
examples/nested-components/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "nuxt-nested-components",
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
}
|
||||
}
|
@ -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"
|
||||
}
|
||||
}
|
||||
|
11
examples/vuex-store/package.json
Normal file
11
examples/vuex-store/package.json
Normal file
@ -0,0 +1,11 @@
|
||||
{
|
||||
"name": "nuxt-vuex-store",
|
||||
"dependencies": {
|
||||
"nuxt": "latest"
|
||||
},
|
||||
"scripts": {
|
||||
"dev": "nuxt",
|
||||
"build": "nuxt build",
|
||||
"start": "nuxt start"
|
||||
}
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
{
|
||||
"name": "ava-tests",
|
||||
"name": "nuxt-with-ava",
|
||||
"scripts": {
|
||||
"start": "../../bin/nuxt .",
|
||||
"test": "ava"
|
||||
|
Loading…
Reference in New Issue
Block a user