Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions demo/.eslintrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"root": true,
"extends": [
"next",
"next/core-web-vitals"
]
}
2 changes: 2 additions & 0 deletions demo/netlify.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[build.environment]
NODE_VERSION = "12"
1 change: 1 addition & 0 deletions demo/next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
const path = require('path');

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

Expand Down
28 changes: 17 additions & 11 deletions demo/package.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,32 @@
{
"name": "react-live-demo",
"version": "1.1.0",
"version": "1.2.0",
"private": true,
"license": "MIT",
"scripts": {
"prebuild": "cd .. && yarn && yarn build",
"prebuild:npm": "cd .. && npm i && npm run build",
"dev": "next dev",
"build": "next build && next export",
"start": "next start"
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"formidable-oss-badges": "^0.3.5",
"next": "9.5.3",
"polished": "^3.6.7",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-live": "^2.2.2",
"styled-components": "^5.2.0"
"formidable-oss-badges": "^0.3.6",
"next": "11.0.0",
"polished": "^4.1.3",
"react": "17.0.2",
"react-dom": "17.0.2",
"react-live": "^2.2.3",
"styled-components": "^5.3.0"
},
"devDependencies": {
"babel-plugin-polished": "^1.1.0",
"babel-plugin-styled-components": "^1.11.1"
"babel-plugin-styled-components": "^1.12.0",
"eslint": "7.29.0",
"eslint-config-next": "11.0.0"
},
"engines": {
"node": ">=12.0.0"
}
}
}
4 changes: 2 additions & 2 deletions demo/pages/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,8 +106,8 @@ class Index extends Component {

<Description>
If you want to demo a couple of components in tandem, without
evaluating a single one inline, you can use the "noInline" prop and
call "render".
evaluating a single one inline, you can use the &quot;noInline&quot; prop and
call &quot;render&quot;.
</Description>
<LiveEdit noInline code={noInlineExample} />
</Container>
Expand Down
Loading