Skip to content

Commit

Permalink
Add Zeit Next example
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbeerendonk committed Mar 3, 2017
1 parent 74a7dd3 commit d6ab7d2
Show file tree
Hide file tree
Showing 5 changed files with 59 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,12 @@ Issues/
node_modules/
npm-debug.log

#################
## zeit next
#################

.next/

#################
## Other
#################
Expand Down
29 changes: 29 additions & 0 deletions Extra 04 - Server Side Zeit Next/.vscode/tasks.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
// See https://go.microsoft.com/fwlink/?LinkId=733558
// for the documentation about the tasks.json format
"version": "0.1.0",
"command": "npm",
"isShellCommand": true,
"showOutput": "always",
"suppressTaskName": true,
"tasks": [
{
"taskName": "install",
"args": ["install"]
},
{
"taskName": "update",
"args": ["update"]
},
{
"taskName": "test",
"args": ["run", "test"]
},
{
"taskName": "dev",
"args": ["run", "dev"],
"isBuildCommand": true,
"isBackground": true
}
]
}
17 changes: 17 additions & 0 deletions Extra 04 - Server Side Zeit Next/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
{
"name": "zeit-next-demo",
"version": "1.0.0",
"description": "Server Side Rendering with Zeit Next",
"repository": {
"type": "git",
"url": "git+https://github.com/rickbeerendonk/react-examples.git"
},
"author": "Rick Beerendonk",
"license": "MPL-2.0",
"dependencies": {
"next": "^1.2.3"
},
"scripts": {
"dev": "next"
}
}
3 changes: 3 additions & 0 deletions Extra 04 - Server Side Zeit Next/pages/MyText.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import React from 'react'

export default ({text}) => <i>{text}</i>
4 changes: 4 additions & 0 deletions Extra 04 - Server Side Zeit Next/pages/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
import React from 'react';
import MyText from './MyText.js';

export default () => <h1>Hello <MyText text="world" />!</h1>

0 comments on commit d6ab7d2

Please sign in to comment.