Updated example template in contributing.md (#11968)

This commit is contained in:
liulanz 2020-05-02 00:47:48 -04:00 committed by GitHub
parent 1f324c7206
commit c3d0b0822f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -143,7 +143,7 @@ Deploy the example using [Vercel](https://vercel.com/now):
Execute [`create-next-app`](https://github.com/zeit/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/zeit/next.js/tree/canary/packages/create-next-app) with [npm](https://docs.npmjs.com/cli/init) or [Yarn](https://yarnpkg.com/lang/en/docs/cli/create/) to bootstrap the example:
```bash ```bash
npx create-next-app --example DIRECTORY_NAME DIRECTORY_NAME-app npm init next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
# or # or
yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app yarn create next-app --example DIRECTORY_NAME DIRECTORY_NAME-app
``` ```