diff --git a/examples/with-windicss/.gitignore b/examples/with-windicss/.gitignore deleted file mode 100644 index 8777267507c0ee..00000000000000 --- a/examples/with-windicss/.gitignore +++ /dev/null @@ -1,40 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.* -.yarn/* -!.yarn/patches -!.yarn/plugins -!.yarn/releases -!.yarn/versions - -# 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/examples/with-windicss/README.md b/examples/with-windicss/README.md deleted file mode 100644 index 40ecbd374f9739..00000000000000 --- a/examples/with-windicss/README.md +++ /dev/null @@ -1,25 +0,0 @@ -# Next.js + WindiCSS Example - -This example shows how to use [WindiCSS](https://windicss.org/) with Next.js. - -## Deploy your own - -[![Deploy with Vercel](https://vercel.com/button)](https://vercel.com/new/clone?repository-url=https://github.com/vercel/next.js/tree/canary/examples/with-windicss&project-name=with-windicss&repository-name=with-windicss) - -## How to use - -Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example: - -```bash -npx create-next-app --example with-windicss with-windicss-app -``` - -```bash -yarn create next-app --example with-windicss with-windicss-app -``` - -```bash -pnpm create next-app --example with-windicss with-windicss-app -``` - -Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)). diff --git a/examples/with-windicss/app/layout.tsx b/examples/with-windicss/app/layout.tsx deleted file mode 100644 index 70785c2eab3b99..00000000000000 --- a/examples/with-windicss/app/layout.tsx +++ /dev/null @@ -1,19 +0,0 @@ -import "../styles/globals.css"; -import "windi.css"; - -export const metadata = { - title: "Create Next App", - description: "Generated by Next.js", -}; - -export default function RootLayout({ - children, -}: { - children: React.ReactNode; -}) { - return ( - - {children} - - ); -} diff --git a/examples/with-windicss/app/page.tsx b/examples/with-windicss/app/page.tsx deleted file mode 100644 index 5597647b9e04ff..00000000000000 --- a/examples/with-windicss/app/page.tsx +++ /dev/null @@ -1,77 +0,0 @@ -import Image from "next/image"; - -export default function Home() { - return ( -
-
-

- Welcome to{" "} - - Next.js! - -

- -

- Get started by editing{" "} - - pages/index.tsx - -

- -
- -

Documentation →

-

- Find in-depth information about Next.js features and API. -

-
- - -

Learn →

-

- Learn about Next.js in an interactive course with quizzes! -

-
- - -

Examples →

-

- Discover and deploy boilerplate example Next.js projects. -

-
- - -

Deploy →

-

- Instantly deploy your Next.js site to a public URL with Vercel. -

-
-
-
- - -
- ); -} diff --git a/examples/with-windicss/next.config.js b/examples/with-windicss/next.config.js deleted file mode 100644 index 0d57b53ea1e883..00000000000000 --- a/examples/with-windicss/next.config.js +++ /dev/null @@ -1,12 +0,0 @@ -/** @type {import('next').NextConfig} */ -const WindiCSSWebpackPlugin = require("windicss-webpack-plugin"); - -const nextConfig = { - reactStrictMode: true, - webpack: (config) => { - config.plugins.push(new WindiCSSWebpackPlugin()); - return config; - }, -}; - -module.exports = nextConfig; diff --git a/examples/with-windicss/package.json b/examples/with-windicss/package.json deleted file mode 100644 index 02ca2a4cb502af..00000000000000 --- a/examples/with-windicss/package.json +++ /dev/null @@ -1,21 +0,0 @@ -{ - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start" - }, - "dependencies": { - "next": "latest", - "react": "18.3.1", - "react-dom": "18.3.1" - }, - "devDependencies": { - "@types/node": "^22.5.0", - "@types/react": "^18.3.4", - "@types/react-dom": "^18.3.0", - "typescript": "^5.5.4", - "windicss": "3.5.6", - "windicss-webpack-plugin": "1.8.0" - } -} diff --git a/examples/with-windicss/public/favicon.ico b/examples/with-windicss/public/favicon.ico deleted file mode 100644 index 718d6fea4835ec..00000000000000 Binary files a/examples/with-windicss/public/favicon.ico and /dev/null differ diff --git a/examples/with-windicss/public/vercel.svg b/examples/with-windicss/public/vercel.svg deleted file mode 100644 index fbf0e25a651c28..00000000000000 --- a/examples/with-windicss/public/vercel.svg +++ /dev/null @@ -1,4 +0,0 @@ - - - \ No newline at end of file diff --git a/examples/with-windicss/styles/globals.css b/examples/with-windicss/styles/globals.css deleted file mode 100644 index 51a2a4eaacd86e..00000000000000 --- a/examples/with-windicss/styles/globals.css +++ /dev/null @@ -1,26 +0,0 @@ -html, -body { - padding: 0; - margin: 0; - font-family: - -apple-system, - BlinkMacSystemFont, - Segoe UI, - Roboto, - Oxygen, - Ubuntu, - Cantarell, - Fira Sans, - Droid Sans, - Helvetica Neue, - sans-serif; -} - -a { - color: inherit; - text-decoration: none; -} - -* { - box-sizing: border-box; -} diff --git a/examples/with-windicss/tsconfig.json b/examples/with-windicss/tsconfig.json deleted file mode 100644 index 006857fcb2d413..00000000000000 --- a/examples/with-windicss/tsconfig.json +++ /dev/null @@ -1,20 +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": "react-jsx", - "incremental": true - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], - "exclude": ["node_modules"] -} diff --git a/examples/with-windicss/windi.config.ts b/examples/with-windicss/windi.config.ts deleted file mode 100644 index 43c601aac633bf..00000000000000 --- a/examples/with-windicss/windi.config.ts +++ /dev/null @@ -1,8 +0,0 @@ -import { defineConfig } from "windicss/helpers"; - -export default defineConfig({ - extract: { - include: ["**/*.{jsx,tsx,css}"], - exclude: ["node_modules", ".git", ".next"], - }, -});