From 677177cfea944aa069be87b5af686e71669c1674 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 13:14:49 -0700 Subject: [PATCH 01/25] chore(create-next-app): add --empty flag --- packages/create-next-app/index.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/create-next-app/index.ts b/packages/create-next-app/index.ts index 7d6ab04a4d5de..f4c3c180c2f42 100644 --- a/packages/create-next-app/index.ts +++ b/packages/create-next-app/index.ts @@ -90,6 +90,13 @@ const program = new Commander.Command(packageJson.name) ` Specify import alias to use (default "@/*"). +` + ) + .option( + '--empty', + ` + + Initialize an empty Next.js project. ` ) .option( From 42dbe1681e29cc7843102bcd5118c8d56e6126f9 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:04:37 -0700 Subject: [PATCH 02/25] chore(create-next-app): add cli prompt --- packages/create-next-app/create-app.ts | 5 +++++ packages/create-next-app/index.ts | 24 +++++++++++++++++++++ packages/create-next-app/templates/index.ts | 1 + packages/create-next-app/templates/types.ts | 2 +- 4 files changed, 31 insertions(+), 1 deletion(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index a6270e4d6bdaf..eed082cf41a76 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -35,6 +35,7 @@ export async function createApp({ srcDir, importAlias, skipInstall, + empty, }: { appPath: string packageManager: PackageManager @@ -44,6 +45,7 @@ export async function createApp({ tailwind: boolean eslint: boolean appRouter: boolean + empty: boolean srcDir: boolean importAlias: string skipInstall: boolean @@ -151,6 +153,8 @@ export async function createApp({ const packageJsonPath = path.join(root, 'package.json') let hasPackageJson = false + console.log('[test] empty =', empty) + if (example) { /** * If an example repository is provided, clone it. @@ -233,6 +237,7 @@ export async function createApp({ srcDir, importAlias, skipInstall, + empty, }) } diff --git a/packages/create-next-app/index.ts b/packages/create-next-app/index.ts index f4c3c180c2f42..5f501ea307f1d 100644 --- a/packages/create-next-app/index.ts +++ b/packages/create-next-app/index.ts @@ -271,6 +271,7 @@ async function run(): Promise { srcDir: false, importAlias: '@/*', customizeImportAlias: false, + empty: false, } const getPrefOrDefault = (field: string) => preferences[field] ?? defaults[field] @@ -438,6 +439,27 @@ async function run(): Promise { } } } + + if ( + !process.argv.includes('--empty') && + !process.argv.includes('--no-empty') + ) { + if (ciInfo.isCI) { + program.empty = getPrefOrDefault('empty') + } else { + const { empty } = await prompts({ + onState: onPromptState, + type: 'toggle', + name: 'empty', + message: `Would you like to use an empty Next.js project?`, + initial: getPrefOrDefault('empty'), + active: 'Yes', + inactive: 'No', + }) + program.empty = Boolean(empty) + preferences.empty = Boolean(empty) + } + } } try { @@ -453,6 +475,7 @@ async function run(): Promise { srcDir: program.srcDir, importAlias: program.importAlias, skipInstall: program.skipInstall, + empty: program.empty, }) } catch (reason) { if (!(reason instanceof DownloadError)) { @@ -482,6 +505,7 @@ async function run(): Promise { srcDir: program.srcDir, importAlias: program.importAlias, skipInstall: program.skipInstall, + empty: program.empty, }) } conf.set('preferences', preferences) diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 711dd5aac2a5b..894ebe3ee7e3f 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -39,6 +39,7 @@ export const installTemplate = async ({ srcDir, importAlias, skipInstall, + empty, }: InstallTemplateArgs) => { console.log(bold(`Using ${packageManager}.`)); diff --git a/packages/create-next-app/templates/types.ts b/packages/create-next-app/templates/types.ts index 7626fe40912e5..27eed5366e776 100644 --- a/packages/create-next-app/templates/types.ts +++ b/packages/create-next-app/templates/types.ts @@ -14,7 +14,6 @@ export interface InstallTemplateArgs { root: string; packageManager: PackageManager; isOnline: boolean; - template: TemplateType; mode: TemplateMode; eslint: boolean; @@ -22,4 +21,5 @@ export interface InstallTemplateArgs { srcDir: boolean; importAlias: string; skipInstall: boolean; + empty: boolean; } From 7a106802e253a9e181e8e634f2d361131524661e Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:05:28 -0700 Subject: [PATCH 03/25] chore(create-next-app): remove console.log --- packages/create-next-app/create-app.ts | 2 -- 1 file changed, 2 deletions(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index eed082cf41a76..c26663b71ae5f 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -153,8 +153,6 @@ export async function createApp({ const packageJsonPath = path.join(root, 'package.json') let hasPackageJson = false - console.log('[test] empty =', empty) - if (example) { /** * If an example repository is provided, clone it. From 354f1def425949c79e384f2c88108bc282eacc30 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:30:15 -0700 Subject: [PATCH 04/25] chore(create-next-app): add app-empty, default-empty templates --- .../templates/app-empty/js/.env.example | 3 ++ .../templates/app-empty/js/README-template.md | 36 ++++++++++++++++ .../templates/app-empty/js/app/favicon.ico | Bin 0 -> 25931 bytes .../templates/app-empty/js/app/layout.js | 12 ++++++ .../templates/app-empty/js/app/page.js | 7 +++ .../templates/app-empty/js/eslintrc.json | 3 ++ .../templates/app-empty/js/gitignore | 36 ++++++++++++++++ .../templates/app-empty/js/jsconfig.json | 7 +++ .../templates/app-empty/js/next.config.mjs | 4 ++ .../templates/app-empty/ts/.env.example | 3 ++ .../templates/app-empty/ts/README-template.md | 36 ++++++++++++++++ .../templates/app-empty/ts/app/layout.tsx | 18 ++++++++ .../templates/app-empty/ts/app/page.tsx | 7 +++ .../templates/app-empty/ts/eslintrc.json | 3 ++ .../templates/app-empty/ts/gitignore | 36 ++++++++++++++++ .../templates/app-empty/ts/next-env.d.ts | 5 +++ .../templates/app-empty/ts/next.config.mjs | 4 ++ .../templates/app-empty/ts/tsconfig.json | 27 ++++++++++++ .../templates/default-empty/js/.env.example | 3 ++ .../default-empty/js/README-template.md | 40 ++++++++++++++++++ .../templates/default-empty/js/eslintrc.json | 3 ++ .../templates/default-empty/js/gitignore | 36 ++++++++++++++++ .../templates/default-empty/js/jsconfig.json | 7 +++ .../default-empty/js/next.config.mjs | 6 +++ .../templates/default-empty/js/pages/_app.js | 3 ++ .../default-empty/js/pages/_document.js | 13 ++++++ .../templates/default-empty/js/pages/index.js | 17 ++++++++ .../default-empty/js/public/favicon.ico | Bin 0 -> 25931 bytes .../templates/default-empty/ts/.env.example | 3 ++ .../default-empty/ts/README-template.md | 40 ++++++++++++++++++ .../templates/default-empty/ts/eslintrc.json | 3 ++ .../templates/default-empty/ts/gitignore | 36 ++++++++++++++++ .../templates/default-empty/ts/next-env.d.ts | 5 +++ .../default-empty/ts/next.config.mjs | 6 +++ .../templates/default-empty/ts/pages/_app.tsx | 5 +++ .../default-empty/ts/pages/_document.tsx | 13 ++++++ .../default-empty/ts/pages/index.tsx | 17 ++++++++ .../default-empty/ts/public/favicon.ico | Bin 0 -> 25931 bytes .../templates/default-empty/ts/tsconfig.json | 22 ++++++++++ packages/create-next-app/templates/types.ts | 8 +++- 40 files changed, 532 insertions(+), 1 deletion(-) create mode 100644 packages/create-next-app/templates/app-empty/js/.env.example create mode 100644 packages/create-next-app/templates/app-empty/js/README-template.md create mode 100644 packages/create-next-app/templates/app-empty/js/app/favicon.ico create mode 100644 packages/create-next-app/templates/app-empty/js/app/layout.js create mode 100644 packages/create-next-app/templates/app-empty/js/app/page.js create mode 100644 packages/create-next-app/templates/app-empty/js/eslintrc.json create mode 100644 packages/create-next-app/templates/app-empty/js/gitignore create mode 100644 packages/create-next-app/templates/app-empty/js/jsconfig.json create mode 100644 packages/create-next-app/templates/app-empty/js/next.config.mjs create mode 100644 packages/create-next-app/templates/app-empty/ts/.env.example create mode 100644 packages/create-next-app/templates/app-empty/ts/README-template.md create mode 100644 packages/create-next-app/templates/app-empty/ts/app/layout.tsx create mode 100644 packages/create-next-app/templates/app-empty/ts/app/page.tsx create mode 100644 packages/create-next-app/templates/app-empty/ts/eslintrc.json create mode 100644 packages/create-next-app/templates/app-empty/ts/gitignore create mode 100644 packages/create-next-app/templates/app-empty/ts/next-env.d.ts create mode 100644 packages/create-next-app/templates/app-empty/ts/next.config.mjs create mode 100644 packages/create-next-app/templates/app-empty/ts/tsconfig.json create mode 100644 packages/create-next-app/templates/default-empty/js/.env.example create mode 100644 packages/create-next-app/templates/default-empty/js/README-template.md create mode 100644 packages/create-next-app/templates/default-empty/js/eslintrc.json create mode 100644 packages/create-next-app/templates/default-empty/js/gitignore create mode 100644 packages/create-next-app/templates/default-empty/js/jsconfig.json create mode 100644 packages/create-next-app/templates/default-empty/js/next.config.mjs create mode 100644 packages/create-next-app/templates/default-empty/js/pages/_app.js create mode 100644 packages/create-next-app/templates/default-empty/js/pages/_document.js create mode 100644 packages/create-next-app/templates/default-empty/js/pages/index.js create mode 100644 packages/create-next-app/templates/default-empty/js/public/favicon.ico create mode 100644 packages/create-next-app/templates/default-empty/ts/.env.example create mode 100644 packages/create-next-app/templates/default-empty/ts/README-template.md create mode 100644 packages/create-next-app/templates/default-empty/ts/eslintrc.json create mode 100644 packages/create-next-app/templates/default-empty/ts/gitignore create mode 100644 packages/create-next-app/templates/default-empty/ts/next-env.d.ts create mode 100644 packages/create-next-app/templates/default-empty/ts/next.config.mjs create mode 100644 packages/create-next-app/templates/default-empty/ts/pages/_app.tsx create mode 100644 packages/create-next-app/templates/default-empty/ts/pages/_document.tsx create mode 100644 packages/create-next-app/templates/default-empty/ts/pages/index.tsx create mode 100644 packages/create-next-app/templates/default-empty/ts/public/favicon.ico create mode 100644 packages/create-next-app/templates/default-empty/ts/tsconfig.json diff --git a/packages/create-next-app/templates/app-empty/js/.env.example b/packages/create-next-app/templates/app-empty/js/.env.example new file mode 100644 index 0000000000000..ce586fad292cd --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/app-empty/js/README-template.md b/packages/create-next-app/templates/app-empty/js/README-template.md new file mode 100644 index 0000000000000..0dc9ea2bcc410 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/README-template.md @@ -0,0 +1,36 @@ +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.js`. 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/packages/create-next-app/templates/app-empty/js/app/favicon.ico b/packages/create-next-app/templates/app-empty/js/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi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Cb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/app-empty/js/app/layout.js b/packages/create-next-app/templates/app-empty/js/app/layout.js new file mode 100644 index 0000000000000..a45d7e1b56adc --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/app/layout.js @@ -0,0 +1,12 @@ +export const metadata = { + title: "Create Next App", + description: "Generated by create next app", +}; + +export default function RootLayout({ children }) { + return ( + + {children} + + ); +} diff --git a/packages/create-next-app/templates/app-empty/js/app/page.js b/packages/create-next-app/templates/app-empty/js/app/page.js new file mode 100644 index 0000000000000..2342325c680cd --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/app/page.js @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello World!
+
+ ); +} diff --git a/packages/create-next-app/templates/app-empty/js/eslintrc.json b/packages/create-next-app/templates/app-empty/js/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/app-empty/js/gitignore b/packages/create-next-app/templates/app-empty/js/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/app-empty/js/jsconfig.json b/packages/create-next-app/templates/app-empty/js/jsconfig.json new file mode 100644 index 0000000000000..2a2e4b3bf8ba1 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./*"] + } + } +} diff --git a/packages/create-next-app/templates/app-empty/js/next.config.mjs b/packages/create-next-app/templates/app-empty/js/next.config.mjs new file mode 100644 index 0000000000000..4678774e6d606 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/js/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/app-empty/ts/.env.example b/packages/create-next-app/templates/app-empty/ts/.env.example new file mode 100644 index 0000000000000..ce586fad292cd --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/app-empty/ts/README-template.md b/packages/create-next-app/templates/app-empty/ts/README-template.md new file mode 100644 index 0000000000000..c4033664f80d3 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/README-template.md @@ -0,0 +1,36 @@ +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/packages/create-next-app/templates/app-empty/ts/app/layout.tsx b/packages/create-next-app/templates/app-empty/ts/app/layout.tsx new file mode 100644 index 0000000000000..112756e6bfcdc --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/app/layout.tsx @@ -0,0 +1,18 @@ +import type { Metadata } from "next"; + +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/packages/create-next-app/templates/app-empty/ts/app/page.tsx b/packages/create-next-app/templates/app-empty/ts/app/page.tsx new file mode 100644 index 0000000000000..b95c3ed488adc --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/app/page.tsx @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello world!
+
+ ); +} diff --git a/packages/create-next-app/templates/app-empty/ts/eslintrc.json b/packages/create-next-app/templates/app-empty/ts/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/app-empty/ts/gitignore b/packages/create-next-app/templates/app-empty/ts/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/app-empty/ts/next-env.d.ts b/packages/create-next-app/templates/app-empty/ts/next-env.d.ts new file mode 100644 index 0000000000000..4f11a03dc6cc3 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/create-next-app/templates/app-empty/ts/next.config.mjs b/packages/create-next-app/templates/app-empty/ts/next.config.mjs new file mode 100644 index 0000000000000..4678774e6d606 --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/app-empty/ts/tsconfig.json b/packages/create-next-app/templates/app-empty/ts/tsconfig.json new file mode 100644 index 0000000000000..d8b93235f205e --- /dev/null +++ b/packages/create-next-app/templates/app-empty/ts/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "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"] +} diff --git a/packages/create-next-app/templates/default-empty/js/.env.example b/packages/create-next-app/templates/default-empty/js/.env.example new file mode 100644 index 0000000000000..7ac0a01551a65 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/default-empty/js/README-template.md b/packages/create-next-app/templates/default-empty/js/README-template.md new file mode 100644 index 0000000000000..5d98b1e5a0368 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/README-template.md @@ -0,0 +1,40 @@ +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 `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. + +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/packages/create-next-app/templates/default-empty/js/eslintrc.json b/packages/create-next-app/templates/default-empty/js/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/default-empty/js/gitignore b/packages/create-next-app/templates/default-empty/js/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/default-empty/js/jsconfig.json b/packages/create-next-app/templates/default-empty/js/jsconfig.json new file mode 100644 index 0000000000000..2a2e4b3bf8ba1 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./*"] + } + } +} diff --git a/packages/create-next-app/templates/default-empty/js/next.config.mjs b/packages/create-next-app/templates/default-empty/js/next.config.mjs new file mode 100644 index 0000000000000..d5456a15d4ad2 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/next.config.mjs @@ -0,0 +1,6 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, +}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/default-empty/js/pages/_app.js b/packages/create-next-app/templates/default-empty/js/pages/_app.js new file mode 100644 index 0000000000000..39b86cd6bc00b --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/pages/_app.js @@ -0,0 +1,3 @@ +export default function App({ Component, pageProps }) { + return ; +} diff --git a/packages/create-next-app/templates/default-empty/js/pages/_document.js b/packages/create-next-app/templates/default-empty/js/pages/_document.js new file mode 100644 index 0000000000000..b2fff8b4262dd --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/pages/_document.js @@ -0,0 +1,13 @@ +import { Html, Head, Main, NextScript } from "next/document"; + +export default function Document() { + return ( + + + +
+ + + + ); +} diff --git a/packages/create-next-app/templates/default-empty/js/pages/index.js b/packages/create-next-app/templates/default-empty/js/pages/index.js new file mode 100644 index 0000000000000..aec88264f0e89 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/js/pages/index.js @@ -0,0 +1,17 @@ +import Head from "next/head"; + +export default function Home() { + return ( + <> + + Create Next App + + + + +
+
Hello World!
+
+ + ); +} diff --git a/packages/create-next-app/templates/default-empty/js/public/favicon.ico b/packages/create-next-app/templates/default-empty/js/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Qh3#p&JM-G8rHekNmKVewU;pJRcTAog68KYo^dRo}(M>36U4Us zfgYWSiHZL3;lpWT=zNAW>Dh#mB!_@Lg%$ms8N-;aPqMn+C2HqZgz&9~Eu z4|Kp<`$q)Uw1R?y(~S>ePdonHxpV1#eSP1B;Ogo+-Pk}6#0GsZZ5!||ev2MGd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_ct}IM>XLF1Ap+YvcrLV=|CKo6S zb+9Nl3_YdKP6%Cxy@6TxZ>;4&nTneadr z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/default-empty/ts/.env.example b/packages/create-next-app/templates/default-empty/ts/.env.example new file mode 100644 index 0000000000000..7ac0a01551a65 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/default-empty/ts/README-template.md b/packages/create-next-app/templates/default-empty/ts/README-template.md new file mode 100644 index 0000000000000..a75ac5248816f --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/README-template.md @@ -0,0 +1,40 @@ +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 `pages/index.tsx`. 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.ts`. + +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. + +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/packages/create-next-app/templates/default-empty/ts/eslintrc.json b/packages/create-next-app/templates/default-empty/ts/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/default-empty/ts/gitignore b/packages/create-next-app/templates/default-empty/ts/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/default-empty/ts/next-env.d.ts b/packages/create-next-app/templates/default-empty/ts/next-env.d.ts new file mode 100644 index 0000000000000..4f11a03dc6cc3 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/create-next-app/templates/default-empty/ts/next.config.mjs b/packages/create-next-app/templates/default-empty/ts/next.config.mjs new file mode 100644 index 0000000000000..d5456a15d4ad2 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/next.config.mjs @@ -0,0 +1,6 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, +}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/default-empty/ts/pages/_app.tsx b/packages/create-next-app/templates/default-empty/ts/pages/_app.tsx new file mode 100644 index 0000000000000..956fa84e0cd70 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/pages/_app.tsx @@ -0,0 +1,5 @@ +import type { AppProps } from "next/app"; + +export default function App({ Component, pageProps }: AppProps) { + return ; +} diff --git a/packages/create-next-app/templates/default-empty/ts/pages/_document.tsx b/packages/create-next-app/templates/default-empty/ts/pages/_document.tsx new file mode 100644 index 0000000000000..b2fff8b4262dd --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/pages/_document.tsx @@ -0,0 +1,13 @@ +import { Html, Head, Main, NextScript } from "next/document"; + +export default function Document() { + return ( + + + +
+ + + + ); +} diff --git a/packages/create-next-app/templates/default-empty/ts/pages/index.tsx b/packages/create-next-app/templates/default-empty/ts/pages/index.tsx new file mode 100644 index 0000000000000..cca2c436bf5b3 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/pages/index.tsx @@ -0,0 +1,17 @@ +import Head from "next/head"; + +export default function Home() { + return ( + <> + + Create Next App + + + + +
+
Hello world!
+
+ + ); +} diff --git a/packages/create-next-app/templates/default-empty/ts/public/favicon.ico b/packages/create-next-app/templates/default-empty/ts/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Qh3#p&JM-G8rHekNmKVewU;pJRcTAog68KYo^dRo}(M>36U4Us zfgYWSiHZL3;lpWT=zNAW>Dh#mB!_@Lg%$ms8N-;aPqMn+C2HqZgz&9~Eu z4|Kp<`$q)Uw1R?y(~S>ePdonHxpV1#eSP1B;Ogo+-Pk}6#0GsZZ5!||ev2MGdh}_m z{DeR7?0-1^zVs&`AV6Vt;r3`I`OI_wgs*w=eO%_#7Kepl{B@xiyCANc(l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z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/default-empty/ts/tsconfig.json b/packages/create-next-app/templates/default-empty/ts/tsconfig.json new file mode 100644 index 0000000000000..957e71fe5b523 --- /dev/null +++ b/packages/create-next-app/templates/default-empty/ts/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2017", + "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, + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +} diff --git a/packages/create-next-app/templates/types.ts b/packages/create-next-app/templates/types.ts index 27eed5366e776..af69b1e319f09 100644 --- a/packages/create-next-app/templates/types.ts +++ b/packages/create-next-app/templates/types.ts @@ -1,6 +1,12 @@ import { PackageManager } from "../helpers/get-pkg-manager"; -export type TemplateType = "default" | "app" | "default-tw" | "app-tw"; +export type TemplateType = + | "app" + | "app-empty" + | "app-tw" + | "default" + | "default-empty" + | "default-tw"; export type TemplateMode = "js" | "ts"; export interface GetTemplateFileArgs { From d21b8887b81d1120a5e480fb977586d8dc9975ef Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:30:33 -0700 Subject: [PATCH 05/25] chore(create-next-app): re-order empty variable --- packages/create-next-app/create-app.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index c26663b71ae5f..28393361236dc 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -45,10 +45,10 @@ export async function createApp({ tailwind: boolean eslint: boolean appRouter: boolean - empty: boolean srcDir: boolean importAlias: string skipInstall: boolean + empty: boolean }): Promise { let repoInfo: RepoInfo | undefined const mode: TemplateMode = typescript ? 'ts' : 'js' From 8a834582af8c3a3e9a2a9be347b064534656acd1 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:58:15 -0700 Subject: [PATCH 06/25] chore(create-next-app): add tw-empty templates --- .../templates/app-tw-empty/js/.env.example | 3 ++ .../app-tw-empty/js/README-template.md | 36 ++++++++++++++++ .../templates/app-tw-empty/js/app/favicon.ico | Bin 0 -> 25931 bytes .../templates/app-tw-empty/js/app/layout.js | 12 ++++++ .../templates/app-tw-empty/js/app/page.js | 7 +++ .../templates/app-tw-empty/js/eslintrc.json | 3 ++ .../templates/app-tw-empty/js/gitignore | 36 ++++++++++++++++ .../templates/app-tw-empty/js/jsconfig.json | 7 +++ .../templates/app-tw-empty/js/next.config.mjs | 4 ++ .../app-tw-empty/js/postcss.config.mjs | 8 ++++ .../app-tw-empty/js/tailwind.config.js | 18 ++++++++ .../templates/app-tw-empty/ts/.env.example | 3 ++ .../app-tw-empty/ts/README-template.md | 36 ++++++++++++++++ .../templates/app-tw-empty/ts/app/favicon.ico | Bin 0 -> 25931 bytes .../templates/app-tw-empty/ts/app/layout.tsx | 18 ++++++++ .../templates/app-tw-empty/ts/app/page.tsx | 7 +++ .../templates/app-tw-empty/ts/eslintrc.json | 3 ++ .../templates/app-tw-empty/ts/gitignore | 36 ++++++++++++++++ .../templates/app-tw-empty/ts/next-env.d.ts | 5 +++ .../templates/app-tw-empty/ts/next.config.mjs | 4 ++ .../app-tw-empty/ts/postcss.config.mjs | 8 ++++ .../app-tw-empty/ts/tailwind.config.ts | 20 +++++++++ .../templates/app-tw-empty/ts/tsconfig.json | 27 ++++++++++++ .../default-tw-empty/js/.env.example | 3 ++ .../default-tw-empty/js/README-template.md | 40 ++++++++++++++++++ .../default-tw-empty/js/eslintrc.json | 3 ++ .../templates/default-tw-empty/js/gitignore | 36 ++++++++++++++++ .../default-tw-empty/js/jsconfig.json | 7 +++ .../default-tw-empty/js/next.config.mjs | 6 +++ .../default-tw-empty/js/pages/_app.js | 3 ++ .../default-tw-empty/js/pages/_document.js | 13 ++++++ .../default-tw-empty/js/pages/index.js | 7 +++ .../default-tw-empty/js/postcss.config.mjs | 8 ++++ .../default-tw-empty/js/public/favicon.ico | Bin 0 -> 25931 bytes .../default-tw-empty/js/tailwind.config.js | 18 ++++++++ .../default-tw-empty/ts/.env.example | 3 ++ .../default-tw-empty/ts/README-template.md | 40 ++++++++++++++++++ .../default-tw-empty/ts/eslintrc.json | 3 ++ .../templates/default-tw-empty/ts/gitignore | 36 ++++++++++++++++ .../default-tw-empty/ts/next-env.d.ts | 5 +++ .../default-tw-empty/ts/next.config.mjs | 6 +++ .../default-tw-empty/ts/pages/_app.tsx | 5 +++ .../default-tw-empty/ts/pages/_document.tsx | 13 ++++++ .../default-tw-empty/ts/pages/index.tsx | 7 +++ .../default-tw-empty/ts/postcss.config.mjs | 8 ++++ .../default-tw-empty/ts/public/favicon.ico | Bin 0 -> 25931 bytes .../default-tw-empty/ts/tailwind.config.ts | 20 +++++++++ .../default-tw-empty/ts/tsconfig.json | 22 ++++++++++ packages/create-next-app/templates/index.ts | 1 - packages/create-next-app/templates/types.ts | 5 ++- 50 files changed, 616 insertions(+), 3 deletions(-) create mode 100644 packages/create-next-app/templates/app-tw-empty/js/.env.example create mode 100644 packages/create-next-app/templates/app-tw-empty/js/README-template.md create mode 100644 packages/create-next-app/templates/app-tw-empty/js/app/favicon.ico create mode 100644 packages/create-next-app/templates/app-tw-empty/js/app/layout.js create mode 100644 packages/create-next-app/templates/app-tw-empty/js/app/page.js create mode 100644 packages/create-next-app/templates/app-tw-empty/js/eslintrc.json create mode 100644 packages/create-next-app/templates/app-tw-empty/js/gitignore create mode 100644 packages/create-next-app/templates/app-tw-empty/js/jsconfig.json create mode 100644 packages/create-next-app/templates/app-tw-empty/js/next.config.mjs create mode 100644 packages/create-next-app/templates/app-tw-empty/js/postcss.config.mjs create mode 100644 packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/.env.example create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/README-template.md create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/app/favicon.ico create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/app/page.tsx create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/eslintrc.json create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/gitignore create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/next-env.d.ts create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/next.config.mjs create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/postcss.config.mjs create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/tsconfig.json create mode 100644 packages/create-next-app/templates/default-tw-empty/js/.env.example create mode 100644 packages/create-next-app/templates/default-tw-empty/js/README-template.md create mode 100644 packages/create-next-app/templates/default-tw-empty/js/eslintrc.json create mode 100644 packages/create-next-app/templates/default-tw-empty/js/gitignore create mode 100644 packages/create-next-app/templates/default-tw-empty/js/jsconfig.json create mode 100644 packages/create-next-app/templates/default-tw-empty/js/next.config.mjs create mode 100644 packages/create-next-app/templates/default-tw-empty/js/pages/_app.js create mode 100644 packages/create-next-app/templates/default-tw-empty/js/pages/_document.js create mode 100644 packages/create-next-app/templates/default-tw-empty/js/pages/index.js create mode 100644 packages/create-next-app/templates/default-tw-empty/js/postcss.config.mjs create mode 100644 packages/create-next-app/templates/default-tw-empty/js/public/favicon.ico create mode 100644 packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/.env.example create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/README-template.md create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/eslintrc.json create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/gitignore create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/next-env.d.ts create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/next.config.mjs create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/pages/_document.tsx create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/pages/index.tsx create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/postcss.config.mjs create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/public/favicon.ico create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/tsconfig.json diff --git a/packages/create-next-app/templates/app-tw-empty/js/.env.example b/packages/create-next-app/templates/app-tw-empty/js/.env.example new file mode 100644 index 0000000000000..ce586fad292cd --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/app-tw-empty/js/README-template.md b/packages/create-next-app/templates/app-tw-empty/js/README-template.md new file mode 100644 index 0000000000000..0dc9ea2bcc410 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/README-template.md @@ -0,0 +1,36 @@ +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.js`. 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/packages/create-next-app/templates/app-tw-empty/js/app/favicon.ico b/packages/create-next-app/templates/app-tw-empty/js/app/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXa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otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/app-tw-empty/js/app/layout.js b/packages/create-next-app/templates/app-tw-empty/js/app/layout.js new file mode 100644 index 0000000000000..a45d7e1b56adc --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/app/layout.js @@ -0,0 +1,12 @@ +export const metadata = { + title: "Create Next App", + description: "Generated by create next app", +}; + +export default function RootLayout({ children }) { + return ( + + {children} + + ); +} diff --git a/packages/create-next-app/templates/app-tw-empty/js/app/page.js b/packages/create-next-app/templates/app-tw-empty/js/app/page.js new file mode 100644 index 0000000000000..b95c3ed488adc --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/app/page.js @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello world!
+
+ ); +} diff --git a/packages/create-next-app/templates/app-tw-empty/js/eslintrc.json b/packages/create-next-app/templates/app-tw-empty/js/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/app-tw-empty/js/gitignore b/packages/create-next-app/templates/app-tw-empty/js/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/app-tw-empty/js/jsconfig.json b/packages/create-next-app/templates/app-tw-empty/js/jsconfig.json new file mode 100644 index 0000000000000..2a2e4b3bf8ba1 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./*"] + } + } +} diff --git a/packages/create-next-app/templates/app-tw-empty/js/next.config.mjs b/packages/create-next-app/templates/app-tw-empty/js/next.config.mjs new file mode 100644 index 0000000000000..4678774e6d606 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/app-tw-empty/js/postcss.config.mjs b/packages/create-next-app/templates/app-tw-empty/js/postcss.config.mjs new file mode 100644 index 0000000000000..1a69fd2a450af --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js new file mode 100644 index 0000000000000..78ebc4e710e1c --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js @@ -0,0 +1,18 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + 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: [], +}; diff --git a/packages/create-next-app/templates/app-tw-empty/ts/.env.example b/packages/create-next-app/templates/app-tw-empty/ts/.env.example new file mode 100644 index 0000000000000..ce586fad292cd --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/app/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/app-tw-empty/ts/README-template.md b/packages/create-next-app/templates/app-tw-empty/ts/README-template.md new file mode 100644 index 0000000000000..c4033664f80d3 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/README-template.md @@ -0,0 +1,36 @@ +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/packages/create-next-app/templates/app-tw-empty/ts/app/favicon.ico b/packages/create-next-app/templates/app-tw-empty/ts/app/favicon.ico new file mode 100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HH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx b/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx new file mode 100644 index 0000000000000..112756e6bfcdc --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx @@ -0,0 +1,18 @@ +import type { Metadata } from "next"; + +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/packages/create-next-app/templates/app-tw-empty/ts/app/page.tsx b/packages/create-next-app/templates/app-tw-empty/ts/app/page.tsx new file mode 100644 index 0000000000000..b95c3ed488adc --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/app/page.tsx @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello world!
+
+ ); +} diff --git a/packages/create-next-app/templates/app-tw-empty/ts/eslintrc.json b/packages/create-next-app/templates/app-tw-empty/ts/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/app-tw-empty/ts/gitignore b/packages/create-next-app/templates/app-tw-empty/ts/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/app-tw-empty/ts/next-env.d.ts b/packages/create-next-app/templates/app-tw-empty/ts/next-env.d.ts new file mode 100644 index 0000000000000..4f11a03dc6cc3 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/create-next-app/templates/app-tw-empty/ts/next.config.mjs b/packages/create-next-app/templates/app-tw-empty/ts/next.config.mjs new file mode 100644 index 0000000000000..4678774e6d606 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/next.config.mjs @@ -0,0 +1,4 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = {}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/app-tw-empty/ts/postcss.config.mjs b/packages/create-next-app/templates/app-tw-empty/ts/postcss.config.mjs new file mode 100644 index 0000000000000..1a69fd2a450af --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts new file mode 100644 index 0000000000000..7e4bd91a03437 --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts @@ -0,0 +1,20 @@ +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/packages/create-next-app/templates/app-tw-empty/ts/tsconfig.json b/packages/create-next-app/templates/app-tw-empty/ts/tsconfig.json new file mode 100644 index 0000000000000..d8b93235f205e --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/tsconfig.json @@ -0,0 +1,27 @@ +{ + "compilerOptions": { + "target": "ES2017", + "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"] +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/.env.example b/packages/create-next-app/templates/default-tw-empty/js/.env.example new file mode 100644 index 0000000000000..7ac0a01551a65 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/default-tw-empty/js/README-template.md b/packages/create-next-app/templates/default-tw-empty/js/README-template.md new file mode 100644 index 0000000000000..5d98b1e5a0368 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/README-template.md @@ -0,0 +1,40 @@ +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 `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. + +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/packages/create-next-app/templates/default-tw-empty/js/eslintrc.json b/packages/create-next-app/templates/default-tw-empty/js/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/gitignore b/packages/create-next-app/templates/default-tw-empty/js/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/default-tw-empty/js/jsconfig.json b/packages/create-next-app/templates/default-tw-empty/js/jsconfig.json new file mode 100644 index 0000000000000..2a2e4b3bf8ba1 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/jsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "paths": { + "@/*": ["./*"] + } + } +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/next.config.mjs b/packages/create-next-app/templates/default-tw-empty/js/next.config.mjs new file mode 100644 index 0000000000000..d5456a15d4ad2 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/next.config.mjs @@ -0,0 +1,6 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, +}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js b/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js new file mode 100644 index 0000000000000..39b86cd6bc00b --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js @@ -0,0 +1,3 @@ +export default function App({ Component, pageProps }) { + return ; +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/pages/_document.js b/packages/create-next-app/templates/default-tw-empty/js/pages/_document.js new file mode 100644 index 0000000000000..b2fff8b4262dd --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/pages/_document.js @@ -0,0 +1,13 @@ +import { Html, Head, Main, NextScript } from "next/document"; + +export default function Document() { + return ( + + + +
+ + + + ); +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/pages/index.js b/packages/create-next-app/templates/default-tw-empty/js/pages/index.js new file mode 100644 index 0000000000000..b95c3ed488adc --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/pages/index.js @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello world!
+
+ ); +} diff --git a/packages/create-next-app/templates/default-tw-empty/js/postcss.config.mjs b/packages/create-next-app/templates/default-tw-empty/js/postcss.config.mjs new file mode 100644 index 0000000000000..1a69fd2a450af --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/packages/create-next-app/templates/default-tw-empty/js/public/favicon.ico b/packages/create-next-app/templates/default-tw-empty/js/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM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Zlr3-NFJ@NFaJlhyfcw{k^vvtGl`N9xSo**rDW4S}i zM9{fMPWo%4wYDG~BZ18BD+}h|GQKc-g^{++3MY>}W_uq7jGHx{mwE9fZiPCoxN$+7 zrODGGJrOkcPQUB(FD5aoS4g~7#6NR^ma7-!>mHuJfY5kTe6PpNNKC9GGRiu^L31uG z$7v`*JknQHsYB!Tm_W{a32TM099djW%5e+j0Ve_ct}IM>XLF1Ap+YvcrLV=|CKo6S zb+9Nl3_YdKP6%Cxy@6TxZ>;4&nTneadr z_ES90ydCev)LV!dN=#(*f}|ZORFdvkYBni^aLbUk>BajeWIOcmHP#8S)*2U~QKI%S zyrLmtPqb&TphJ;>yAxri#;{uyk`JJqODDw%(Z=2`1uc}br^V%>j!gS)D*q*f_-qf8&D;W1dJgQMlaH5er zN2U<%Smb7==vE}dDI8K7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js b/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js new file mode 100644 index 0000000000000..78ebc4e710e1c --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js @@ -0,0 +1,18 @@ +/** @type {import('tailwindcss').Config} */ +module.exports = { + 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: [], +}; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/.env.example b/packages/create-next-app/templates/default-tw-empty/ts/.env.example new file mode 100644 index 0000000000000..7ac0a01551a65 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/.env.example @@ -0,0 +1,3 @@ +# Rename this file to `.env.local` to use environment variables locally with `next dev` +# https://nextjs.org/docs/pages/building-your-application/configuring/environment-variables +MY_HOST="example.com" diff --git a/packages/create-next-app/templates/default-tw-empty/ts/README-template.md b/packages/create-next-app/templates/default-tw-empty/ts/README-template.md new file mode 100644 index 0000000000000..a75ac5248816f --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/README-template.md @@ -0,0 +1,40 @@ +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 `pages/index.tsx`. 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.ts`. + +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. + +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/packages/create-next-app/templates/default-tw-empty/ts/eslintrc.json b/packages/create-next-app/templates/default-tw-empty/ts/eslintrc.json new file mode 100644 index 0000000000000..bffb357a71225 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/eslintrc.json @@ -0,0 +1,3 @@ +{ + "extends": "next/core-web-vitals" +} diff --git a/packages/create-next-app/templates/default-tw-empty/ts/gitignore b/packages/create-next-app/templates/default-tw-empty/ts/gitignore new file mode 100644 index 0000000000000..fd3dbb571a12a --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/gitignore @@ -0,0 +1,36 @@ +# 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/packages/create-next-app/templates/default-tw-empty/ts/next-env.d.ts b/packages/create-next-app/templates/default-tw-empty/ts/next-env.d.ts new file mode 100644 index 0000000000000..4f11a03dc6cc3 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/next-env.d.ts @@ -0,0 +1,5 @@ +/// +/// + +// NOTE: This file should not be edited +// see https://nextjs.org/docs/basic-features/typescript for more information. diff --git a/packages/create-next-app/templates/default-tw-empty/ts/next.config.mjs b/packages/create-next-app/templates/default-tw-empty/ts/next.config.mjs new file mode 100644 index 0000000000000..d5456a15d4ad2 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/next.config.mjs @@ -0,0 +1,6 @@ +/** @type {import('next').NextConfig} */ +const nextConfig = { + reactStrictMode: true, +}; + +export default nextConfig; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx b/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx new file mode 100644 index 0000000000000..956fa84e0cd70 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx @@ -0,0 +1,5 @@ +import type { AppProps } from "next/app"; + +export default function App({ Component, pageProps }: AppProps) { + return ; +} diff --git a/packages/create-next-app/templates/default-tw-empty/ts/pages/_document.tsx b/packages/create-next-app/templates/default-tw-empty/ts/pages/_document.tsx new file mode 100644 index 0000000000000..b2fff8b4262dd --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/pages/_document.tsx @@ -0,0 +1,13 @@ +import { Html, Head, Main, NextScript } from "next/document"; + +export default function Document() { + return ( + + + +
+ + + + ); +} diff --git a/packages/create-next-app/templates/default-tw-empty/ts/pages/index.tsx b/packages/create-next-app/templates/default-tw-empty/ts/pages/index.tsx new file mode 100644 index 0000000000000..b95c3ed488adc --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/pages/index.tsx @@ -0,0 +1,7 @@ +export default function Home() { + return ( +
+
Hello world!
+
+ ); +} diff --git a/packages/create-next-app/templates/default-tw-empty/ts/postcss.config.mjs b/packages/create-next-app/templates/default-tw-empty/ts/postcss.config.mjs new file mode 100644 index 0000000000000..1a69fd2a450af --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/postcss.config.mjs @@ -0,0 +1,8 @@ +/** @type {import('postcss-load-config').Config} */ +const config = { + plugins: { + tailwindcss: {}, + }, +}; + +export default config; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/public/favicon.ico b/packages/create-next-app/templates/default-tw-empty/ts/public/favicon.ico new file mode 100644 index 0000000000000000000000000000000000000000..718d6fea4835ec2d246af9800eddb7ffb276240c GIT binary patch literal 25931 zcmeHv30#a{`}aL_*G&7qml|y<+KVaDM2m#dVr!KsA!#An?kSQM(q<_dDNCpjEux83 zLb9Z^XxbDl(w>%i@8hT6>)&Gu{h#Oeyszu?xtw#Zb1mO{pgX9699l+Qppw7jXaYf~-84xW z)w4x8?=youko|}Vr~(D$UXIbiXABHh`p1?nn8Po~fxRJv}|0e(BPs|G`(TT%kKVJAdg5*Z|x0leQq0 zkdUBvb#>9F()jo|T~kx@OM8$9wzs~t2l;K=woNssA3l6|sx2r3+kdfVW@e^8e*E}v zA1y5{bRi+3Z`uD3{F7LgFJDdvm;nJilkzDku>BwXH(8ItVCXk*-lSJnR?-2UN%hJ){&rlvg`CDTj z)Bzo!3v7Ou#83zEDEFcKt(f1E0~=rqeEbTnMvWR#{+9pg%7G8y>u1OVRUSoox-ovF z2Ydma(;=YuBY(eI|04{hXzZD6_f(v~H;C~y5=DhAC{MMS>2fm~1H_t2$56pc$NH8( z5bH|<)71dV-_oCHIrzrT`2s-5w_+2CM0$95I6X8p^r!gHp+j_gd;9O<1~CEQQGS8) zS9Qh3#p&JM-G8rHekNmKVewU;pJRcTAog68KYo^dRo}(M>36U4Us zfgYWSiHZL3;lpWT=zNAW>Dh#mB!_@Lg%$ms8N-;aPqMn+C2HqZgz&9~Eu z4|Kp<`$q)Uw1R?y(~S>ePdonHxpV1#eSP1B;Ogo+-Pk}6#0GsZZ5!||ev2MGdh}_m z{DeR7?0-1^zVs&`AV6Vt;r3`I`OI_wgs*w=eO%_#7Kepl{B@xiyCANc(l zzIyd4y|c6PXWq9-|KM8(zIk8LPk(>a)zyFWjhT!$HJ$qX1vo@d25W<fvZQ2zUz5WRc(UnFMKHwe1| zWmlB1qdbiA(C0jmnV<}GfbKtmcu^2*P^O?MBLZKt|As~ge8&AAO~2K@zbXelK|4T<{|y4`raF{=72kC2Kn(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7cKz!vs^73o9f>2sgiTzWcwY|BMYHH5%Vn7#kiw&eItCqa zIkR2~Q}>X=Ar8W|^Ms41Fm8o6IB2_j60eOeBB1Br!boW7JnoeX6Gs)?7rW0^5psc- zjS16yb>dFn>KPOF;imD}e!enuIniFzv}n$m2#gCCv4jM#ArwlzZ$7@9&XkFxZ4n!V zj3dyiwW4Ki2QG{@i>yuZXQizw_OkZI^-3otXC{!(lUpJF33gI60ak;Uqitp74|B6I zgg{b=Iz}WkhCGj1M=hu4#Aw173YxIVbISaoc z-nLZC*6Tgivd5V`K%GxhBsp@SUU60-rfc$=wb>zdJzXS&-5(NRRodFk;Kxk!S(O(a0e7oY=E( zAyS;Ow?6Q&XA+cnkCb{28_1N8H#?J!*$MmIwLq^*T_9-z^&UE@A(z9oGYtFy6EZef LrJugUA?W`A8`#=m literal 0 HcmV?d00001 diff --git a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts new file mode 100644 index 0000000000000..7e4bd91a03437 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts @@ -0,0 +1,20 @@ +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/packages/create-next-app/templates/default-tw-empty/ts/tsconfig.json b/packages/create-next-app/templates/default-tw-empty/ts/tsconfig.json new file mode 100644 index 0000000000000..957e71fe5b523 --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/tsconfig.json @@ -0,0 +1,22 @@ +{ + "compilerOptions": { + "target": "ES2017", + "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, + "paths": { + "@/*": ["./*"] + } + }, + "include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"], + "exclude": ["node_modules"] +} diff --git a/packages/create-next-app/templates/index.ts b/packages/create-next-app/templates/index.ts index 894ebe3ee7e3f..711dd5aac2a5b 100644 --- a/packages/create-next-app/templates/index.ts +++ b/packages/create-next-app/templates/index.ts @@ -39,7 +39,6 @@ export const installTemplate = async ({ srcDir, importAlias, skipInstall, - empty, }: InstallTemplateArgs) => { console.log(bold(`Using ${packageManager}.`)); diff --git a/packages/create-next-app/templates/types.ts b/packages/create-next-app/templates/types.ts index af69b1e319f09..7d215900da89d 100644 --- a/packages/create-next-app/templates/types.ts +++ b/packages/create-next-app/templates/types.ts @@ -4,9 +4,11 @@ export type TemplateType = | "app" | "app-empty" | "app-tw" + | "app-tw-empty" | "default" | "default-empty" - | "default-tw"; + | "default-tw" + | "default-tw-empty"; export type TemplateMode = "js" | "ts"; export interface GetTemplateFileArgs { @@ -27,5 +29,4 @@ export interface InstallTemplateArgs { srcDir: boolean; importAlias: string; skipInstall: boolean; - empty: boolean; } From 921b3e665864155dc8785cc0d2889eb2c4c07440 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 14:58:49 -0700 Subject: [PATCH 07/25] chore(create-next-app): add logic for different templates --- packages/create-next-app/create-app.ts | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index 28393361236dc..c0c6294efe597 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -54,11 +54,19 @@ export async function createApp({ const mode: TemplateMode = typescript ? 'ts' : 'js' const template: TemplateType = appRouter ? tailwind - ? 'app-tw' - : 'app' + ? empty + ? 'app-tw-empty' + : 'app-tw' + : empty + ? 'app-empty' + : 'app' : tailwind - ? 'default-tw' - : 'default' + ? empty + ? 'default-tw-empty' + : 'default-tw' + : empty + ? 'default-empty' + : 'default' if (example) { let repoUrl: URL | undefined @@ -235,7 +243,6 @@ export async function createApp({ srcDir, importAlias, skipInstall, - empty, }) } From 4a19fdea64c12f5fa917beb77b0597a122375980 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:18:16 -0700 Subject: [PATCH 08/25] test(create-next-app): update template specification --- .../create-next-app/lib/specification.ts | 109 ++++++++++++++++++ 1 file changed, 109 insertions(+) diff --git a/test/integration/create-next-app/lib/specification.ts b/test/integration/create-next-app/lib/specification.ts index ddccdcc8e3460..f50e4e70ccf09 100644 --- a/test/integration/create-next-app/lib/specification.ts +++ b/test/integration/create-next-app/lib/specification.ts @@ -61,6 +61,29 @@ export const projectSpecification: ProjectSpecification = { ], }, }, + 'default-empty': { + js: { + files: ['pages/index.js', 'pages/_app.js', 'jsconfig.json'], + deps: [], + devDeps: [], + }, + ts: { + files: [ + 'pages/index.tsx', + 'pages/_app.tsx', + 'pages/api/hello.ts', + 'tsconfig.json', + 'next-env.d.ts', + ], + deps: [], + devDeps: [ + '@types/node', + '@types/react', + '@types/react-dom', + 'typescript', + ], + }, + }, 'default-tw': { js: { files: [ @@ -95,6 +118,38 @@ export const projectSpecification: ProjectSpecification = { ], }, }, + 'default-tw-empty': { + js: { + files: [ + 'jsconfig.json', + 'pages/_app.js', + 'pages/index.js', + 'postcss.config.mjs', + 'tailwind.config.js', + ], + deps: [], + devDeps: ['postcss', 'tailwindcss'], + }, + ts: { + files: [ + 'next-env.d.ts', + 'pages/_app.tsx', + 'pages/index.tsx', + 'postcss.config.mjs', + 'tailwind.config.ts', + 'tsconfig.json', + ], + deps: [], + devDeps: [ + '@types/node', + '@types/react-dom', + '@types/react', + 'postcss', + 'tailwindcss', + 'typescript', + ], + }, + }, app: { js: { deps: [], @@ -117,6 +172,28 @@ export const projectSpecification: ProjectSpecification = { ], }, }, + 'app-empty': { + js: { + deps: [], + devDeps: [], + files: ['app/page.js', 'app/layout.js', 'jsconfig.json'], + }, + ts: { + deps: [], + devDeps: [ + '@types/node', + '@types/react', + '@types/react-dom', + 'typescript', + ], + files: [ + 'app/page.tsx', + 'app/layout.tsx', + 'tsconfig.json', + 'next-env.d.ts', + ], + }, + }, 'app-tw': { js: { deps: [], @@ -149,6 +226,38 @@ export const projectSpecification: ProjectSpecification = { ], }, }, + 'app-tw-empty': { + js: { + deps: [], + devDeps: ['postcss', 'tailwindcss'], + files: [ + 'app/layout.js', + 'app/page.js', + 'jsconfig.json', + 'postcss.config.mjs', + 'tailwind.config.js', + ], + }, + ts: { + deps: [], + devDeps: [ + '@types/node', + '@types/react-dom', + '@types/react', + 'postcss', + 'tailwindcss', + 'typescript', + ], + files: [ + 'app/layout.tsx', + 'app/page.tsx', + 'next-env.d.ts', + 'postcss.config.mjs', + 'tailwind.config.ts', + 'tsconfig.json', + ], + }, + }, } export type GetProjectSettingsArgs = { From ccbb4a57a78555ec54c9762eca617b9c4d84779d Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:19:11 -0700 Subject: [PATCH 09/25] test(create-next-app): fix create-next-app integration test --- test/integration/create-next-app/index.test.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/test/integration/create-next-app/index.test.ts b/test/integration/create-next-app/index.test.ts index ca008dbf66317..9b01775961caf 100644 --- a/test/integration/create-next-app/index.test.ts +++ b/test/integration/create-next-app/index.test.ts @@ -24,6 +24,7 @@ describe('create-next-app', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', + '--no-empty', ], { cwd, @@ -63,6 +64,7 @@ describe('create-next-app', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', + '--no-empty', ], { cwd, @@ -92,6 +94,7 @@ describe('create-next-app', () => { '--no-src-dir', '--no-import-alias', '--skip-install', + '--no-empty', ], { cwd, From a483c98ca92faf420cb60756f0ad25d07678cc83 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:20:29 -0700 Subject: [PATCH 10/25] test(create-next-app): fix create-next-app bun integration test --- test/integration/create-next-app/package-manager/bun.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/create-next-app/package-manager/bun.test.ts b/test/integration/create-next-app/package-manager/bun.test.ts index fa1973a66030f..e03e873791abe 100644 --- a/test/integration/create-next-app/package-manager/bun.test.ts +++ b/test/integration/create-next-app/package-manager/bun.test.ts @@ -30,6 +30,7 @@ describe('create-next-app with package manager bun', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, @@ -58,6 +59,7 @@ it('should use bun when user-agent is bun', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, From 12b32b03848c149b85ebe619e141501a89d2ed57 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:21:26 -0700 Subject: [PATCH 11/25] test(create-next-app): fix create-next-app yarn integration test --- test/integration/create-next-app/package-manager/yarn.test.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/test/integration/create-next-app/package-manager/yarn.test.ts b/test/integration/create-next-app/package-manager/yarn.test.ts index 09dde41a67bc3..380efb081bbb6 100644 --- a/test/integration/create-next-app/package-manager/yarn.test.ts +++ b/test/integration/create-next-app/package-manager/yarn.test.ts @@ -31,6 +31,7 @@ describe('create-next-app with package manager yarn', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, @@ -59,6 +60,7 @@ it('should use yarn when user-agent is yarn', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, From 4f990b022424ff5dc41f462b9fd4f9f88ca35dd5 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:22:49 -0700 Subject: [PATCH 12/25] test(create-next-app): fix create-next-app npm, pnpm integration test --- test/integration/create-next-app/package-manager/npm.test.ts | 2 ++ test/integration/create-next-app/package-manager/pnpm.test.ts | 2 ++ 2 files changed, 4 insertions(+) diff --git a/test/integration/create-next-app/package-manager/npm.test.ts b/test/integration/create-next-app/package-manager/npm.test.ts index cafbf60cf60e7..8d8697fd31a90 100644 --- a/test/integration/create-next-app/package-manager/npm.test.ts +++ b/test/integration/create-next-app/package-manager/npm.test.ts @@ -23,6 +23,7 @@ describe('create-next-app with package manager npm', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, @@ -51,6 +52,7 @@ it('should use npm when user-agent is npm', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/package-manager/pnpm.test.ts b/test/integration/create-next-app/package-manager/pnpm.test.ts index fa44eacc907a0..dd168ee901869 100644 --- a/test/integration/create-next-app/package-manager/pnpm.test.ts +++ b/test/integration/create-next-app/package-manager/pnpm.test.ts @@ -31,6 +31,7 @@ describe('create-next-app with package manager pnpm', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, @@ -59,6 +60,7 @@ it('should use pnpm when user-agent is pnpm', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, From d409490b5578c4177eba2149aa15bb0ed4d44bdb Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 15:46:17 -0700 Subject: [PATCH 13/25] test(create-next-app): update prompts.test.ts test --- test/integration/create-next-app/prompts.test.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/integration/create-next-app/prompts.test.ts b/test/integration/create-next-app/prompts.test.ts index fe99ae9e6f0ea..b77bfbfa6b75b 100644 --- a/test/integration/create-next-app/prompts.test.ts +++ b/test/integration/create-next-app/prompts.test.ts @@ -25,6 +25,7 @@ describe('create-next-app prompts', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', + '--no-empty', ], { cwd, @@ -62,6 +63,7 @@ describe('create-next-app prompts', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', + '--no-empty', ], { cwd, @@ -97,6 +99,7 @@ describe('create-next-app prompts', () => { '--eslint', '--no-src-dir', '--no-import-alias', + '--no-empty', ], { cwd, @@ -132,6 +135,7 @@ describe('create-next-app prompts', () => { '--eslint', '--no-tailwind', '--no-src-dir', + '--no-empty', ], { cwd, From 685d688fe4f16ce6b805604c78eddd8c2e8815a5 Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 16:16:00 -0700 Subject: [PATCH 14/25] test(create-next-app): revert --no-empty additions --- test/integration/create-next-app/index.test.ts | 3 --- test/integration/create-next-app/package-manager/bun.test.ts | 2 -- test/integration/create-next-app/package-manager/npm.test.ts | 2 -- test/integration/create-next-app/package-manager/pnpm.test.ts | 2 -- test/integration/create-next-app/package-manager/yarn.test.ts | 2 -- test/integration/create-next-app/prompts.test.ts | 4 ---- 6 files changed, 15 deletions(-) diff --git a/test/integration/create-next-app/index.test.ts b/test/integration/create-next-app/index.test.ts index 9b01775961caf..ca008dbf66317 100644 --- a/test/integration/create-next-app/index.test.ts +++ b/test/integration/create-next-app/index.test.ts @@ -24,7 +24,6 @@ describe('create-next-app', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', - '--no-empty', ], { cwd, @@ -64,7 +63,6 @@ describe('create-next-app', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', - '--no-empty', ], { cwd, @@ -94,7 +92,6 @@ describe('create-next-app', () => { '--no-src-dir', '--no-import-alias', '--skip-install', - '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/package-manager/bun.test.ts b/test/integration/create-next-app/package-manager/bun.test.ts index e03e873791abe..fa1973a66030f 100644 --- a/test/integration/create-next-app/package-manager/bun.test.ts +++ b/test/integration/create-next-app/package-manager/bun.test.ts @@ -30,7 +30,6 @@ describe('create-next-app with package manager bun', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, @@ -59,7 +58,6 @@ it('should use bun when user-agent is bun', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/package-manager/npm.test.ts b/test/integration/create-next-app/package-manager/npm.test.ts index 8d8697fd31a90..cafbf60cf60e7 100644 --- a/test/integration/create-next-app/package-manager/npm.test.ts +++ b/test/integration/create-next-app/package-manager/npm.test.ts @@ -23,7 +23,6 @@ describe('create-next-app with package manager npm', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, @@ -52,7 +51,6 @@ it('should use npm when user-agent is npm', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/package-manager/pnpm.test.ts b/test/integration/create-next-app/package-manager/pnpm.test.ts index dd168ee901869..fa44eacc907a0 100644 --- a/test/integration/create-next-app/package-manager/pnpm.test.ts +++ b/test/integration/create-next-app/package-manager/pnpm.test.ts @@ -31,7 +31,6 @@ describe('create-next-app with package manager pnpm', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, @@ -60,7 +59,6 @@ it('should use pnpm when user-agent is pnpm', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/package-manager/yarn.test.ts b/test/integration/create-next-app/package-manager/yarn.test.ts index 380efb081bbb6..09dde41a67bc3 100644 --- a/test/integration/create-next-app/package-manager/yarn.test.ts +++ b/test/integration/create-next-app/package-manager/yarn.test.ts @@ -31,7 +31,6 @@ describe('create-next-app with package manager yarn', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, @@ -60,7 +59,6 @@ it('should use yarn when user-agent is yarn', async () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, diff --git a/test/integration/create-next-app/prompts.test.ts b/test/integration/create-next-app/prompts.test.ts index b77bfbfa6b75b..fe99ae9e6f0ea 100644 --- a/test/integration/create-next-app/prompts.test.ts +++ b/test/integration/create-next-app/prompts.test.ts @@ -25,7 +25,6 @@ describe('create-next-app prompts', () => { '--no-src-dir', '--no-tailwind', '--no-import-alias', - '--no-empty', ], { cwd, @@ -63,7 +62,6 @@ describe('create-next-app prompts', () => { '--no-tailwind', '--no-src-dir', '--no-import-alias', - '--no-empty', ], { cwd, @@ -99,7 +97,6 @@ describe('create-next-app prompts', () => { '--eslint', '--no-src-dir', '--no-import-alias', - '--no-empty', ], { cwd, @@ -135,7 +132,6 @@ describe('create-next-app prompts', () => { '--eslint', '--no-tailwind', '--no-src-dir', - '--no-empty', ], { cwd, From 42c8af8e1bb2c1d92da8ef60dccb359355805e4e Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 16:16:15 -0700 Subject: [PATCH 15/25] chore(create-next-app): fix whitespace --- packages/create-next-app/index.ts | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/packages/create-next-app/index.ts b/packages/create-next-app/index.ts index 5f501ea307f1d..60a2a09dec1c4 100644 --- a/packages/create-next-app/index.ts +++ b/packages/create-next-app/index.ts @@ -96,7 +96,7 @@ const program = new Commander.Command(packageJson.name) '--empty', ` - Initialize an empty Next.js project. + Initialize an empty Next.js project. ` ) .option( @@ -439,27 +439,6 @@ async function run(): Promise { } } } - - if ( - !process.argv.includes('--empty') && - !process.argv.includes('--no-empty') - ) { - if (ciInfo.isCI) { - program.empty = getPrefOrDefault('empty') - } else { - const { empty } = await prompts({ - onState: onPromptState, - type: 'toggle', - name: 'empty', - message: `Would you like to use an empty Next.js project?`, - initial: getPrefOrDefault('empty'), - active: 'Yes', - inactive: 'No', - }) - program.empty = Boolean(empty) - preferences.empty = Boolean(empty) - } - } } try { From da4686d3da92351686e630b653956d12a9a5387a Mon Sep 17 00:00:00 2001 From: samcx Date: Wed, 8 May 2024 17:12:10 -0700 Subject: [PATCH 16/25] test(create-next-app): fix app & pages integration tests --- .../create-next-app/lib/specification.ts | 1 - test/integration/create-next-app/lib/utils.ts | 6 +- .../create-next-app/templates/app.test.ts | 78 ++++++++++++++++++- .../create-next-app/templates/pages.test.ts | 78 +++++++++++++++++++ test/integration/create-next-app/utils.ts | 10 ++- 5 files changed, 168 insertions(+), 5 deletions(-) diff --git a/test/integration/create-next-app/lib/specification.ts b/test/integration/create-next-app/lib/specification.ts index f50e4e70ccf09..8e4cfd87cbbff 100644 --- a/test/integration/create-next-app/lib/specification.ts +++ b/test/integration/create-next-app/lib/specification.ts @@ -71,7 +71,6 @@ export const projectSpecification: ProjectSpecification = { files: [ 'pages/index.tsx', 'pages/_app.tsx', - 'pages/api/hello.ts', 'tsconfig.json', 'next-env.d.ts', ], diff --git a/test/integration/create-next-app/lib/utils.ts b/test/integration/create-next-app/lib/utils.ts index 1a7e0243a1f69..949be2ce08e90 100644 --- a/test/integration/create-next-app/lib/utils.ts +++ b/test/integration/create-next-app/lib/utils.ts @@ -157,7 +157,11 @@ export const shouldBeTemplateProject = ({ }) // Tailwind templates share the same files (tailwind.config.js, postcss.config.mjs) - if (template !== 'app-tw' && template !== 'default-tw') { + if ( + !['app-tw', 'app-tw-empty', 'default-tw', 'default-tw-empty'].includes( + template + ) + ) { projectFilesShouldNotExist({ cwd, projectName, diff --git a/test/integration/create-next-app/templates/app.test.ts b/test/integration/create-next-app/templates/app.test.ts index 6721bb9f74a03..8ec89fac6d0a0 100644 --- a/test/integration/create-next-app/templates/app.test.ts +++ b/test/integration/create-next-app/templates/app.test.ts @@ -72,7 +72,7 @@ describe('create-next-app --app (App Router)', () => { expect(exitCode).toBe(0) shouldBeTemplateProject({ cwd, projectName, template: 'app', mode: 'ts' }) await tryNextDev({ cwd, projectName }) - await projectShouldHaveNoGitChanges({ cwd, projectName }) + projectShouldHaveNoGitChanges({ cwd, projectName }) }) }) @@ -146,4 +146,80 @@ describe('create-next-app --app (App Router)', () => { }) }) }) + + it('should create an empty project with --empty flag', async () => { + await useTempDir(async (cwd) => { + const projectName = 'app-empty' + const childProcess = createNextApp( + [ + projectName, + '--ts', + '--app', + '--eslint', + '--src-dir', + '--empty', + '--no-tailwind', + '--no-import-alias', + ], + { + cwd, + }, + testVersion + ) + + const exitCode = await spawnExitPromise(childProcess) + const isEmpty = true + expect(exitCode).toBe(0) + shouldBeTemplateProject({ + cwd, + projectName, + template: 'app-empty', + mode: 'ts', + srcDir: true, + }) + await tryNextDev({ + cwd, + projectName, + isEmpty, + }) + }) + }) + + it('should create an empty TailwindCSS project with --empty flag', async () => { + await useTempDir(async (cwd) => { + const projectName = 'app-tw-empty' + const childProcess = createNextApp( + [ + projectName, + '--ts', + '--app', + '--eslint', + '--src-dir', + '--tailwind', + '--empty', + '--no-import-alias', + ], + { + cwd, + }, + testVersion + ) + + const exitCode = await spawnExitPromise(childProcess) + const isEmpty = true + expect(exitCode).toBe(0) + shouldBeTemplateProject({ + cwd, + projectName, + template: 'app-tw-empty', + mode: 'ts', + srcDir: true, + }) + await tryNextDev({ + cwd, + projectName, + isEmpty, + }) + }) + }) }) diff --git a/test/integration/create-next-app/templates/pages.test.ts b/test/integration/create-next-app/templates/pages.test.ts index 77e630220c812..71cd71f7caef6 100644 --- a/test/integration/create-next-app/templates/pages.test.ts +++ b/test/integration/create-next-app/templates/pages.test.ts @@ -154,4 +154,82 @@ describe('create-next-app --no-app (Pages Router)', () => { }) }) }) + + it('should create an empty project with --empty flag', async () => { + await useTempDir(async (cwd) => { + const projectName = 'pages-empty' + const childProcess = createNextApp( + [ + projectName, + '--ts', + '--no-app', + '--eslint', + '--src-dir', + '--no-tailwind', + '--empty', + '--no-import-alias', + ], + { + cwd, + }, + testVersion + ) + + const exitCode = await spawnExitPromise(childProcess) + const isEmpty = true + expect(exitCode).toBe(0) + shouldBeTemplateProject({ + cwd, + projectName, + template: 'default-empty', + mode: 'ts', + srcDir: true, + }) + await tryNextDev({ + cwd, + projectName, + isApp: false, + isEmpty, + }) + }) + }) + + it('should create an empty TailwindCSS project with --empty flag', async () => { + await useTempDir(async (cwd) => { + const projectName = 'pages-tw-empty' + const childProcess = createNextApp( + [ + projectName, + '--ts', + '--no-app', + '--eslint', + '--src-dir', + '--tailwind', + '--empty', + '--no-import-alias', + ], + { + cwd, + }, + testVersion + ) + + const exitCode = await spawnExitPromise(childProcess) + const isEmpty = true + expect(exitCode).toBe(0) + shouldBeTemplateProject({ + cwd, + projectName, + template: 'default-tw-empty', + mode: 'ts', + srcDir: true, + }) + await tryNextDev({ + cwd, + projectName, + isApp: false, + isEmpty, + }) + }) + }) }) diff --git a/test/integration/create-next-app/utils.ts b/test/integration/create-next-app/utils.ts index 2389cc8bf060e..648ab7dc1b747 100644 --- a/test/integration/create-next-app/utils.ts +++ b/test/integration/create-next-app/utils.ts @@ -44,10 +44,12 @@ export async function tryNextDev({ cwd, projectName, isApp = true, + isEmpty = false, }: { cwd: string projectName: string isApp?: boolean + isEmpty?: boolean }) { const dir = join(cwd, projectName) const port = await findPort() @@ -57,10 +59,14 @@ export async function tryNextDev({ try { const res = await fetchViaHTTP(port, '/') - expect(await res.text()).toContain('Get started by editing') + if (isEmpty) { + expect(await res.text()).toContain('Hello world!') + } else { + expect(await res.text()).toContain('Get started by editing') + } expect(res.status).toBe(200) - if (!isApp) { + if (!isApp && !isEmpty) { const apiRes = await fetchViaHTTP(port, '/api/hello') expect(await apiRes.json()).toEqual({ name: 'John Doe' }) expect(apiRes.status).toBe(200) From fe5492aa6492c6b6e09eeb153f011a291babcba0 Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 08:39:22 -0700 Subject: [PATCH 17/25] docs(create-next-app): add --empty mention in --help output --- docs/02-app/02-api-reference/06-create-next-app.mdx | 4 ++++ packages/create-next-app/index.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/docs/02-app/02-api-reference/06-create-next-app.mdx b/docs/02-app/02-api-reference/06-create-next-app.mdx index 069b2e2d858f8..7590067d62c2d 100644 --- a/docs/02-app/02-api-reference/06-create-next-app.mdx +++ b/docs/02-app/02-api-reference/06-create-next-app.mdx @@ -84,6 +84,10 @@ Options: Specify import alias to use (default "@/*"). + --empty + + Initialize an empty project. + --use-npm Explicitly tell the CLI to bootstrap the app using npm diff --git a/packages/create-next-app/index.ts b/packages/create-next-app/index.ts index 60a2a09dec1c4..972d8237986d2 100644 --- a/packages/create-next-app/index.ts +++ b/packages/create-next-app/index.ts @@ -96,7 +96,7 @@ const program = new Commander.Command(packageJson.name) '--empty', ` - Initialize an empty Next.js project. + Initialize an empty project. ` ) .option( From db5344045a70f04c4a2ea4686c19161369334a88 Mon Sep 17 00:00:00 2001 From: Sam Ko Date: Thu, 9 May 2024 08:41:52 -0700 Subject: [PATCH 18/25] chore(create-next-app): remove tailwind themes Co-authored-by: Ahmed Abdelbaset --- .../templates/app-tw-empty/js/tailwind.config.js | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js index 78ebc4e710e1c..73c536bccac14 100644 --- a/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js +++ b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js @@ -5,14 +5,6 @@ module.exports = { "./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))", - }, - }, - }, + theme: {}, plugins: [], }; From 0177e9a0b4d9eb0a55c291dfa7ad614539be4f17 Mon Sep 17 00:00:00 2001 From: Sam Ko Date: Thu, 9 May 2024 08:42:15 -0700 Subject: [PATCH 19/25] chore(create-next-app): remove tailwind themes Co-authored-by: Ahmed Abdelbaset --- .../templates/app-tw-empty/ts/tailwind.config.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts index 7e4bd91a03437..708743e67f900 100644 --- a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts @@ -6,15 +6,7 @@ const config: Config = { "./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))", - }, - }, - }, + theme: {}, plugins: [], }; export default config; From 04517a97dad11cd13ab6d05edcf7b94429c6d57d Mon Sep 17 00:00:00 2001 From: Sam Ko Date: Thu, 9 May 2024 08:42:27 -0700 Subject: [PATCH 20/25] chore(create-next-app): remove tailwind themes Co-authored-by: Ahmed Abdelbaset --- .../templates/default-tw-empty/ts/tailwind.config.ts | 10 +--------- 1 file changed, 1 insertion(+), 9 deletions(-) diff --git a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts index 7e4bd91a03437..708743e67f900 100644 --- a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts @@ -6,15 +6,7 @@ const config: Config = { "./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))", - }, - }, - }, + theme: {}, plugins: [], }; export default config; From 47dea6f3945c007f57edd02915e52c68d5b9d95b Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 08:49:29 -0700 Subject: [PATCH 21/25] chore(create-next-app): update all tw-empty tailwind.config files --- .../templates/app-tw-empty/js/tailwind.config.js | 6 +----- .../templates/app-tw-empty/ts/tailwind.config.ts | 6 +----- .../default-tw-empty/js/tailwind.config.js | 16 ++-------------- .../default-tw-empty/ts/tailwind.config.ts | 6 +----- 4 files changed, 5 insertions(+), 29 deletions(-) diff --git a/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js index 73c536bccac14..3ee1798645a97 100644 --- a/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js +++ b/packages/create-next-app/templates/app-tw-empty/js/tailwind.config.js @@ -1,10 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - content: [ - "./pages/**/*.{js,ts,jsx,tsx,mdx}", - "./components/**/*.{js,ts,jsx,tsx,mdx}", - "./app/**/*.{js,ts,jsx,tsx,mdx}", - ], + content: ["./app/**/*.{js,jsx,mdx}"], theme: {}, plugins: [], }; diff --git a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts index 708743e67f900..38f0201e94c0c 100644 --- a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts @@ -1,11 +1,7 @@ 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}", - ], + content: ["./app/**/*.{js,ts,jsx,tsx,mdx}"], theme: {}, plugins: [], }; diff --git a/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js b/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js index 78ebc4e710e1c..a6ffbf389a530 100644 --- a/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js +++ b/packages/create-next-app/templates/default-tw-empty/js/tailwind.config.js @@ -1,18 +1,6 @@ /** @type {import('tailwindcss').Config} */ module.exports = { - 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))", - }, - }, - }, + content: ["./pages/**/*.{js,jsx,mdx}"], + theme: {}, plugins: [], }; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts index 708743e67f900..5d4235ff04209 100644 --- a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts @@ -1,11 +1,7 @@ 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}", - ], + content: ["./pages/**/*.{js,ts,jsx,tsx,mdx}"], theme: {}, plugins: [], }; From cae2b5a87651c50d052582590f59aa3bc18ed75f Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 08:53:10 -0700 Subject: [PATCH 22/25] chore(create-next-app): update content property in tw-empty/ts --- .../templates/app-tw-empty/ts/tailwind.config.ts | 2 +- .../templates/default-tw-empty/ts/tailwind.config.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts index 38f0201e94c0c..135d40c4dd2c1 100644 --- a/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/app-tw-empty/ts/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; const config: Config = { - content: ["./app/**/*.{js,ts,jsx,tsx,mdx}"], + content: ["./app/**/*.{ts,tsx,mdx}"], theme: {}, plugins: [], }; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts index 5d4235ff04209..e2043f774c55c 100644 --- a/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts +++ b/packages/create-next-app/templates/default-tw-empty/ts/tailwind.config.ts @@ -1,7 +1,7 @@ import type { Config } from "tailwindcss"; const config: Config = { - content: ["./pages/**/*.{js,ts,jsx,tsx,mdx}"], + content: ["./pages/**/*.{ts,tsx,mdx}"], theme: {}, plugins: [], }; From abb6fcc10282460102cd3deca0305078b8f214e6 Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 09:19:56 -0700 Subject: [PATCH 23/25] chore(create-next-app): update tw-empty templates --- .../create-next-app/templates/app-tw-empty/js/app/globals.css | 3 +++ .../create-next-app/templates/app-tw-empty/js/app/layout.js | 2 ++ .../create-next-app/templates/app-tw-empty/ts/app/globals.css | 3 +++ .../create-next-app/templates/app-tw-empty/ts/app/layout.tsx | 1 + .../templates/default-tw-empty/js/pages/_app.js | 2 ++ .../templates/default-tw-empty/js/styles/globals.css | 3 +++ .../templates/default-tw-empty/ts/pages/_app.tsx | 1 + .../templates/default-tw-empty/ts/styles/globals.css | 3 +++ 8 files changed, 18 insertions(+) create mode 100644 packages/create-next-app/templates/app-tw-empty/js/app/globals.css create mode 100644 packages/create-next-app/templates/app-tw-empty/ts/app/globals.css create mode 100644 packages/create-next-app/templates/default-tw-empty/js/styles/globals.css create mode 100644 packages/create-next-app/templates/default-tw-empty/ts/styles/globals.css diff --git a/packages/create-next-app/templates/app-tw-empty/js/app/globals.css b/packages/create-next-app/templates/app-tw-empty/js/app/globals.css new file mode 100644 index 0000000000000..b5c61c956711f --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/js/app/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/packages/create-next-app/templates/app-tw-empty/js/app/layout.js b/packages/create-next-app/templates/app-tw-empty/js/app/layout.js index a45d7e1b56adc..a55b51b6d7022 100644 --- a/packages/create-next-app/templates/app-tw-empty/js/app/layout.js +++ b/packages/create-next-app/templates/app-tw-empty/js/app/layout.js @@ -1,3 +1,5 @@ +import "./globals.css"; + export const metadata = { title: "Create Next App", description: "Generated by create next app", diff --git a/packages/create-next-app/templates/app-tw-empty/ts/app/globals.css b/packages/create-next-app/templates/app-tw-empty/ts/app/globals.css new file mode 100644 index 0000000000000..b5c61c956711f --- /dev/null +++ b/packages/create-next-app/templates/app-tw-empty/ts/app/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx b/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx index 112756e6bfcdc..756fcce4af9b0 100644 --- a/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx +++ b/packages/create-next-app/templates/app-tw-empty/ts/app/layout.tsx @@ -1,4 +1,5 @@ import type { Metadata } from "next"; +import "./globals.css"; export const metadata: Metadata = { title: "Create Next App", diff --git a/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js b/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js index 39b86cd6bc00b..b97e52fc9afab 100644 --- a/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js +++ b/packages/create-next-app/templates/default-tw-empty/js/pages/_app.js @@ -1,3 +1,5 @@ +import "@/styles/globals.css"; + export default function App({ Component, pageProps }) { return ; } diff --git a/packages/create-next-app/templates/default-tw-empty/js/styles/globals.css b/packages/create-next-app/templates/default-tw-empty/js/styles/globals.css new file mode 100644 index 0000000000000..b5c61c956711f --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/js/styles/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx b/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx index 956fa84e0cd70..160eac17fa487 100644 --- a/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx +++ b/packages/create-next-app/templates/default-tw-empty/ts/pages/_app.tsx @@ -1,4 +1,5 @@ import type { AppProps } from "next/app"; +import "@/styles/globals.css"; export default function App({ Component, pageProps }: AppProps) { return ; diff --git a/packages/create-next-app/templates/default-tw-empty/ts/styles/globals.css b/packages/create-next-app/templates/default-tw-empty/ts/styles/globals.css new file mode 100644 index 0000000000000..b5c61c956711f --- /dev/null +++ b/packages/create-next-app/templates/default-tw-empty/ts/styles/globals.css @@ -0,0 +1,3 @@ +@tailwind base; +@tailwind components; +@tailwind utilities; From 3e09f8073bbddf6a28708ee4d109e9c5716d20d4 Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 09:27:18 -0700 Subject: [PATCH 24/25] chore(create-next-app): condense template logic for conciseness and readability --- packages/create-next-app/create-app.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/create-next-app/create-app.ts b/packages/create-next-app/create-app.ts index c0c6294efe597..cbd7d2110b25d 100644 --- a/packages/create-next-app/create-app.ts +++ b/packages/create-next-app/create-app.ts @@ -52,21 +52,7 @@ export async function createApp({ }): Promise { let repoInfo: RepoInfo | undefined const mode: TemplateMode = typescript ? 'ts' : 'js' - const template: TemplateType = appRouter - ? tailwind - ? empty - ? 'app-tw-empty' - : 'app-tw' - : empty - ? 'app-empty' - : 'app' - : tailwind - ? empty - ? 'default-tw-empty' - : 'default-tw' - : empty - ? 'default-empty' - : 'default' + const template: TemplateType = `${appRouter ? 'app' : 'default'}${tailwind ? '-tw' : ''}${empty ? '-empty' : ''}` if (example) { let repoUrl: URL | undefined From 29c33aba0a4647ff021fe1cd392919de74f685f2 Mon Sep 17 00:00:00 2001 From: samcx Date: Thu, 9 May 2024 09:42:16 -0700 Subject: [PATCH 25/25] chore(create-next-app): update empty template README.md's --- .../templates/app-empty/js/README-template.md | 2 -- .../templates/app-empty/ts/README-template.md | 2 -- .../templates/app-tw-empty/js/README-template.md | 2 -- .../templates/app-tw-empty/ts/README-template.md | 2 -- .../templates/default-empty/js/README-template.md | 6 ------ .../templates/default-empty/ts/README-template.md | 6 ------ .../templates/default-tw-empty/js/README-template.md | 6 ------ .../templates/default-tw-empty/ts/README-template.md | 6 ------ 8 files changed, 32 deletions(-) diff --git a/packages/create-next-app/templates/app-empty/js/README-template.md b/packages/create-next-app/templates/app-empty/js/README-template.md index 0dc9ea2bcc410..519e2e66a41f2 100644 --- a/packages/create-next-app/templates/app-empty/js/README-template.md +++ b/packages/create-next-app/templates/app-empty/js/README-template.md @@ -18,8 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the You can start editing the page by modifying `app/page.js`. 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: diff --git a/packages/create-next-app/templates/app-empty/ts/README-template.md b/packages/create-next-app/templates/app-empty/ts/README-template.md index c4033664f80d3..08f571f49a3f0 100644 --- a/packages/create-next-app/templates/app-empty/ts/README-template.md +++ b/packages/create-next-app/templates/app-empty/ts/README-template.md @@ -18,8 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the 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: diff --git a/packages/create-next-app/templates/app-tw-empty/js/README-template.md b/packages/create-next-app/templates/app-tw-empty/js/README-template.md index 0dc9ea2bcc410..519e2e66a41f2 100644 --- a/packages/create-next-app/templates/app-tw-empty/js/README-template.md +++ b/packages/create-next-app/templates/app-tw-empty/js/README-template.md @@ -18,8 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the You can start editing the page by modifying `app/page.js`. 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: diff --git a/packages/create-next-app/templates/app-tw-empty/ts/README-template.md b/packages/create-next-app/templates/app-tw-empty/ts/README-template.md index c4033664f80d3..08f571f49a3f0 100644 --- a/packages/create-next-app/templates/app-tw-empty/ts/README-template.md +++ b/packages/create-next-app/templates/app-tw-empty/ts/README-template.md @@ -18,8 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the 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: diff --git a/packages/create-next-app/templates/default-empty/js/README-template.md b/packages/create-next-app/templates/default-empty/js/README-template.md index 5d98b1e5a0368..ab9a133f886f3 100644 --- a/packages/create-next-app/templates/default-empty/js/README-template.md +++ b/packages/create-next-app/templates/default-empty/js/README-template.md @@ -18,12 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the 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. - -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: diff --git a/packages/create-next-app/templates/default-empty/ts/README-template.md b/packages/create-next-app/templates/default-empty/ts/README-template.md index a75ac5248816f..c9e96a4215aca 100644 --- a/packages/create-next-app/templates/default-empty/ts/README-template.md +++ b/packages/create-next-app/templates/default-empty/ts/README-template.md @@ -18,12 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the You can start editing the page by modifying `pages/index.tsx`. 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.ts`. - -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. - -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: diff --git a/packages/create-next-app/templates/default-tw-empty/js/README-template.md b/packages/create-next-app/templates/default-tw-empty/js/README-template.md index 5d98b1e5a0368..ab9a133f886f3 100644 --- a/packages/create-next-app/templates/default-tw-empty/js/README-template.md +++ b/packages/create-next-app/templates/default-tw-empty/js/README-template.md @@ -18,12 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the 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. - -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: diff --git a/packages/create-next-app/templates/default-tw-empty/ts/README-template.md b/packages/create-next-app/templates/default-tw-empty/ts/README-template.md index a75ac5248816f..c9e96a4215aca 100644 --- a/packages/create-next-app/templates/default-tw-empty/ts/README-template.md +++ b/packages/create-next-app/templates/default-tw-empty/ts/README-template.md @@ -18,12 +18,6 @@ Open [http://localhost:3000](http://localhost:3000) with your browser to see the You can start editing the page by modifying `pages/index.tsx`. 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.ts`. - -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. - -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: