From 16fdeada878378c5af5eacac2e29fe9feb40727c Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 12:23:28 +0000 Subject: [PATCH 01/13] Add post-update for yarn Importing this example to CodeSandbox doesn't work, but it does with this. --- examples/gatsby/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/gatsby/package.json b/examples/gatsby/package.json index eff5734f5a93ac..b7da2461b4fecb 100644 --- a/examples/gatsby/package.json +++ b/examples/gatsby/package.json @@ -14,6 +14,7 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "serve": "gatsby serve" + "serve": "gatsby serve", + "post-update": "yarn upgrade --latest" } } From 870d2a289061ecac4be2acf0d79230e68dfa175b Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 12:24:05 +0000 Subject: [PATCH 02/13] Add post-update for yarn Importing this example to CodeSandbox doesn't work, but it does with this. --- examples/nextjs/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index e7e0296809b7aa..6d0a2755cdd871 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -13,6 +13,7 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "post-update": "yarn upgrade --latest" } } From 05b6f9082897d2996e14e59180174e76766188c4 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:00:39 +0000 Subject: [PATCH 03/13] Adding post-update for CodeSandbox --- examples/create-react-app-with-typescript/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/create-react-app-with-typescript/package.json b/examples/create-react-app-with-typescript/package.json index 9875161b0e93d3..da2b5b71101fda 100644 --- a/examples/create-react-app-with-typescript/package.json +++ b/examples/create-react-app-with-typescript/package.json @@ -15,6 +15,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" } } From 06081c1abb3b9a33393e77697219ff82dd8456c6 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:01:17 +0000 Subject: [PATCH 04/13] Adding post-update for CodeSandbox --- examples/create-react-app/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/create-react-app/package.json b/examples/create-react-app/package.json index 5db2f0fc65be94..58764a56f5063c 100644 --- a/examples/create-react-app/package.json +++ b/examples/create-react-app/package.json @@ -6,7 +6,8 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject" + "eject": "react-scripts eject", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" }, "dependencies": { "@material-ui/core": "latest", From 234a0ed7ea09372208266c0c2a6fa47800fdb52c Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:01:45 +0000 Subject: [PATCH 05/13] Adding post-update for CodeSandbox --- examples/gatsby-theme/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/gatsby-theme/package.json b/examples/gatsby-theme/package.json index 5f0b0e99f93cbf..774c7094f4ed29 100644 --- a/examples/gatsby-theme/package.json +++ b/examples/gatsby-theme/package.json @@ -13,6 +13,7 @@ "scripts": { "develop": "gatsby develop", "build": "gatsby build", - "serve": "gatsby serve" + "serve": "gatsby serve", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" } } From 8fb39591f7e0aa21e0ab528826afb86dc37cd2fe Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:02:19 +0000 Subject: [PATCH 06/13] Editing post-update for CodeSandbox --- examples/gatsby/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/gatsby/package.json b/examples/gatsby/package.json index b7da2461b4fecb..7f3eb6858d96f2 100644 --- a/examples/gatsby/package.json +++ b/examples/gatsby/package.json @@ -15,6 +15,6 @@ "develop": "gatsby develop", "build": "gatsby build", "serve": "gatsby serve", - "post-update": "yarn upgrade --latest" + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" } } From 2d2ca389b06bee538377d318480cc2c7bd970321 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:02:50 +0000 Subject: [PATCH 07/13] Adding post-update for CodeSandbox --- examples/nextjs-with-typescript/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/nextjs-with-typescript/package.json b/examples/nextjs-with-typescript/package.json index f9df97fe67f3db..2e357389338e66 100644 --- a/examples/nextjs-with-typescript/package.json +++ b/examples/nextjs-with-typescript/package.json @@ -12,7 +12,8 @@ "scripts": { "dev": "next", "build": "next build", - "start": "next start" + "start": "next start", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" }, "devDependencies": { "@types/next": "latest", From 8ffccfe51f029d0af3bf68190f46b3ab9563a1ae Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:03:23 +0000 Subject: [PATCH 08/13] Editing post-update for CodeSandbox --- examples/nextjs/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/nextjs/package.json b/examples/nextjs/package.json index 6d0a2755cdd871..ef30e3f7fa735d 100644 --- a/examples/nextjs/package.json +++ b/examples/nextjs/package.json @@ -14,6 +14,6 @@ "dev": "next", "build": "next build", "start": "next start", - "post-update": "yarn upgrade --latest" + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" } } From 7d2349fd8a5a56586eb455483419dc0bbf445dfe Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:04:32 +0000 Subject: [PATCH 09/13] Adding post-update for CodeSandbox --- examples/preact/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/preact/package.json b/examples/preact/package.json index 038424e86b630c..c88aea592bb1f3 100644 --- a/examples/preact/package.json +++ b/examples/preact/package.json @@ -59,7 +59,8 @@ "scripts": { "start": "node scripts/start.js", "build": "node scripts/build.js", - "test": "node scripts/test.js" + "test": "node scripts/test.js", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" }, "browserslist": [ ">0.2%", From 6825a18e32bfa2320bd985729267bc52d205c9a9 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:07:11 +0000 Subject: [PATCH 10/13] Adding post-update for CodeSandbox --- examples/ssr/package.json | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/examples/ssr/package.json b/examples/ssr/package.json index 46d265ddc0f935..d2b79296c9342d 100644 --- a/examples/ssr/package.json +++ b/examples/ssr/package.json @@ -23,6 +23,7 @@ "start": "npm-run-all -p build serve", "build": "webpack -w", "serve": "nodemon --ignore ./build --exec babel-node -- server.js", - "production": "cross-env NODE_ENV=production npm start" + "production": "cross-env NODE_ENV=production npm start", + "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" } } From 0ae968459bed38429ea2eb55eab87dfc4db5ec6c Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:08:55 +0000 Subject: [PATCH 11/13] Adding link to sandbox --- examples/preact/README.md | 3 +++ 1 file changed, 3 insertions(+) diff --git a/examples/preact/README.md b/examples/preact/README.md index 30317a938a3575..57920ec6259481 100644 --- a/examples/preact/README.md +++ b/examples/preact/README.md @@ -15,6 +15,9 @@ Install it and run: npm install npm run start ``` +or: + +[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/mui-org/material-ui/tree/master/examples/preact) ## The idea behind the example From 372b9ea26e83f5f15dce2d642bee796230a15ca9 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:15:02 +0000 Subject: [PATCH 12/13] Removing post-update Added in error - not required as it's a client sandbox, not container. --- examples/create-react-app/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/create-react-app/package.json b/examples/create-react-app/package.json index 58764a56f5063c..5db2f0fc65be94 100644 --- a/examples/create-react-app/package.json +++ b/examples/create-react-app/package.json @@ -6,8 +6,7 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject", - "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" + "eject": "react-scripts eject" }, "dependencies": { "@material-ui/core": "latest", From dd0c5fc17e8bf183ee00af9667fae184b0f7eea9 Mon Sep 17 00:00:00 2001 From: garethx Date: Fri, 7 Feb 2020 14:15:29 +0000 Subject: [PATCH 13/13] Removing post-update Added in error - not required as it's a client sandbox, not container. --- examples/create-react-app-with-typescript/package.json | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/examples/create-react-app-with-typescript/package.json b/examples/create-react-app-with-typescript/package.json index da2b5b71101fda..9875161b0e93d3 100644 --- a/examples/create-react-app-with-typescript/package.json +++ b/examples/create-react-app-with-typescript/package.json @@ -15,7 +15,6 @@ "start": "react-scripts start", "build": "react-scripts build", "test": "react-scripts test", - "eject": "react-scripts eject", - "post-update": "echo \"codesandbox preview only, need an update\" && yarn upgrade --latest" + "eject": "react-scripts eject" } }