diff --git a/examples/next-app-prettier-eslint/package.json b/examples/next-app-prettier-eslint/package.json new file mode 100644 index 0000000..0b10f2a --- /dev/null +++ b/examples/next-app-prettier-eslint/package.json @@ -0,0 +1,11 @@ +{ + "name": "next-app-prettier-eslint", + "version": "1.0.0", + "private": true, + "scripts": { + "gen": "plop --plopfile ./plopfile.mjs" + }, + "devDependencies": { + "@cli-toolbox/project-scaffold": "*" + } +} diff --git a/examples/www/plopfile.mjs b/examples/next-app-prettier-eslint/plopfile.mjs similarity index 100% rename from examples/www/plopfile.mjs rename to examples/next-app-prettier-eslint/plopfile.mjs diff --git a/examples/www/.eslintrc.json b/examples/www/.eslintrc.json deleted file mode 100644 index bffb357..0000000 --- a/examples/www/.eslintrc.json +++ /dev/null @@ -1,3 +0,0 @@ -{ - "extends": "next/core-web-vitals" -} diff --git a/examples/www/.gitignore b/examples/www/.gitignore deleted file mode 100644 index fd3dbb5..0000000 --- a/examples/www/.gitignore +++ /dev/null @@ -1,36 +0,0 @@ -# See https://help.github.com/articles/ignoring-files/ for more about ignoring files. - -# dependencies -/node_modules -/.pnp -.pnp.js -.yarn/install-state.gz - -# 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/www/README.md b/examples/www/README.md deleted file mode 100644 index c403366..0000000 --- a/examples/www/README.md +++ /dev/null @@ -1,36 +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 -# or -bun 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/examples/www/app/favicon.ico b/examples/www/app/favicon.ico deleted file mode 100644 index 4570eb8..0000000 Binary files a/examples/www/app/favicon.ico and /dev/null differ diff --git a/examples/www/app/globals.css b/examples/www/app/globals.css deleted file mode 100644 index 875c01e..0000000 --- a/examples/www/app/globals.css +++ /dev/null @@ -1,33 +0,0 @@ -@tailwind base; -@tailwind components; -@tailwind utilities; - -:root { - --foreground-rgb: 0, 0, 0; - --background-start-rgb: 214, 219, 220; - --background-end-rgb: 255, 255, 255; -} - -@media (prefers-color-scheme: dark) { - :root { - --foreground-rgb: 255, 255, 255; - --background-start-rgb: 0, 0, 0; - --background-end-rgb: 0, 0, 0; - } -} - -body { - color: rgb(var(--foreground-rgb)); - background: linear-gradient( - to bottom, - transparent, - rgb(var(--background-end-rgb)) - ) - rgb(var(--background-start-rgb)); -} - -@layer utilities { - .text-balance { - text-wrap: balance; - } -} diff --git a/examples/www/app/layout.tsx b/examples/www/app/layout.tsx deleted file mode 100644 index 3314e47..0000000 --- a/examples/www/app/layout.tsx +++ /dev/null @@ -1,22 +0,0 @@ -import type { Metadata } from "next"; -import { Inter } from "next/font/google"; -import "./globals.css"; - -const inter = Inter({ subsets: ["latin"] }); - -export const metadata: Metadata = { - title: "Create Next App", - description: "Generated by create next app", -}; - -export default function RootLayout({ - children, -}: Readonly<{ - children: React.ReactNode; -}>) { - return ( - - {children} - - ); -} diff --git a/examples/www/app/page.tsx b/examples/www/app/page.tsx deleted file mode 100644 index 5705d4e..0000000 --- a/examples/www/app/page.tsx +++ /dev/null @@ -1,113 +0,0 @@ -import Image from "next/image"; - -export default function Home() { - return ( -
-
-

- Get started by editing  - app/page.tsx -

-
- - By{" "} - Vercel Logo - -
-
- -
- Next.js Logo -
- -
- -

- Docs{" "} - - -> - -

-

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

-
- - -

- Learn{" "} - - -> - -

-

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

-
- - -

- Templates{" "} - - -> - -

-

- Explore starter templates for Next.js. -

-
- - -

- Deploy{" "} - - -> - -

-

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

-
-
-
- ); -} diff --git a/examples/www/next.config.mjs b/examples/www/next.config.mjs deleted file mode 100644 index 4678774..0000000 --- a/examples/www/next.config.mjs +++ /dev/null @@ -1,4 +0,0 @@ -/** @type {import('next').NextConfig} */ -const nextConfig = {}; - -export default nextConfig; diff --git a/examples/www/package.json b/examples/www/package.json deleted file mode 100644 index 78a9eb0..0000000 --- a/examples/www/package.json +++ /dev/null @@ -1,28 +0,0 @@ -{ - "name": "www", - "version": "0.1.0", - "private": true, - "scripts": { - "dev": "next dev", - "build": "next build", - "start": "next start", - "lint": "next lint", - "gen": "plop --plopfile ./plopfile.mjs" - }, - "dependencies": { - "react": "^18", - "react-dom": "^18", - "next": "14.2.5" - }, - "devDependencies": { - "@cli-toolbox/project-scaffold": "*", - "typescript": "^5", - "@types/node": "^20", - "@types/react": "^18", - "@types/react-dom": "^18", - "postcss": "^8", - "tailwindcss": "^3.4.1", - "eslint": "^8", - "eslint-config-next": "14.2.5" - } -} diff --git a/examples/www/postcss.config.mjs b/examples/www/postcss.config.mjs deleted file mode 100644 index 0dc456a..0000000 --- a/examples/www/postcss.config.mjs +++ /dev/null @@ -1,8 +0,0 @@ -/** @type {import('postcss-load-config').Config} */ -const config = { - plugins: { - tailwindcss: {}, - }, -} - -export default config diff --git a/examples/www/public/next.svg b/examples/www/public/next.svg deleted file mode 100644 index 5174b28..0000000 --- a/examples/www/public/next.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/www/public/vercel.svg b/examples/www/public/vercel.svg deleted file mode 100644 index d2f8422..0000000 --- a/examples/www/public/vercel.svg +++ /dev/null @@ -1 +0,0 @@ - \ No newline at end of file diff --git a/examples/www/tailwind.config.ts b/examples/www/tailwind.config.ts deleted file mode 100644 index 7e4bd91..0000000 --- a/examples/www/tailwind.config.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type { Config } from "tailwindcss"; - -const config: Config = { - content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", - ], - 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: [], -}; -export default config; diff --git a/examples/www/tsconfig.json b/examples/www/tsconfig.json deleted file mode 100644 index 8606067..0000000 --- a/examples/www/tsconfig.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "compilerOptions": { - "lib": ["dom", "dom.iterable", "esnext"], - "allowJs": true, - "skipLibCheck": true, - "strict": true, - "noEmit": true, - "esModuleInterop": true, - "module": "esnext", - "moduleResolution": "bundler", - "resolveJsonModule": true, - "isolatedModules": true, - "jsx": "preserve", - "incremental": true, - "plugins": [ - { - "name": "next" - } - ], - "paths": { - "~/*": ["./*"] - } - }, - "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx", ".next/types/**/*.ts"], - "exclude": ["node_modules"] -}