diff --git a/apps/www/.eslintrc.json b/apps/www/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/apps/www/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/apps/www/.gitignore b/apps/www/.gitignore deleted file mode 100644 index 8f322f0..0000000 --- a/apps/www/.gitignore +++ /dev/null @@ -1,35 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js - -# testing -/coverage - -# next.js -/.next/ -/out/ - -# production -/build - -# misc -.DS_Store -*.pem - -# debug -npm-debug.log* -yarn-debug.log* -yarn-error.log* - -# local env files -.env*.local - -# vercel -.vercel - -# typescript -*.tsbuildinfo -next-env.d.ts diff --git a/apps/www/README.md b/apps/www/README.md deleted file mode 100644 index f4da3c4..0000000 --- a/apps/www/README.md +++ /dev/null @@ -1,34 +0,0 @@ -This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app). - -## Getting Started - -First, run the development server: - -```bash -npm run dev -# or -yarn dev -# or -pnpm dev -``` - -Open [http://localhost:3000](http://localhost:3000) with your browser to see the result. - -You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file. - -This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font. - -## Learn More - -To learn more about Next.js, take a look at the following resources: - -- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API. -- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial. - -You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome! - -## Deploy on Vercel - -The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js. - -Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details. diff --git a/apps/www/next.config.js b/apps/www/next.config.js deleted file mode 100644 index 767719f..0000000 --- a/apps/www/next.config.js +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {} - -module.exports = nextConfig diff --git a/apps/www/package.json b/apps/www/package.json deleted file mode 100644 index 271df73..0000000 --- a/apps/www/package.json +++ /dev/null @@ -1,30 +0,0 @@ -{ - "name": "www", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint" - }, - "dependencies": { - "@medusajs/ui": "*", - "@shopify/polaris": "^11.5.3", - "next": "13.4.7", - "react": "18.2.0", - "react-dom": "18.2.0" - }, - "devDependencies": { - "@medusajs/ui-preset": "*", - "@types/node": "20.3.2", - "@types/react": "18.2.14", - "@types/react-dom": "18.2.6", - "autoprefixer": "10.4.14", - "eslint": "8.43.0", - "eslint-config-next": "13.4.7", - "postcss": "8.4.24", - "tailwindcss": "3.3.2", - "typescript": "5.1.6" - } -} diff --git a/apps/www/postcss.config.js b/apps/www/postcss.config.js deleted file mode 100644 index 33ad091..0000000 --- a/apps/www/postcss.config.js +++ /dev/null @@ -1,6 +0,0 @@ -module.exports = { - plugins: { - tailwindcss: {}, - autoprefixer: {}, - }, -} diff --git a/apps/www/public/next.svg b/apps/www/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/apps/www/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/www/public/vercel.svg b/apps/www/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/apps/www/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/apps/www/src/app/client-wrapper.tsx b/apps/www/src/app/client-wrapper.tsx deleted file mode 100644 index 5459006..0000000 --- a/apps/www/src/app/client-wrapper.tsx +++ /dev/null @@ -1,32 +0,0 @@ -"use client" - -import { Badge, Button, useAlertDialog } from "@medusajs/ui" -import { useState } from "react" - -const ClientWrapper = () => { - const [state, setState] = useState(false) - const alert = useAlertDialog() - - const handleClick = async () => { - const result = await alert({ - title: "Are you sure?", - description: "Are you sure you want to delete this item?", - cancelText: "Cancel", - confirmText: "Delete", - verificationText: "delete", - }) - - setState(result) - } - - return ( -
- - {state ? "OK" : "Not OK"} -
- ) -} - -export default ClientWrapper diff --git a/apps/www/src/app/favicon.ico b/apps/www/src/app/favicon.ico deleted file mode 100644 index 718d6fe..0000000 Binary files a/apps/www/src/app/favicon.ico and /dev/null differ diff --git a/apps/www/src/app/globals.css b/apps/www/src/app/globals.css deleted file mode 100644 index b5c61c9..0000000 --- a/apps/www/src/app/globals.css +++ /dev/null @@ -1,3 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; diff --git a/apps/www/src/app/layout.tsx b/apps/www/src/app/layout.tsx deleted file mode 100644 index c8f8cac..0000000 --- a/apps/www/src/app/layout.tsx +++ /dev/null @@ -1,21 +0,0 @@ -import { Inter } from "next/font/google" -import "./globals.css" - -const inter = Inter({ subsets: ["latin"] }) - -export const metadata = { - title: "Create Next App", - description: "Generated by create next app", -} - -export default function RootLayout({ - children, -}: { - children: React.ReactNode -}) { - return ( - - {children} - - ) -} diff --git a/apps/www/src/app/page.tsx b/apps/www/src/app/page.tsx deleted file mode 100644 index df400a3..0000000 --- a/apps/www/src/app/page.tsx +++ /dev/null @@ -1,9 +0,0 @@ -import ClientWrapper from "./client-wrapper" - -export default function Home() { - return ( -
- -
- ) -} diff --git a/apps/www/tailwind.config.js b/apps/www/tailwind.config.js deleted file mode 100644 index a002d92..0000000 --- a/apps/www/tailwind.config.js +++ /dev/null @@ -1,28 +0,0 @@ -const preset = require("@medusajs/ui-preset") -const path = require("path") - -const uiPath = path.dirname(require.resolve("@medusajs/ui/package.json")) - -console.log(uiPath) - -/** @type {import('tailwindcss').Config} */ -module.exports = { - presets: [preset], - content: [ - "./src/pages/**/*.{js,ts,jsx,tsx,mdx}", - "./src/components/**/*.{js,ts,jsx,tsx,mdx}", - "./src/app/**/*.{js,ts,jsx,tsx,mdx}", - `${uiPath}/**/*.js`, - ], - darkMode: "class", // or 'media' or 'class - theme: { - extend: { - backgroundImage: { - "gradient-radial": "radial-gradient(var(--tw-gradient-stops))", - "gradient-conic": - "conic-gradient(from 180deg at 50% 50%, var(--tw-gradient-stops))", - }, - }, - }, - plugins: [], -} diff --git a/apps/www/tsconfig.json b/apps/www/tsconfig.json deleted file mode 100644 index 0c7555f..0000000 --- a/apps/www/tsconfig.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "compilerOptions": { - "target": "es5", - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "forceConsistentCasingInFileNames": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "node", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "@/*": ["./src/*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -} diff --git a/package.json b/package.json index 17bef7c..58ce1b2 100644 --- a/package.json +++ b/package.json @@ -1,4 +1,5 @@ { + "name": "medusa-ui", "private": true, "scripts": { "test": "turbo run test", @@ -29,10 +30,8 @@ "turbo": "latest", "typescript": "^5.1.6" }, - "name": "medusa-ui", "packageManager": "yarn@3.5.0", "workspaces": [ - "apps/*", "packages/*", "tools/*", "configs/*"