Skip to content

Commit

Permalink
examples: improve DX while copying command to create new project
Browse files Browse the repository at this point in the history
  • Loading branch information
JamBalaya56562 committed Dec 3, 2024
1 parent c9aae2f commit 7423a2b
Show file tree
Hide file tree
Showing 29 changed files with 179 additions and 59 deletions.
8 changes: 6 additions & 2 deletions examples/app-dir-i18n-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example app-dir-i18n-routing i18n-app
# or
```

```bash
yarn create next-app --example app-dir-i18n-routing i18n-app
# or
```

```bash
pnpm create next-app --example app-dir-i18n-routing i18n-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/blog/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example blog my-blog
# or
```

```bash
yarn create next-app --example blog my-blog
# or
```

```bash
pnpm create next-app --example blog my-blog
```

Expand Down
8 changes: 6 additions & 2 deletions examples/cms-dotcms/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,9 +54,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example cms-dotcms cms-dotcms-app
# or
```

```bash
yarn create next-app --example cms-dotcms cms-dotcms-app
# or
```

```bash
pnpm create next-app --example cms-dotcms cms-dotcms-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/cms-enterspeed/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example cms-enterspeed enterspeed-app
# or
```

```bash
yarn create next-app --example cms-enterspeed enterspeed-app
# or
```

```bash
pnpm create next-app -- --example cms-enterspeed enterspeed-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/cms-makeswift/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu

```bash
npx create-next-app --example cms-makeswift cms-makeswift-app
# or
```

```bash
yarn create next-app --example cms-makeswift cms-makeswift-app
# or
```

```bash
pnpm create next-app --example cms-makeswift cms-makeswift-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/cms-umbraco/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example cms-umbraco umbraco-app
# or
```

```bash
yarn create next-app --example cms-umbraco umbraco-app
# or
```

```bash
pnpm create next-app --example cms-umbraco umbraco-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/convex/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example convex convex-app
# or
```

```bash
yarn create next-app --example convex convex-app
# or
```

```bash
pnpm create next-app --example convex convex-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/custom-server/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,12 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example custom-server custom-server-app
# or
```

```bash
yarn create next-app --example custom-server custom-server-app
# or
```

```bash
pnpm create next-app --example custom-server custom-server-app
```
8 changes: 6 additions & 2 deletions examples/i18n-routing/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example i18n-routing i18n-app
# or
```

```bash
yarn create next-app --example i18n-routing i18n-app
# or
```

```bash
pnpm create next-app --example i18n-routing i18n-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/image-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example image-component image-app
# or
```

```bash
yarn create next-app --example image-component image-app
# or
```

```bash
pnpm create next-app --example image-component image-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/image-legacy-component/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example image-legacy-component image-app
# or
```

```bash
yarn create next-app --example image-legacy-component image-app
# or
```

```bash
pnpm create next-app --example image-legacy-component image-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/progressive-web-app/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example progressive-web-app progressive-web-app
# or
```

```bash
yarn create next-app --example progressive-web-app progressive-web-app
# or
```

```bash
pnpm create next-app --example progressive-web-app progressive-web-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-axiom/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-axiom with-axiom-app
# or
```

```bash
yarn create next-app --example with-axiom with-axiom-app
# or
```

```bash
pnpm create next-app --example with-axiom with-axiom-app
```

Expand Down
8 changes: 7 additions & 1 deletion examples/with-contentlayer/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,14 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-contentlayer with-contentlayer-app
# or
```

```bash
yarn create next-app --example with-contentlayer with-contentlayer-app
```

```bash
pnpm create next-app --example with-contentlayer with-contentlayer-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
10 changes: 8 additions & 2 deletions examples/with-cookies-next/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,18 @@ Deploy the example using [Vercel](https://vercel.com?utm_source=github&utm_mediu

## How to use

Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:

```bash
npx create-next-app --example with-cookies-next with-cookies-next-app
# or
```

```bash
yarn create next-app --example with-cookies-next with-cookies-next-app
```

```bash
pnpm create next-app --example with-cookies-next with-cookies-next-app
```

Deploy it to the cloud with [Vercel](https://vercel.com/new?utm_source=github&utm_medium=readme&utm_campaign=next-example) ([Documentation](https://nextjs.org/docs/deployment)).
8 changes: 6 additions & 2 deletions examples/with-docker-multi-env/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-docker-multi-env nextjs-docker-multi-env
# or
```

```bash
yarn create next-app --example with-docker-multi-env nextjs-docker-multi-env
# or
```

```bash
pnpm create next-app --example with-docker-multi-env nextjs-docker-multi-env
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-docker/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-docker nextjs-docker
# or
```

```bash
yarn create next-app --example with-docker nextjs-docker
# or
```

```bash
pnpm create next-app --example with-docker nextjs-docker
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-mysql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-mysql nextjs-mysql
# or
```

```bash
yarn create next-app --example with-mysql nextjs-mysql
# or
```

```bash
pnpm create next-app --example with-mysql nextjs-mysql
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-next-seo/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-next-seo next-seo-app
# or
```

```bash
yarn create next-app --example with-next-seo next-seo-app
# or
```

```bash
pnpm create next-app --example with-next-seo next-seo-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-next-ui/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-next-ui with-next-ui-app
# or
```

```bash
yarn create next-app --example with-next-ui with-next-ui-app
# or
```

```bash
pnpm create next-app --example with-next-ui with-next-ui-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-nhost-auth-realtime-graphql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-nhost-auth-realtime-graphql nhost-app
# or
```

```bash
yarn create next-app --example with-nhost-auth-realtime-graphql nhost-app
# or
```

```bash
pnpm create next-app --example with-nhost-auth-realtime-graphql nhost-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-particles/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-particles with-particles-app
# or
```

```bash
yarn create next-app --example with-particles with-particles-app
# or
```

```bash
pnpm create next-app -- --example with-particles with-particles-app
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-redis/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,13 @@ Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packag

```bash
npx create-next-app --example with-redis roadmap
# or
```

```bash
yarn create next-app --example with-redis roadmap
# or
```

```bash
pnpm create next-app --example with-redis roadmap
```

Expand Down
8 changes: 6 additions & 2 deletions examples/with-sentry/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ To begin, execute [`create-next-app`](https://github.com/vercel/next.js/tree/can

```bash
npx create-next-app --example with-sentry nextjs-sentry-example
# or
```

```bash
yarn create next-app --example with-sentry nextjs-sentry-example
# or
```

```bash
pnpm create next-app --example with-sentry nextjs-sentry-example
```

Expand Down
2 changes: 1 addition & 1 deletion examples/with-sfcc/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Check out our [Next.js deployment documentation](https://nextjs.org/docs/deploym
Execute [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init), [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/), or [pnpm](https://pnpm.io) to bootstrap the example:

```bash
npx create-next-app --example with-sfcc nextjs-sfcc-app
npx create-next-app --example with-sfcc nextjs-sfcc-app
```

```bash
Expand Down
Loading

0 comments on commit 7423a2b

Please sign in to comment.