From 5673672ff9fd8ab69b3ed4d5a083357471cfaa35 Mon Sep 17 00:00:00 2001 From: Lauren Tan Date: Wed, 7 Jun 2023 14:40:42 -0400 Subject: [PATCH] Move playground to apps Generally we should reserve the `packages` directory for packages that are needed to run the compiler, while `apps` is for frontends that might make use of the compiler (and optionally, related packages) --- .../{packages => apps}/playground/.eslintrc.json | 0 .../forget/{packages => apps}/playground/.gitignore | 0 .../playground/.vscode/extensions.json | 0 .../forget/{packages => apps}/playground/README.md | 0 .../{packages => apps}/playground/app/index.tsx | 0 .../{packages => apps}/playground/app/layout.tsx | 0 .../{packages => apps}/playground/app/page.tsx | 0 .../forget/{packages => apps}/playground/colors.js | 0 .../playground/components/Editor/Input.tsx | 0 .../playground/components/Editor/Output.tsx | 0 .../playground/components/Editor/index.tsx | 0 .../playground/components/Editor/monacoOptions.ts | 0 .../playground/components/Header.tsx | 0 .../playground/components/Logo.tsx | 0 .../playground/components/Message.tsx | 0 .../playground/components/StoreContext.tsx | 0 .../playground/components/TabbedWindow.tsx | 0 .../playground/components/index.ts | 0 .../{packages => apps}/playground/hooks/index.ts | 0 .../playground/hooks/useMountEffect.ts | 0 .../playground/lib/createContext.ts | 0 .../playground/lib/defaultStore.ts | 0 .../playground/lib/forgetMonacoDiagnostics.ts | 0 .../playground/lib/stores/index.ts | 0 .../playground/lib/stores/messages.ts | 0 .../playground/lib/stores/store.ts | 0 .../{packages => apps}/playground/lib/utils.ts | 0 .../{packages => apps}/playground/next-env.d.ts | 0 .../{packages => apps}/playground/next.config.js | 0 .../{packages => apps}/playground/package.json | 0 .../{packages => apps}/playground/postcss.config.js | 0 .../playground/public/favicon.ico | Bin .../public/fonts/Source-Code-Pro-Regular.woff2 | Bin .../playground/public/graphvizlib.wasm | Bin .../playground/public/icon-180x180.png | Bin .../playground/public/site.webmanifest | 0 .../{packages => apps}/playground/public/vercel.svg | 0 .../playground/scripts/downloadFonts.js | 0 .../playground/styles/globals.css | 0 .../playground/tailwind.config.js | 0 .../{packages => apps}/playground/tsconfig.json | 0 .../{packages => apps}/playground/vercel.json | 0 .../forget/{packages => apps}/playground/yarn.lock | 0 compiler/forget/package.json | 2 +- 44 files changed, 1 insertion(+), 1 deletion(-) rename compiler/forget/{packages => apps}/playground/.eslintrc.json (100%) rename compiler/forget/{packages => apps}/playground/.gitignore (100%) rename compiler/forget/{packages => apps}/playground/.vscode/extensions.json (100%) rename compiler/forget/{packages => apps}/playground/README.md (100%) rename compiler/forget/{packages => apps}/playground/app/index.tsx (100%) rename compiler/forget/{packages => apps}/playground/app/layout.tsx (100%) rename compiler/forget/{packages => apps}/playground/app/page.tsx (100%) rename compiler/forget/{packages => apps}/playground/colors.js (100%) rename compiler/forget/{packages => apps}/playground/components/Editor/Input.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/Editor/Output.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/Editor/index.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/Editor/monacoOptions.ts (100%) rename compiler/forget/{packages => apps}/playground/components/Header.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/Logo.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/Message.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/StoreContext.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/TabbedWindow.tsx (100%) rename compiler/forget/{packages => apps}/playground/components/index.ts (100%) rename compiler/forget/{packages => apps}/playground/hooks/index.ts (100%) rename compiler/forget/{packages => apps}/playground/hooks/useMountEffect.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/createContext.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/defaultStore.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/forgetMonacoDiagnostics.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/stores/index.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/stores/messages.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/stores/store.ts (100%) rename compiler/forget/{packages => apps}/playground/lib/utils.ts (100%) rename compiler/forget/{packages => apps}/playground/next-env.d.ts (100%) rename compiler/forget/{packages => apps}/playground/next.config.js (100%) rename compiler/forget/{packages => apps}/playground/package.json (100%) rename compiler/forget/{packages => apps}/playground/postcss.config.js (100%) rename compiler/forget/{packages => apps}/playground/public/favicon.ico (100%) rename compiler/forget/{packages => apps}/playground/public/fonts/Source-Code-Pro-Regular.woff2 (100%) rename compiler/forget/{packages => apps}/playground/public/graphvizlib.wasm (100%) rename compiler/forget/{packages => apps}/playground/public/icon-180x180.png (100%) rename compiler/forget/{packages => apps}/playground/public/site.webmanifest (100%) rename compiler/forget/{packages => apps}/playground/public/vercel.svg (100%) rename compiler/forget/{packages => apps}/playground/scripts/downloadFonts.js (100%) rename compiler/forget/{packages => apps}/playground/styles/globals.css (100%) rename compiler/forget/{packages => apps}/playground/tailwind.config.js (100%) rename compiler/forget/{packages => apps}/playground/tsconfig.json (100%) rename compiler/forget/{packages => apps}/playground/vercel.json (100%) rename compiler/forget/{packages => apps}/playground/yarn.lock (100%) diff --git a/compiler/forget/packages/playground/.eslintrc.json b/compiler/forget/apps/playground/.eslintrc.json similarity index 100% rename from compiler/forget/packages/playground/.eslintrc.json rename to compiler/forget/apps/playground/.eslintrc.json diff --git a/compiler/forget/packages/playground/.gitignore b/compiler/forget/apps/playground/.gitignore similarity index 100% rename from compiler/forget/packages/playground/.gitignore rename to compiler/forget/apps/playground/.gitignore diff --git a/compiler/forget/packages/playground/.vscode/extensions.json b/compiler/forget/apps/playground/.vscode/extensions.json similarity index 100% rename from compiler/forget/packages/playground/.vscode/extensions.json rename to compiler/forget/apps/playground/.vscode/extensions.json diff --git a/compiler/forget/packages/playground/README.md b/compiler/forget/apps/playground/README.md similarity index 100% rename from compiler/forget/packages/playground/README.md rename to compiler/forget/apps/playground/README.md diff --git a/compiler/forget/packages/playground/app/index.tsx b/compiler/forget/apps/playground/app/index.tsx similarity index 100% rename from compiler/forget/packages/playground/app/index.tsx rename to compiler/forget/apps/playground/app/index.tsx diff --git a/compiler/forget/packages/playground/app/layout.tsx b/compiler/forget/apps/playground/app/layout.tsx similarity index 100% rename from compiler/forget/packages/playground/app/layout.tsx rename to compiler/forget/apps/playground/app/layout.tsx diff --git a/compiler/forget/packages/playground/app/page.tsx b/compiler/forget/apps/playground/app/page.tsx similarity index 100% rename from compiler/forget/packages/playground/app/page.tsx rename to compiler/forget/apps/playground/app/page.tsx diff --git a/compiler/forget/packages/playground/colors.js b/compiler/forget/apps/playground/colors.js similarity index 100% rename from compiler/forget/packages/playground/colors.js rename to compiler/forget/apps/playground/colors.js diff --git a/compiler/forget/packages/playground/components/Editor/Input.tsx b/compiler/forget/apps/playground/components/Editor/Input.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Editor/Input.tsx rename to compiler/forget/apps/playground/components/Editor/Input.tsx diff --git a/compiler/forget/packages/playground/components/Editor/Output.tsx b/compiler/forget/apps/playground/components/Editor/Output.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Editor/Output.tsx rename to compiler/forget/apps/playground/components/Editor/Output.tsx diff --git a/compiler/forget/packages/playground/components/Editor/index.tsx b/compiler/forget/apps/playground/components/Editor/index.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Editor/index.tsx rename to compiler/forget/apps/playground/components/Editor/index.tsx diff --git a/compiler/forget/packages/playground/components/Editor/monacoOptions.ts b/compiler/forget/apps/playground/components/Editor/monacoOptions.ts similarity index 100% rename from compiler/forget/packages/playground/components/Editor/monacoOptions.ts rename to compiler/forget/apps/playground/components/Editor/monacoOptions.ts diff --git a/compiler/forget/packages/playground/components/Header.tsx b/compiler/forget/apps/playground/components/Header.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Header.tsx rename to compiler/forget/apps/playground/components/Header.tsx diff --git a/compiler/forget/packages/playground/components/Logo.tsx b/compiler/forget/apps/playground/components/Logo.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Logo.tsx rename to compiler/forget/apps/playground/components/Logo.tsx diff --git a/compiler/forget/packages/playground/components/Message.tsx b/compiler/forget/apps/playground/components/Message.tsx similarity index 100% rename from compiler/forget/packages/playground/components/Message.tsx rename to compiler/forget/apps/playground/components/Message.tsx diff --git a/compiler/forget/packages/playground/components/StoreContext.tsx b/compiler/forget/apps/playground/components/StoreContext.tsx similarity index 100% rename from compiler/forget/packages/playground/components/StoreContext.tsx rename to compiler/forget/apps/playground/components/StoreContext.tsx diff --git a/compiler/forget/packages/playground/components/TabbedWindow.tsx b/compiler/forget/apps/playground/components/TabbedWindow.tsx similarity index 100% rename from compiler/forget/packages/playground/components/TabbedWindow.tsx rename to compiler/forget/apps/playground/components/TabbedWindow.tsx diff --git a/compiler/forget/packages/playground/components/index.ts b/compiler/forget/apps/playground/components/index.ts similarity index 100% rename from compiler/forget/packages/playground/components/index.ts rename to compiler/forget/apps/playground/components/index.ts diff --git a/compiler/forget/packages/playground/hooks/index.ts b/compiler/forget/apps/playground/hooks/index.ts similarity index 100% rename from compiler/forget/packages/playground/hooks/index.ts rename to compiler/forget/apps/playground/hooks/index.ts diff --git a/compiler/forget/packages/playground/hooks/useMountEffect.ts b/compiler/forget/apps/playground/hooks/useMountEffect.ts similarity index 100% rename from compiler/forget/packages/playground/hooks/useMountEffect.ts rename to compiler/forget/apps/playground/hooks/useMountEffect.ts diff --git a/compiler/forget/packages/playground/lib/createContext.ts b/compiler/forget/apps/playground/lib/createContext.ts similarity index 100% rename from compiler/forget/packages/playground/lib/createContext.ts rename to compiler/forget/apps/playground/lib/createContext.ts diff --git a/compiler/forget/packages/playground/lib/defaultStore.ts b/compiler/forget/apps/playground/lib/defaultStore.ts similarity index 100% rename from compiler/forget/packages/playground/lib/defaultStore.ts rename to compiler/forget/apps/playground/lib/defaultStore.ts diff --git a/compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts b/compiler/forget/apps/playground/lib/forgetMonacoDiagnostics.ts similarity index 100% rename from compiler/forget/packages/playground/lib/forgetMonacoDiagnostics.ts rename to compiler/forget/apps/playground/lib/forgetMonacoDiagnostics.ts diff --git a/compiler/forget/packages/playground/lib/stores/index.ts b/compiler/forget/apps/playground/lib/stores/index.ts similarity index 100% rename from compiler/forget/packages/playground/lib/stores/index.ts rename to compiler/forget/apps/playground/lib/stores/index.ts diff --git a/compiler/forget/packages/playground/lib/stores/messages.ts b/compiler/forget/apps/playground/lib/stores/messages.ts similarity index 100% rename from compiler/forget/packages/playground/lib/stores/messages.ts rename to compiler/forget/apps/playground/lib/stores/messages.ts diff --git a/compiler/forget/packages/playground/lib/stores/store.ts b/compiler/forget/apps/playground/lib/stores/store.ts similarity index 100% rename from compiler/forget/packages/playground/lib/stores/store.ts rename to compiler/forget/apps/playground/lib/stores/store.ts diff --git a/compiler/forget/packages/playground/lib/utils.ts b/compiler/forget/apps/playground/lib/utils.ts similarity index 100% rename from compiler/forget/packages/playground/lib/utils.ts rename to compiler/forget/apps/playground/lib/utils.ts diff --git a/compiler/forget/packages/playground/next-env.d.ts b/compiler/forget/apps/playground/next-env.d.ts similarity index 100% rename from compiler/forget/packages/playground/next-env.d.ts rename to compiler/forget/apps/playground/next-env.d.ts diff --git a/compiler/forget/packages/playground/next.config.js b/compiler/forget/apps/playground/next.config.js similarity index 100% rename from compiler/forget/packages/playground/next.config.js rename to compiler/forget/apps/playground/next.config.js diff --git a/compiler/forget/packages/playground/package.json b/compiler/forget/apps/playground/package.json similarity index 100% rename from compiler/forget/packages/playground/package.json rename to compiler/forget/apps/playground/package.json diff --git a/compiler/forget/packages/playground/postcss.config.js b/compiler/forget/apps/playground/postcss.config.js similarity index 100% rename from compiler/forget/packages/playground/postcss.config.js rename to compiler/forget/apps/playground/postcss.config.js diff --git a/compiler/forget/packages/playground/public/favicon.ico b/compiler/forget/apps/playground/public/favicon.ico similarity index 100% rename from compiler/forget/packages/playground/public/favicon.ico rename to compiler/forget/apps/playground/public/favicon.ico diff --git a/compiler/forget/packages/playground/public/fonts/Source-Code-Pro-Regular.woff2 b/compiler/forget/apps/playground/public/fonts/Source-Code-Pro-Regular.woff2 similarity index 100% rename from compiler/forget/packages/playground/public/fonts/Source-Code-Pro-Regular.woff2 rename to compiler/forget/apps/playground/public/fonts/Source-Code-Pro-Regular.woff2 diff --git a/compiler/forget/packages/playground/public/graphvizlib.wasm b/compiler/forget/apps/playground/public/graphvizlib.wasm similarity index 100% rename from compiler/forget/packages/playground/public/graphvizlib.wasm rename to compiler/forget/apps/playground/public/graphvizlib.wasm diff --git a/compiler/forget/packages/playground/public/icon-180x180.png b/compiler/forget/apps/playground/public/icon-180x180.png similarity index 100% rename from compiler/forget/packages/playground/public/icon-180x180.png rename to compiler/forget/apps/playground/public/icon-180x180.png diff --git a/compiler/forget/packages/playground/public/site.webmanifest b/compiler/forget/apps/playground/public/site.webmanifest similarity index 100% rename from compiler/forget/packages/playground/public/site.webmanifest rename to compiler/forget/apps/playground/public/site.webmanifest diff --git a/compiler/forget/packages/playground/public/vercel.svg b/compiler/forget/apps/playground/public/vercel.svg similarity index 100% rename from compiler/forget/packages/playground/public/vercel.svg rename to compiler/forget/apps/playground/public/vercel.svg diff --git a/compiler/forget/packages/playground/scripts/downloadFonts.js b/compiler/forget/apps/playground/scripts/downloadFonts.js similarity index 100% rename from compiler/forget/packages/playground/scripts/downloadFonts.js rename to compiler/forget/apps/playground/scripts/downloadFonts.js diff --git a/compiler/forget/packages/playground/styles/globals.css b/compiler/forget/apps/playground/styles/globals.css similarity index 100% rename from compiler/forget/packages/playground/styles/globals.css rename to compiler/forget/apps/playground/styles/globals.css diff --git a/compiler/forget/packages/playground/tailwind.config.js b/compiler/forget/apps/playground/tailwind.config.js similarity index 100% rename from compiler/forget/packages/playground/tailwind.config.js rename to compiler/forget/apps/playground/tailwind.config.js diff --git a/compiler/forget/packages/playground/tsconfig.json b/compiler/forget/apps/playground/tsconfig.json similarity index 100% rename from compiler/forget/packages/playground/tsconfig.json rename to compiler/forget/apps/playground/tsconfig.json diff --git a/compiler/forget/packages/playground/vercel.json b/compiler/forget/apps/playground/vercel.json similarity index 100% rename from compiler/forget/packages/playground/vercel.json rename to compiler/forget/apps/playground/vercel.json diff --git a/compiler/forget/packages/playground/yarn.lock b/compiler/forget/apps/playground/yarn.lock similarity index 100% rename from compiler/forget/packages/playground/yarn.lock rename to compiler/forget/apps/playground/yarn.lock diff --git a/compiler/forget/package.json b/compiler/forget/package.json index 4ed0e901f8..04912784bd 100644 --- a/compiler/forget/package.json +++ b/compiler/forget/package.json @@ -1,7 +1,7 @@ { "private": true, "workspaces": { - "packages": ["packages/*"], + "packages": ["packages/*", "apps/*"], "nohoist": ["**/next", "**/next/**"] }, "repository": {