aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/examples/with-tailwind/apps/web
diff options
context:
space:
mode:
Diffstat (limited to 'examples/with-tailwind/apps/web')
-rw-r--r--examples/with-tailwind/apps/web/.eslintrc.js4
-rw-r--r--examples/with-tailwind/apps/web/.gitignore34
-rw-r--r--examples/with-tailwind/apps/web/README.md30
-rw-r--r--examples/with-tailwind/apps/web/next-env.d.ts5
-rw-r--r--examples/with-tailwind/apps/web/next.config.js3
-rw-r--r--examples/with-tailwind/apps/web/package.json29
-rw-r--r--examples/with-tailwind/apps/web/postcss.config.js9
-rw-r--r--examples/with-tailwind/apps/web/src/pages/_app.tsx9
-rw-r--r--examples/with-tailwind/apps/web/src/pages/_document.tsx32
-rw-r--r--examples/with-tailwind/apps/web/src/pages/index.tsx48
-rw-r--r--examples/with-tailwind/apps/web/src/styles/globals.css3
-rw-r--r--examples/with-tailwind/apps/web/tailwind.config.js7
-rw-r--r--examples/with-tailwind/apps/web/tsconfig.json5
13 files changed, 0 insertions, 218 deletions
diff --git a/examples/with-tailwind/apps/web/.eslintrc.js b/examples/with-tailwind/apps/web/.eslintrc.js
deleted file mode 100644
index c8df607..0000000
--- a/examples/with-tailwind/apps/web/.eslintrc.js
+++ /dev/null
@@ -1,4 +0,0 @@
-module.exports = {
- root: true,
- extends: ["custom"],
-};
diff --git a/examples/with-tailwind/apps/web/.gitignore b/examples/with-tailwind/apps/web/.gitignore
deleted file mode 100644
index 1437c53..0000000
--- a/examples/with-tailwind/apps/web/.gitignore
+++ /dev/null
@@ -1,34 +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
-.env.development.local
-.env.test.local
-.env.production.local
-
-# vercel
-.vercel
diff --git a/examples/with-tailwind/apps/web/README.md b/examples/with-tailwind/apps/web/README.md
deleted file mode 100644
index 4fae62a..0000000
--- a/examples/with-tailwind/apps/web/README.md
+++ /dev/null
@@ -1,30 +0,0 @@
-## Getting Started
-
-First, run the development server:
-
-```bash
-yarn dev
-```
-
-Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.
-
-You can start editing the page by modifying `pages/index.js`. The page auto-updates as you edit the file.
-
-[API routes](https://nextjs.org/docs/api-routes/introduction) can be accessed on [http://localhost:3000/api/hello](http://localhost:3000/api/hello). This endpoint can be edited in `pages/api/hello.js`.
-
-The `pages/api` directory is mapped to `/api/*`. Files in this directory are treated as [API routes](https://nextjs.org/docs/api-routes/introduction) instead of React pages.
-
-## 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/foundations/about-nextjs) - 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_source=github.com&utm_medium=referral&utm_campaign=turborepo-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/examples/with-tailwind/apps/web/next-env.d.ts b/examples/with-tailwind/apps/web/next-env.d.ts
deleted file mode 100644
index 4f11a03..0000000
--- a/examples/with-tailwind/apps/web/next-env.d.ts
+++ /dev/null
@@ -1,5 +0,0 @@
-/// <reference types="next" />
-/// <reference types="next/image-types/global" />
-
-// NOTE: This file should not be edited
-// see https://nextjs.org/docs/basic-features/typescript for more information.
diff --git a/examples/with-tailwind/apps/web/next.config.js b/examples/with-tailwind/apps/web/next.config.js
deleted file mode 100644
index da1bb77..0000000
--- a/examples/with-tailwind/apps/web/next.config.js
+++ /dev/null
@@ -1,3 +0,0 @@
-module.exports = {
- reactStrictMode: true,
-};
diff --git a/examples/with-tailwind/apps/web/package.json b/examples/with-tailwind/apps/web/package.json
deleted file mode 100644
index 17834e5..0000000
--- a/examples/with-tailwind/apps/web/package.json
+++ /dev/null
@@ -1,29 +0,0 @@
-{
- "name": "web",
- "version": "1.0.0",
- "private": true,
- "scripts": {
- "dev": "next dev",
- "build": "next build",
- "start": "next start",
- "lint": "next lint"
- },
- "dependencies": {
- "next": "latest",
- "react": "^18.2.0",
- "react-dom": "^18.2.0",
- "ui": "workspace:*"
- },
- "devDependencies": {
- "@types/node": "^18.11.17",
- "@types/react": "^18.0.26",
- "@types/react-dom": "^18.0.9",
- "autoprefixer": "^10.4.13",
- "eslint-config-custom": "workspace:*",
- "postcss": "^8.4.20",
- "tailwind-config": "workspace:*",
- "tailwindcss": "^3.2.4",
- "tsconfig": "workspace:*",
- "typescript": "^4.9.4"
- }
-}
diff --git a/examples/with-tailwind/apps/web/postcss.config.js b/examples/with-tailwind/apps/web/postcss.config.js
deleted file mode 100644
index 07aa434..0000000
--- a/examples/with-tailwind/apps/web/postcss.config.js
+++ /dev/null
@@ -1,9 +0,0 @@
-// If you want to use other PostCSS plugins, see the following:
-// https://tailwindcss.com/docs/using-with-preprocessors
-
-module.exports = {
- plugins: {
- tailwindcss: {},
- autoprefixer: {},
- },
-};
diff --git a/examples/with-tailwind/apps/web/src/pages/_app.tsx b/examples/with-tailwind/apps/web/src/pages/_app.tsx
deleted file mode 100644
index cab70f5..0000000
--- a/examples/with-tailwind/apps/web/src/pages/_app.tsx
+++ /dev/null
@@ -1,9 +0,0 @@
-import "../styles/globals.css";
-// include styles from the ui package
-import "ui/styles.css";
-
-import type { AppProps } from "next/app";
-
-export default function MyApp({ Component, pageProps }: AppProps) {
- return <Component {...pageProps} />;
-}
diff --git a/examples/with-tailwind/apps/web/src/pages/_document.tsx b/examples/with-tailwind/apps/web/src/pages/_document.tsx
deleted file mode 100644
index a091efe..0000000
--- a/examples/with-tailwind/apps/web/src/pages/_document.tsx
+++ /dev/null
@@ -1,32 +0,0 @@
-import Document, {
- DocumentContext,
- DocumentInitialProps,
- Html,
- Head,
- Main,
- NextScript,
-} from "next/document";
-
-class MyDocument extends Document {
- static async getInitialProps(
- ctx: DocumentContext
- ): Promise<DocumentInitialProps> {
- const initialProps = await Document.getInitialProps(ctx);
-
- return initialProps;
- }
-
- render() {
- return (
- <Html className="bg-zinc-900">
- <Head />
- <body>
- <Main />
- <NextScript />
- </body>
- </Html>
- );
- }
-}
-
-export default MyDocument;
diff --git a/examples/with-tailwind/apps/web/src/pages/index.tsx b/examples/with-tailwind/apps/web/src/pages/index.tsx
deleted file mode 100644
index 27f57cb..0000000
--- a/examples/with-tailwind/apps/web/src/pages/index.tsx
+++ /dev/null
@@ -1,48 +0,0 @@
-import Head from "next/head";
-import { Button, Card } from "ui";
-
-const CARD_CONTENT = [
- {
- title: "Caching Tasks",
- href: "https://turbo.build/repo/docs/core-concepts/caching",
- cta: "Read More",
- },
- {
- title: "Running Tasks",
- href: "https://turbo.build/repo/docs/core-concepts/monorepos/running-tasks",
- cta: "Read More",
- },
- {
- title: "Configuration Options",
- href: "https://turbo.build/repo/docs/reference/configuration",
- cta: "Read More",
- },
-];
-
-export default function Home() {
- return (
- <div className="flex min-h-screen flex-col items-center justify-center py-2">
- <Head>
- <title>Web - Turborepo Example</title>
- </Head>
-
- <main className="mx-auto w-auto px-4 pt-16 pb-8 sm:pt-24 lg:px-8">
- <h1 className="mx-auto text-center text-6xl font-extrabold tracking-tight text-white sm:text-7xl lg:text-8xl xl:text-8xl">
- Web
- <span className="block bg-gradient-to-r from-brandred to-brandblue bg-clip-text text-transparent px-2">
- Turborepo Example
- </span>
- </h1>
- <div className="mx-auto mt-5 max-w-xl sm:flex sm:justify-center md:mt-8">
- <Button />
- </div>
-
- <div className="mt-12 grid grid-cols-1 sm:grid-cols-3 gap-4 place-content-evenly">
- {CARD_CONTENT.map((card) => (
- <Card key={card.title} {...card} />
- ))}
- </div>
- </main>
- </div>
- );
-}
diff --git a/examples/with-tailwind/apps/web/src/styles/globals.css b/examples/with-tailwind/apps/web/src/styles/globals.css
deleted file mode 100644
index b5c61c9..0000000
--- a/examples/with-tailwind/apps/web/src/styles/globals.css
+++ /dev/null
@@ -1,3 +0,0 @@
-@tailwind base;
-@tailwind components;
-@tailwind utilities;
diff --git a/examples/with-tailwind/apps/web/tailwind.config.js b/examples/with-tailwind/apps/web/tailwind.config.js
deleted file mode 100644
index cc78ae3..0000000
--- a/examples/with-tailwind/apps/web/tailwind.config.js
+++ /dev/null
@@ -1,7 +0,0 @@
-// tailwind config is required for editor support
-
-const sharedConfig = require("tailwind-config/tailwind.config.js");
-
-module.exports = {
- presets: [sharedConfig],
-};
diff --git a/examples/with-tailwind/apps/web/tsconfig.json b/examples/with-tailwind/apps/web/tsconfig.json
deleted file mode 100644
index a355365..0000000
--- a/examples/with-tailwind/apps/web/tsconfig.json
+++ /dev/null
@@ -1,5 +0,0 @@
-{
- "extends": "tsconfig/nextjs.json",
- "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
- "exclude": ["node_modules"]
-}