Skip to content

Commit 837a2de

Browse files
authored
Merge pull request #257 from FormidableLabs/jp-update-demo
update demo site
2 parents 4ef3706 + 3a29eb8 commit 837a2de

File tree

6 files changed

+1825
-3414
lines changed

6 files changed

+1825
-3414
lines changed

demo/.eslintrc

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
{
2+
"root": true,
3+
"extends": [
4+
"next",
5+
"next/core-web-vitals"
6+
]
7+
}

demo/netlify.toml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
[build.environment]
2+
NODE_VERSION = "12"

demo/next.config.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
const path = require('path');
22

33
module.exports = {
4+
reactStrictMode: true,
45
webpack: config => {
56
config.resolve.alias['react-live'] = path.resolve('../');
67

demo/package.json

Lines changed: 17 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,32 @@
11
{
22
"name": "react-live-demo",
3-
"version": "1.1.0",
3+
"version": "1.2.0",
44
"private": true,
55
"license": "MIT",
66
"scripts": {
77
"prebuild": "cd .. && yarn && yarn build",
88
"prebuild:npm": "cd .. && npm i && npm run build",
99
"dev": "next dev",
1010
"build": "next build && next export",
11-
"start": "next start"
11+
"start": "next start",
12+
"lint": "next lint"
1213
},
1314
"dependencies": {
14-
"formidable-oss-badges": "^0.3.5",
15-
"next": "9.5.3",
16-
"polished": "^3.6.7",
17-
"react": "16.13.1",
18-
"react-dom": "16.13.1",
19-
"react-live": "^2.2.2",
20-
"styled-components": "^5.2.0"
15+
"formidable-oss-badges": "^0.3.6",
16+
"next": "11.0.0",
17+
"polished": "^4.1.3",
18+
"react": "17.0.2",
19+
"react-dom": "17.0.2",
20+
"react-live": "^2.2.3",
21+
"styled-components": "^5.3.0"
2122
},
2223
"devDependencies": {
2324
"babel-plugin-polished": "^1.1.0",
24-
"babel-plugin-styled-components": "^1.11.1"
25+
"babel-plugin-styled-components": "^1.12.0",
26+
"eslint": "7.29.0",
27+
"eslint-config-next": "11.0.0"
28+
},
29+
"engines": {
30+
"node": ">=12.0.0"
2531
}
26-
}
32+
}

demo/pages/index.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,8 +106,8 @@ class Index extends Component {
106106

107107
<Description>
108108
If you want to demo a couple of components in tandem, without
109-
evaluating a single one inline, you can use the "noInline" prop and
110-
call "render".
109+
evaluating a single one inline, you can use the &quot;noInline&quot; prop and
110+
call &quot;render&quot;.
111111
</Description>
112112
<LiveEdit noInline code={noInlineExample} />
113113
</Container>

0 commit comments

Comments
 (0)