diff --git a/examples/active-class-name/README.md b/examples/active-class-name/README.md index e314afeb..83d5ca9d 100644 --- a/examples/active-class-name/README.md +++ b/examples/active-class-name/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example active-class-name active-class-name-app +```bash +npx create-next-app --example active-class-name active-class-name-app +# or +yarn create next-app --example active-class-name active-class-name-app ``` ### Download manually diff --git a/examples/basic-css/README.md b/examples/basic-css/README.md index a3f58158..ccca8b64 100644 --- a/examples/basic-css/README.md +++ b/examples/basic-css/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example basic-css basic-css-app +```bash +npx create-next-app --example basic-css basic-css-app +# or +yarn create next-app --example basic-css basic-css-app ``` ### Download manually diff --git a/examples/custom-server-express/README.md b/examples/custom-server-express/README.md index f13371fe..f61a45dd 100644 --- a/examples/custom-server-express/README.md +++ b/examples/custom-server-express/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-express custom-server-express-app +```bash +npx create-next-app --example custom-server-express custom-server-express-app +# or +yarn create next-app --example custom-server-express custom-server-express-app ``` ### Download manually diff --git a/examples/custom-server-fastify/README.md b/examples/custom-server-fastify/README.md index 0045a5c5..25d388f1 100644 --- a/examples/custom-server-fastify/README.md +++ b/examples/custom-server-fastify/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-fastify custom-server-fastify-app +```bash +npx create-next-app --example custom-server-fastify custom-server-fastify-app +# or +yarn create next-app --example custom-server-fastify custom-server-fastify-app ``` ### Download manually diff --git a/examples/custom-server-hapi/README.md b/examples/custom-server-hapi/README.md index 8a0a56a2..787f1b5d 100644 --- a/examples/custom-server-hapi/README.md +++ b/examples/custom-server-hapi/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-hapi custom-server-hapi-app +```bash +npx create-next-app --example custom-server-hapi custom-server-hapi-app +# or +yarn create next-app --example custom-server-hapi custom-server-hapi-app ``` ### Download manually diff --git a/examples/custom-server-koa/README.md b/examples/custom-server-koa/README.md index a3c4c7f9..e4c32ff9 100644 --- a/examples/custom-server-koa/README.md +++ b/examples/custom-server-koa/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-koa custom-server-koa-app +```bash +npx create-next-app --example custom-server-koa custom-server-koa-app +# or +yarn create next-app --example custom-server-koa custom-server-koa-app ``` ### Download manually diff --git a/examples/custom-server-micro/README.md b/examples/custom-server-micro/README.md index 18aa50cc..39979b0f 100644 --- a/examples/custom-server-micro/README.md +++ b/examples/custom-server-micro/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-micro custom-server-micro-app +```bash +npx create-next-app --example custom-server-micro custom-server-micro-app +# or +yarn create next-app --example custom-server-micro custom-server-micro-app ``` ### Download manually diff --git a/examples/custom-server-nodemon/README.md b/examples/custom-server-nodemon/README.md index 26c8182d..0ee78d27 100644 --- a/examples/custom-server-nodemon/README.md +++ b/examples/custom-server-nodemon/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-nodemon custom-server-nodemon-app +```bash +npx create-next-app --example custom-server-nodemon custom-server-nodemon-app +# or +yarn create next-app --example custom-server-nodemon custom-server-nodemon-app ``` ### Download manually diff --git a/examples/custom-server-typescript/README.md b/examples/custom-server-typescript/README.md index 93e44c2c..a440e616 100644 --- a/examples/custom-server-typescript/README.md +++ b/examples/custom-server-typescript/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server-typescript custom-server-typescript-app +```bash +npx create-next-app --example custom-server-typescript custom-server-typescript-app +# or +yarn create next-app --example custom-server-typescript custom-server-typescript-app ``` ### Download manually diff --git a/examples/custom-server/README.md b/examples/custom-server/README.md index ce526ae8..79c1c393 100644 --- a/examples/custom-server/README.md +++ b/examples/custom-server/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example custom-server custom-server-app +```bash +npx create-next-app --example custom-server custom-server-app +# or +yarn create next-app --example custom-server custom-server-app ``` ### Download manually diff --git a/examples/data-fetch/README.md b/examples/data-fetch/README.md index 5235d096..c30ba332 100644 --- a/examples/data-fetch/README.md +++ b/examples/data-fetch/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example data-fetch data-fetch-app +```bash +npx create-next-app --example data-fetch data-fetch-app +# or +yarn create next-app --example data-fetch data-fetch-app ``` ### Download manually diff --git a/examples/form-handler/README.md b/examples/form-handler/README.md index bda443b5..370f5969 100644 --- a/examples/form-handler/README.md +++ b/examples/form-handler/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example form-handler form-handler-app +```bash +npx create-next-app --example form-handler form-handler-app +# or +yarn create next-app --example form-handler form-handler-app ``` ### Download manually diff --git a/examples/head-elements/README.md b/examples/head-elements/README.md index 740d70ab..8d32b78f 100644 --- a/examples/head-elements/README.md +++ b/examples/head-elements/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example head-elements head-elements-app +```bash +npx create-next-app --example head-elements head-elements-app +# or +yarn create next-app --example head-elements head-elements-app ``` ### Download manually diff --git a/examples/hello-world/README.md b/examples/hello-world/README.md index 839be69c..62e27468 100644 --- a/examples/hello-world/README.md +++ b/examples/hello-world/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example hello-world hello-world-app +```bash +npx create-next-app --example hello-world hello-world-app +# or +yarn create next-app --example hello-world hello-world-app ``` ### Download manually diff --git a/examples/layout-component/README.md b/examples/layout-component/README.md index 488846eb..a347a77b 100644 --- a/examples/layout-component/README.md +++ b/examples/layout-component/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example layout-component layout-component-app +```bash +npx create-next-app --example layout-component layout-component-app +# or +yarn create next-app --example layout-component layout-component-app ``` ### Download manually diff --git a/examples/nested-components/README.md b/examples/nested-components/README.md index 55fccf47..fd2e1ad6 100644 --- a/examples/nested-components/README.md +++ b/examples/nested-components/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example nested-components nested-components-app +```bash +npx create-next-app --example nested-components nested-components-app +# or +yarn create next-app --example nested-components nested-components-app ``` ### Download manually diff --git a/examples/page-transitions/README.md b/examples/page-transitions/README.md index a9de94c5..5f537bbb 100644 --- a/examples/page-transitions/README.md +++ b/examples/page-transitions/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example page-transitions page-transitions-app +```bash +npx create-next-app --example page-transitions page-transitions-app +# or +yarn create next-app --example page-transitions page-transitions-app ``` ### Download manually diff --git a/examples/parameterized-routing/README.md b/examples/parameterized-routing/README.md index 5b00521d..e4df754f 100644 --- a/examples/parameterized-routing/README.md +++ b/examples/parameterized-routing/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example parameterized-routing parameterized-routing-app +```bash +npx create-next-app --example parameterized-routing parameterized-routing-app +# or +yarn create next-app --example parameterized-routing parameterized-routing-app ``` ### Download manually diff --git a/examples/progressive-render/README.md b/examples/progressive-render/README.md index a9c0e78a..b98dc15b 100644 --- a/examples/progressive-render/README.md +++ b/examples/progressive-render/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example progressive-render progressive-render-app +```bash +npx create-next-app --example progressive-render progressive-render-app +# or +yarn create next-app --example progressive-render progressive-render-app ``` ### Download manually diff --git a/examples/root-static-files/README.md b/examples/root-static-files/README.md index 2ea50f7e..53879a1e 100644 --- a/examples/root-static-files/README.md +++ b/examples/root-static-files/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example root-static-files root-static-files-app +```bash +npx create-next-app --example root-static-files root-static-files-app +# or +yarn create next-app --example root-static-files root-static-files-app ``` ### Download manually diff --git a/examples/shared-modules/README.md b/examples/shared-modules/README.md index 26567d14..95cc44dd 100644 --- a/examples/shared-modules/README.md +++ b/examples/shared-modules/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example shared-modules shared-modules-app +```bash +npx create-next-app --example shared-modules shared-modules-app +# or +yarn create next-app --example shared-modules shared-modules-app ``` ### Download manually diff --git a/examples/ssr-caching/README.md b/examples/ssr-caching/README.md index 6c219c20..ce835c18 100644 --- a/examples/ssr-caching/README.md +++ b/examples/ssr-caching/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example ssr-caching ssr-caching-app +```bash +npx create-next-app --example ssr-caching ssr-caching-app +# or +yarn create next-app --example ssr-caching ssr-caching-app ``` ### Download manually diff --git a/examples/svg-components/README.md b/examples/svg-components/README.md index 49cd75b6..bdb25628 100644 --- a/examples/svg-components/README.md +++ b/examples/svg-components/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example svg-components svg-components-app +```bash +npx create-next-app --example svg-components svg-components-app +# or +yarn create next-app --example svg-components svg-components-app ``` ### Download manually diff --git a/examples/using-inferno/README.md b/examples/using-inferno/README.md index dd65bc32..8d787acf 100644 --- a/examples/using-inferno/README.md +++ b/examples/using-inferno/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example using-inferno using-inferno-app +```bash +npx create-next-app --example using-inferno using-inferno-app +# or +yarn create next-app --example using-inferno using-inferno-app ``` ### Download manually diff --git a/examples/using-nerv/README.md b/examples/using-nerv/README.md index 0156310f..f0144133 100644 --- a/examples/using-nerv/README.md +++ b/examples/using-nerv/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example using-nerv using-nerv-app +```bash +npx create-next-app --example using-nerv using-nerv-app +# or +yarn create next-app --example using-nerv using-nerv-app ``` ### Download manually diff --git a/examples/using-preact/README.md b/examples/using-preact/README.md index d68cb891..aa8728f8 100644 --- a/examples/using-preact/README.md +++ b/examples/using-preact/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example using-preact using-preact-app +```bash +npx create-next-app --example using-preact using-preact-app +# or +yarn create next-app --example using-preact using-preact-app ``` ### Download manually diff --git a/examples/using-router/README.md b/examples/using-router/README.md index 39753ce4..f1294879 100644 --- a/examples/using-router/README.md +++ b/examples/using-router/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example using-router using-router-app +```bash +npx create-next-app --example using-router using-router-app +# or +yarn create next-app --example using-router using-router-app ``` ### Download manually diff --git a/examples/using-with-router/README.md b/examples/using-with-router/README.md index 0750f27f..851368f0 100644 --- a/examples/using-with-router/README.md +++ b/examples/using-with-router/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example using-with-router using-with-router-app +```bash +npx create-next-app --example using-with-router using-with-router-app +# or +yarn create next-app --example using-with-router using-with-router-app ``` ### Download manually diff --git a/examples/with-absolute-imports/README.md b/examples/with-absolute-imports/README.md index a9e0de1e..416035ec 100644 --- a/examples/with-absolute-imports/README.md +++ b/examples/with-absolute-imports/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-absolute-imports with-absolute-imports-app +```bash +npx create-next-app --example with-absolute-imports with-absolute-imports-app +# or +yarn create next-app --example with-absolute-imports with-absolute-imports-app ``` ### Download manually diff --git a/examples/with-algolia-react-instantsearch/README.md b/examples/with-algolia-react-instantsearch/README.md index 8503ad69..eb07b499 100644 --- a/examples/with-algolia-react-instantsearch/README.md +++ b/examples/with-algolia-react-instantsearch/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app +```bash +npx create-next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app +# or +yarn create next-app --example with-algolia-react-instantsearch with-algolia-react-instantsearch-app ``` ### Download manually diff --git a/examples/with-amp/README.md b/examples/with-amp/README.md index 58d2a8db..58f185ec 100644 --- a/examples/with-amp/README.md +++ b/examples/with-amp/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-amp with-amp-app +```bash +npx create-next-app --example with-amp with-amp-app +# or +yarn create next-app --example with-amp with-amp-app ``` ### Download manually diff --git a/examples/with-analytics/README.md b/examples/with-analytics/README.md index ec305fb4..c72d8d3c 100644 --- a/examples/with-analytics/README.md +++ b/examples/with-analytics/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-analytics with-analytics-app +```bash +npx create-next-app --example with-analytics with-analytics-app +# or +yarn create next-app --example with-analytics with-analytics-app ``` ### Download manually diff --git a/examples/with-ant-design/README.md b/examples/with-ant-design/README.md index dda38111..f8cbfb3a 100644 --- a/examples/with-ant-design/README.md +++ b/examples/with-ant-design/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-ant-design with-ant-design-app +```bash +npx create-next-app --example with-ant-design with-ant-design-app +# or +yarn create next-app --example with-ant-design with-ant-design-app ``` ### Download manually diff --git a/examples/with-antd-mobile/README.md b/examples/with-antd-mobile/README.md index 533e7eaa..a593e1be 100644 --- a/examples/with-antd-mobile/README.md +++ b/examples/with-antd-mobile/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-antd-mobile with-antd-mobile-app +```bash +npx create-next-app --example with-antd-mobile with-antd-mobile-app +# or +yarn create next-app --example with-antd-mobile with-antd-mobile-app ``` ### Download manually diff --git a/examples/with-aphrodite/README.md b/examples/with-aphrodite/README.md index bb0b4049..187e5339 100644 --- a/examples/with-aphrodite/README.md +++ b/examples/with-aphrodite/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-aphrodite with-aphrodite-app +```bash +npx create-next-app --example with-aphrodite with-aphrodite-app +# or +yarn create next-app --example with-aphrodite with-aphrodite-app ``` ### Download manually diff --git a/examples/with-apollo-and-redux-saga/README.md b/examples/with-apollo-and-redux-saga/README.md index 9e818728..63f39083 100644 --- a/examples/with-apollo-and-redux-saga/README.md +++ b/examples/with-apollo-and-redux-saga/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-apollo-and-redux-saga with-apollo-and-redux-saga-app +```bash +npx create-next-app --example with-apollo-and-redux-saga with-apollo-and-redux-saga-app +# or +yarn create next-app --example with-apollo-and-redux-saga with-apollo-and-redux-saga-app ``` ### Download manually diff --git a/examples/with-apollo-and-redux/README.md b/examples/with-apollo-and-redux/README.md index 654bde05..548a4556 100644 --- a/examples/with-apollo-and-redux/README.md +++ b/examples/with-apollo-and-redux/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-apollo-and-redux with-apollo-and-redux-app +```bash +npx create-next-app --example with-apollo-and-redux with-apollo-and-redux-app +# or +yarn create next-app --example with-apollo-and-redux with-apollo-and-redux-app ``` ### Download manually diff --git a/examples/with-apollo-auth/README.md b/examples/with-apollo-auth/README.md index 11794fa2..ff14ceff 100644 --- a/examples/with-apollo-auth/README.md +++ b/examples/with-apollo-auth/README.md @@ -11,9 +11,10 @@ https://next-with-apollo-auth.now.sh Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-apollo-auth with-apollo-auth-app +```bash +npx create-next-app --example with-apollo-auth with-apollo-auth-app +# or +yarn create next-app --example with-apollo-auth with-apollo-auth-app ``` ### Download manually diff --git a/examples/with-apollo/README.md b/examples/with-apollo/README.md index bbf1f857..563485e8 100644 --- a/examples/with-apollo/README.md +++ b/examples/with-apollo/README.md @@ -11,9 +11,10 @@ https://next-with-apollo.now.sh Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-apollo with-apollo-app +```bash +npx create-next-app --example with-apollo with-apollo-app +# or +yarn create next-app --example with-apollo with-apollo-app ``` ### Download manually diff --git a/examples/with-asset-imports/README.md b/examples/with-asset-imports/README.md index 1e1d221c..c2f58c78 100644 --- a/examples/with-asset-imports/README.md +++ b/examples/with-asset-imports/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-asset-imports with-asset-imports-app +```bash +npx create-next-app --example with-asset-imports with-asset-imports-app +# or +yarn create next-app --example with-asset-imports with-asset-imports-app ``` ### Download manually diff --git a/examples/with-babel-macros/README.md b/examples/with-babel-macros/README.md index b40e6293..6780c923 100644 --- a/examples/with-babel-macros/README.md +++ b/examples/with-babel-macros/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-babel-macros with-babel-macros-app +```bash +npx create-next-app --example with-babel-macros with-babel-macros-app +# or +yarn create next-app --example with-babel-macros with-babel-macros-app ``` ### Download manually diff --git a/examples/with-custom-reverse-proxy/README.md b/examples/with-custom-reverse-proxy/README.md index 9966f1d8..bb5774a2 100644 --- a/examples/with-custom-reverse-proxy/README.md +++ b/examples/with-custom-reverse-proxy/README.md @@ -9,7 +9,7 @@ Sorry for the extra packages. I belong to the minority camp of writing ES6 code ## How to run it -``` +```bash npm i; npm run build; npm run dev; ``` diff --git a/examples/with-cxs/README.md b/examples/with-cxs/README.md index 4e28c2a1..4d2fbbe8 100644 --- a/examples/with-cxs/README.md +++ b/examples/with-cxs/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-cxs with-cxs-app +```bash +npx create-next-app --example with-cxs with-cxs-app +# or +yarn create next-app --example with-cxs with-cxs-app ``` ### Download manually diff --git a/examples/with-data-prefetch/README.md b/examples/with-data-prefetch/README.md index 32e0c642..25b087a2 100644 --- a/examples/with-data-prefetch/README.md +++ b/examples/with-data-prefetch/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-data-prefetch with-data-prefetch-app +```bash +npx create-next-app --example with-data-prefetch with-data-prefetch-app +# or +yarn create next-app --example with-data-prefetch with-data-prefetch-app ``` ### Download manually diff --git a/examples/with-dotenv/README.md b/examples/with-dotenv/README.md index 1c434dda..95cba840 100644 --- a/examples/with-dotenv/README.md +++ b/examples/with-dotenv/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-dotenv with-dotenv-app +```bash +npx create-next-app --example with-dotenv with-dotenv-app +# or +yarn create next-app --example with-dotenv with-dotenv-app ``` ### Download manually diff --git a/examples/with-draft-js/README.md b/examples/with-draft-js/README.md index 5a9c90ac..64c4531e 100644 --- a/examples/with-draft-js/README.md +++ b/examples/with-draft-js/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-draft-js +```bash +npx create-next-app --example with-draft-js +# or +yarn create next-app --example with-draft-js with-draft-js-app ``` ### Download manually diff --git a/examples/with-dynamic-import/README.md b/examples/with-dynamic-import/README.md index 56ef0847..39e203be 100644 --- a/examples/with-dynamic-import/README.md +++ b/examples/with-dynamic-import/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-dynamic-import with-dynamic-import-app +```bash +npx create-next-app --example with-dynamic-import with-dynamic-import-app +# or +yarn create next-app --example with-dynamic-import with-dynamic-import-app ``` ### Download manually diff --git a/examples/with-electron/readme.md b/examples/with-electron/README.md similarity index 89% rename from examples/with-electron/readme.md rename to examples/with-electron/README.md index 37b9641e..3a07ccda 100644 --- a/examples/with-electron/readme.md +++ b/examples/with-electron/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-electron with-electron-app +```bash +npx create-next-app --example with-electron with-electron-app +# or +yarn create next-app --example with-electron with-electron-app ``` ### Download manually diff --git a/examples/with-emotion/README.md b/examples/with-emotion/README.md index 35bd195d..7ae15dce 100644 --- a/examples/with-emotion/README.md +++ b/examples/with-emotion/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-emotion with-emotion-app +```bash +npx create-next-app --example with-emotion with-emotion-app +# or +yarn create next-app --example with-emotion with-emotion-app ``` ### Download manually diff --git a/examples/with-fela/README.md b/examples/with-fela/README.md index 26c46d4e..9a69f53b 100755 --- a/examples/with-fela/README.md +++ b/examples/with-fela/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-fela with-fela-app +```bash +npx create-next-app --example with-fela with-fela-app +# or +yarn create next-app --example with-fela with-fela-app ``` ### Download manually diff --git a/examples/with-firebase-authentication/README.md b/examples/with-firebase-authentication/README.md index 84f70244..6637294e 100644 --- a/examples/with-firebase-authentication/README.md +++ b/examples/with-firebase-authentication/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-firebase-authentication with-firebase-authentication-app +```bash +npx create-next-app --example with-firebase-authentication with-firebase-authentication-app +# or +yarn create next-app --example with-firebase-authentication with-firebase-authentication-app ``` ### Download manually diff --git a/examples/with-firebase-hosting/README.md b/examples/with-firebase-hosting/README.md index db225690..5acc308f 100644 --- a/examples/with-firebase-hosting/README.md +++ b/examples/with-firebase-hosting/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-firebase-hosting with-firebase-hosting-app +```bash +npx create-next-app --example with-firebase-hosting with-firebase-hosting-app +# or +yarn create next-app --example with-firebase-hosting with-firebase-hosting-app ``` ### Download manually diff --git a/examples/with-flow/README.md b/examples/with-flow/README.md index 5a13ed30..a1f17e14 100644 --- a/examples/with-flow/README.md +++ b/examples/with-flow/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-flow with-flow-app +```bash +npx create-next-app --example with-flow with-flow-app +# or +yarn create next-app --example with-flow with-flow-app ``` ### Download manually diff --git a/examples/with-freactal/README.md b/examples/with-freactal/README.md index c6464c99..9d520e59 100644 --- a/examples/with-freactal/README.md +++ b/examples/with-freactal/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-freactal with-freactal-app +```bash +npx create-next-app --example with-freactal with-freactal-app +# or +yarn create next-app --example with-freactal with-freactal-app ``` ### Download manually diff --git a/examples/with-glamor/README.md b/examples/with-glamor/README.md index 2191a18b..98fe5852 100644 --- a/examples/with-glamor/README.md +++ b/examples/with-glamor/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-glamor with-glamor-app +```bash +npx create-next-app --example with-glamor with-glamor-app +# or +yarn create next-app --example with-glamor with-glamor-app ``` ### Download manually diff --git a/examples/with-glamorous/README.md b/examples/with-glamorous/README.md index ef55660f..44afacb5 100644 --- a/examples/with-glamorous/README.md +++ b/examples/with-glamorous/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-glamorous with-glamorous-app +```bash +npx create-next-app --example with-glamorous with-glamorous-app +# or +yarn create next-app --example with-glamorous with-glamorous-app ``` ### Download manually diff --git a/examples/with-global-stylesheet/README.md b/examples/with-global-stylesheet/README.md index 63432bb7..1d84005c 100644 --- a/examples/with-global-stylesheet/README.md +++ b/examples/with-global-stylesheet/README.md @@ -10,9 +10,10 @@ This is an example of how you can include a global stylesheet in a next.js webap Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-global-stylesheet with-global-stylesheet-app +```bash +npx create-next-app --example with-global-stylesheet with-global-stylesheet-app +# or +yarn create next-app --example with-global-stylesheet with-global-stylesheet-app ``` ### Download manually diff --git a/examples/with-hashed-statics/README.md b/examples/with-hashed-statics/README.md index d13f082c..49fe56bd 100644 --- a/examples/with-hashed-statics/README.md +++ b/examples/with-hashed-statics/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-hashed-statics with-hashed-statics-app +```bash +npx create-next-app --example with-hashed-statics with-hashed-statics-app +# or +yarn create next-app --example with-hashed-statics with-hashed-statics-app ``` ### Download manually diff --git a/examples/with-higher-order-component/README.md b/examples/with-higher-order-component/README.md index df421ae6..dc74ec10 100644 --- a/examples/with-higher-order-component/README.md +++ b/examples/with-higher-order-component/README.md @@ -9,9 +9,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-higher-order-component with-higher-order-component-app +```bash +npx create-next-app --example with-higher-order-component with-higher-order-component-app +# or +yarn create next-app --example with-higher-order-component with-higher-order-component-app ``` ### Download manually diff --git a/examples/with-i18next/README.md b/examples/with-i18next/README.md index fb60e8f2..7e269733 100644 --- a/examples/with-i18next/README.md +++ b/examples/with-i18next/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-i18next with-i18next-app +```bash +npx create-next-app --example with-i18next with-i18next-app +# or +yarn create next-app --example with-i18next with-i18next-app ``` ### Download manually diff --git a/examples/with-ioc/README.md b/examples/with-ioc/README.md index 4c1c0ae1..c5fa01db 100644 --- a/examples/with-ioc/README.md +++ b/examples/with-ioc/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-ioc with-ioc-app +```bash +npx create-next-app --example with-ioc with-ioc-app +# or +yarn create next-app --example with-ioc with-ioc-app ``` ### Download manually diff --git a/examples/with-jest/README.md b/examples/with-jest/README.md index 4e8d2550..6727d6a5 100644 --- a/examples/with-jest/README.md +++ b/examples/with-jest/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-jest with-jest-app +```bash +npx create-next-app --example with-jest with-jest-app +# or +yarn create next-app --example with-jest with-jest-app ``` ### Download manually diff --git a/examples/with-kea/README.md b/examples/with-kea/README.md index f058f64c..a5f8cbee 100644 --- a/examples/with-kea/README.md +++ b/examples/with-kea/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-kea with-kea-app +```bash +npx create-next-app --example with-kea with-kea-app +# or +yarn create next-app --example with-kea with-kea-app ``` ### Download manually diff --git a/examples/with-loading/README.md b/examples/with-loading/README.md index 83ca47f4..0789958c 100644 --- a/examples/with-loading/README.md +++ b/examples/with-loading/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-loading with-loading-app +```bash +npx create-next-app --example with-loading with-loading-app +# or +yarn create next-app --example with-loading with-loading-app ``` ### Download manually diff --git a/examples/with-markdown/readme.md b/examples/with-markdown/README.md similarity index 88% rename from examples/with-markdown/readme.md rename to examples/with-markdown/README.md index 0b853ea4..496069de 100644 --- a/examples/with-markdown/readme.md +++ b/examples/with-markdown/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-markdown with-markdown +```bash +npx create-next-app --example with-markdown with-markdown +# or +yarn create next-app --example with-markdown with-markdown-app ``` ### Download manually diff --git a/examples/with-material-ui-next/README.md b/examples/with-material-ui-next/README.md index 31998b42..5a54e30c 100644 --- a/examples/with-material-ui-next/README.md +++ b/examples/with-material-ui-next/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-material-ui-next with-material-ui-next-app +```bash +npx create-next-app --example with-material-ui-next with-material-ui-next-app +# or +yarn create next-app --example with-material-ui-next with-material-ui-next-app ``` ### Download manually diff --git a/examples/with-material-ui/README.md b/examples/with-material-ui/README.md index e6f2e9d9..ccbe23fd 100644 --- a/examples/with-material-ui/README.md +++ b/examples/with-material-ui/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-material-ui with-material-ui-app +```bash +npx create-next-app --example with-material-ui with-material-ui-app +# or +yarn create next-app --example with-material-ui with-material-ui-app ``` ### Download manually diff --git a/examples/with-mobx/README.md b/examples/with-mobx/README.md index 9748caa6..bbd186cc 100644 --- a/examples/with-mobx/README.md +++ b/examples/with-mobx/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-mobx with-mobx-app +```bash +npx create-next-app --example with-mobx with-mobx-app +# or +yarn create next-app --example with-mobx with-mobx-app ``` ### Download manually diff --git a/examples/with-next-css/README.md b/examples/with-next-css/README.md index 0451a991..1a73dc2a 100644 --- a/examples/with-next-css/README.md +++ b/examples/with-next-css/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-next-css with-next-css-app +```bash +npx create-next-app --example with-next-css with-next-css-app +# or +yarn create next-app --example with-next-css with-next-css-app ``` ### Download manually diff --git a/examples/with-next-routes/README.md b/examples/with-next-routes/README.md index 195f4637..b99df98e 100644 --- a/examples/with-next-routes/README.md +++ b/examples/with-next-routes/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-next-routes with-next-routes-app +```bash +npx create-next-app --example with-next-routes with-next-routes-app +# or +yarn create next-app --example with-next-routes with-next-routes-app ``` ### Download manually diff --git a/examples/with-next-sass/readme.md b/examples/with-next-sass/README.md similarity index 89% rename from examples/with-next-sass/readme.md rename to examples/with-next-sass/README.md index b17cfe3f..e240fa19 100644 --- a/examples/with-next-sass/readme.md +++ b/examples/with-next-sass/README.md @@ -9,8 +9,9 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: ```bash -npm i -g create-next-app -create-next-app --example with-next-sass with-next-sass-app +npx create-next-app --example with-next-sass with-next-sass-app +# or +yarn create next-app --example with-next-sass with-next-sass-app ``` ### Download manually diff --git a/examples/with-noscript/README.md b/examples/with-noscript/README.md index 2cac2cfb..e83a9d7a 100644 --- a/examples/with-noscript/README.md +++ b/examples/with-noscript/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-noscript with-noscript-app +```bash +npx create-next-app --example with-noscript with-noscript-app +# or +yarn create next-app --example with-noscript with-noscript-app ``` ### Download manually diff --git a/examples/with-pkg/README.md b/examples/with-pkg/README.md index 29562c66..2b7c948e 100644 --- a/examples/with-pkg/README.md +++ b/examples/with-pkg/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-pkg with-pkg-app +```bash +npx create-next-app --example with-pkg with-pkg-app +# or +yarn create next-app --example with-pkg with-pkg-app ``` ### Download manually diff --git a/examples/with-portals/README.md b/examples/with-portals/README.md index b5b7febe..d8de5616 100644 --- a/examples/with-portals/README.md +++ b/examples/with-portals/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-portals with-portals-app +```bash +npx create-next-app --example with-portals with-portals-app +# or +yarn create next-app --example with-portals with-portals-app ``` ### Download manually diff --git a/examples/with-prefetching/README.md b/examples/with-prefetching/README.md index ad00cbef..21b2c6f9 100644 --- a/examples/with-prefetching/README.md +++ b/examples/with-prefetching/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-prefetching with-prefetching-app +```bash +npx create-next-app --example with-prefetching with-prefetching-app +# or +yarn create next-app --example with-prefetching with-prefetching-app ``` ### Download manually diff --git a/examples/with-pretty-url-routing/README.md b/examples/with-pretty-url-routing/README.md index d14b6237..2a2db41a 100644 --- a/examples/with-pretty-url-routing/README.md +++ b/examples/with-pretty-url-routing/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-pretty-url-routing with-pretty-url-routing-app +```bash +npx create-next-app --example with-pretty-url-routing with-pretty-url-routing-app +# or +yarn create next-app --example with-pretty-url-routing with-pretty-url-routing-app ``` ### Download manually diff --git a/examples/with-react-ga/README.md b/examples/with-react-ga/README.md index 936fda35..2be00e93 100644 --- a/examples/with-react-ga/README.md +++ b/examples/with-react-ga/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-ga with-react-ga-app +```bash +npx create-next-app --example with-react-ga with-react-ga-app +# or +yarn create next-app --example with-react-ga with-react-ga-app ``` ### Download manually diff --git a/examples/with-react-helmet/README.md b/examples/with-react-helmet/README.md index 096687de..e5b04ad7 100644 --- a/examples/with-react-helmet/README.md +++ b/examples/with-react-helmet/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-helmet with-react-helmet-app +```bash +npx create-next-app --example with-react-helmet with-react-helmet-app +# or +yarn create next-app --example with-react-helmet with-react-helmet-app ``` ### Download manually diff --git a/examples/with-react-intl/README.md b/examples/with-react-intl/README.md index 5af7c5e1..31e1bd87 100644 --- a/examples/with-react-intl/README.md +++ b/examples/with-react-intl/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-intl with-react-intl-app +```bash +npx create-next-app --example with-react-intl with-react-intl-app +# or +yarn create next-app --example with-react-intl with-react-intl-app ``` ### Download manually @@ -53,7 +54,7 @@ This app stores translations and default strings in the `lang/` dir. This dir ha The translated messages files that exist at `lang/*.json` are only used during production, and are automatically provided to the ``. During development the `defaultMessage`s defined in the source code are used. To prepare the example app for localization and production run the build script and start the server in production mode: -``` +```bash $ npm run build $ npm start ``` diff --git a/examples/with-react-md/README.md b/examples/with-react-md/README.md index 3a4f30f3..c9ba6fd7 100644 --- a/examples/with-react-md/README.md +++ b/examples/with-react-md/README.md @@ -10,9 +10,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-md with-react-md-app +```bash +npx create-next-app --example with-react-md with-react-md-app +# or +yarn create next-app --example with-react-md with-react-md-app ``` ### Download manually diff --git a/examples/with-react-native-web/README.md b/examples/with-react-native-web/README.md index 1e4f14f3..7bcfc758 100644 --- a/examples/with-react-native-web/README.md +++ b/examples/with-react-native-web/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-native-web +```bash +npx create-next-app --example with-react-native-web +# or +yarn create next-app --example with-react-native-web with-react-native-web-app ``` ### Download manually diff --git a/examples/with-react-toolbox/README.md b/examples/with-react-toolbox/README.md index ebedc902..81a1c435 100644 --- a/examples/with-react-toolbox/README.md +++ b/examples/with-react-toolbox/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-toolbox with-react-toolbox-app +```bash +npx create-next-app --example with-react-toolbox with-react-toolbox-app +# or +yarn create next-app --example with-react-toolbox with-react-toolbox-app ``` ### Download manually diff --git a/examples/with-react-uwp/README.md b/examples/with-react-uwp/README.md index e5bb257d..f031fad8 100644 --- a/examples/with-react-uwp/README.md +++ b/examples/with-react-uwp/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-uwp with-react-uwp-app +```bash +npx create-next-app --example with-react-uwp with-react-uwp-app +# or +yarn create next-app --example with-react-uwp with-react-uwp-app ``` ### Download manually diff --git a/examples/with-react-with-styles/README.md b/examples/with-react-with-styles/README.md index c8dfe69b..7e6d0cdd 100644 --- a/examples/with-react-with-styles/README.md +++ b/examples/with-react-with-styles/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-react-with-styles with-react-with-styles-app +```bash +npx create-next-app --example with-react-with-styles with-react-with-styles-app +# or +yarn create next-app --example with-react-with-styles with-react-with-styles-app ``` ### Download manually diff --git a/examples/with-reasonml/README.md b/examples/with-reasonml/README.md index 60953681..b67e1a3d 100644 --- a/examples/with-reasonml/README.md +++ b/examples/with-reasonml/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-reasonml with-reasonml-app +```bash +npx create-next-app --example with-reasonml with-reasonml-app +# or +yarn create next-app --example with-reasonml with-reasonml-app ``` ### Download manually diff --git a/examples/with-rebass/README.md b/examples/with-rebass/README.md index e5f0a791..55d9e36f 100644 --- a/examples/with-rebass/README.md +++ b/examples/with-rebass/README.md @@ -10,9 +10,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-rebass with-rebass-app +```bash +npx create-next-app --example with-rebass with-rebass-app +# or +yarn create next-app --example with-rebass with-rebass-app ``` ### Download manually diff --git a/examples/with-recompose/README.md b/examples/with-recompose/README.md index 7a5347ac..83a431f7 100644 --- a/examples/with-recompose/README.md +++ b/examples/with-recompose/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-recompose with-recompose-app +```bash +npx create-next-app --example with-recompose with-recompose-app +# or +yarn create next-app --example with-recompose with-recompose-app ``` ### Download manually diff --git a/examples/with-redux-code-splitting/README.md b/examples/with-redux-code-splitting/README.md index 3ec4bd9d..6c78041d 100644 --- a/examples/with-redux-code-splitting/README.md +++ b/examples/with-redux-code-splitting/README.md @@ -9,9 +9,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux-code-splitting with-redux-code-splitting-app +```bash +npx create-next-app --example with-redux-code-splitting with-redux-code-splitting-app +# or +yarn create next-app --example with-redux-code-splitting with-redux-code-splitting-app ``` ### Download manually diff --git a/examples/with-redux-observable/README.md b/examples/with-redux-observable/README.md index 51943831..af00498a 100644 --- a/examples/with-redux-observable/README.md +++ b/examples/with-redux-observable/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux-observable with-redux-observable-app +```bash +npx create-next-app --example with-redux-observable with-redux-observable-app +# or +yarn create next-app --example with-redux-observable with-redux-observable-app ``` ### Download manually diff --git a/examples/with-redux-reselect-recompose/README.md b/examples/with-redux-reselect-recompose/README.md index 496704af..e8fd68fb 100644 --- a/examples/with-redux-reselect-recompose/README.md +++ b/examples/with-redux-reselect-recompose/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux-reselect-recompose with-redux-reselect-recompose-app +```bash +npx create-next-app --example with-redux-reselect-recompose with-redux-reselect-recompose-app +# or +yarn create next-app --example with-redux-reselect-recompose with-redux-reselect-recompose-app ``` ### Download manually diff --git a/examples/with-redux-saga/README.md b/examples/with-redux-saga/README.md index bde6b9e0..3fd40b79 100644 --- a/examples/with-redux-saga/README.md +++ b/examples/with-redux-saga/README.md @@ -10,9 +10,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux-saga with-redux-saga-app +```bash +npx create-next-app --example with-redux-saga with-redux-saga-app +# or +yarn create next-app --example with-redux-saga with-redux-saga-app ``` ### Download manually diff --git a/examples/with-redux-wrapper/README.md b/examples/with-redux-wrapper/README.md index 35e8bc4c..97897d02 100644 --- a/examples/with-redux-wrapper/README.md +++ b/examples/with-redux-wrapper/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux-wrapper with-redux-wrapper-app +```bash +npx create-next-app --example with-redux-wrapper with-redux-wrapper-app +# or +yarn create next-app --example with-redux-wrapper with-redux-wrapper-app ``` ### Download manually diff --git a/examples/with-redux/README.md b/examples/with-redux/README.md index 1cbce4a7..74cbd672 100644 --- a/examples/with-redux/README.md +++ b/examples/with-redux/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-redux with-redux-app +```bash +npx create-next-app --example with-redux with-redux-app +# or +yarn create next-app --example with-redux with-redux-app ``` ### Download manually diff --git a/examples/with-refnux/README.md b/examples/with-refnux/README.md index 8d5dd5a3..38d67c33 100644 --- a/examples/with-refnux/README.md +++ b/examples/with-refnux/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-refnux with-refnux-app +```bash +npx create-next-app --example with-refnux with-refnux-app +# or +yarn create next-app --example with-refnux with-refnux-app ``` ### Download manually diff --git a/examples/with-relay-modern/README.md b/examples/with-relay-modern/README.md index 3f344330..4998e121 100644 --- a/examples/with-relay-modern/README.md +++ b/examples/with-relay-modern/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-relay-modern with-relay-modern-app +```bash +npx create-next-app --example with-relay-modern with-relay-modern-app +# or +yarn create next-app --example with-relay-modern with-relay-modern-app ``` ### Download manually diff --git a/examples/with-semantic-ui/README.md b/examples/with-semantic-ui/README.md index b29757bb..02e6f106 100644 --- a/examples/with-semantic-ui/README.md +++ b/examples/with-semantic-ui/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-semantic-ui with-semantic-ui-app +```bash +npx create-next-app --example with-semantic-ui with-semantic-ui-app +# or +yarn create next-app --example with-semantic-ui with-semantic-ui-app ``` ### Download manually diff --git a/examples/with-sentry/README.md b/examples/with-sentry/README.md index 3b547695..7219d21d 100644 --- a/examples/with-sentry/README.md +++ b/examples/with-sentry/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-sentry with-sentry-app +```bash +npx create-next-app --example with-sentry with-sentry-app +# or +yarn create next-app --example with-sentry with-sentry-app ``` ### Download manually diff --git a/examples/with-shallow-routing/README.md b/examples/with-shallow-routing/README.md index cb2cd9fe..6fec2b11 100644 --- a/examples/with-shallow-routing/README.md +++ b/examples/with-shallow-routing/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-shallow-routing with-shallow-routing-app +```bash +npx create-next-app --example with-shallow-routing with-shallow-routing-app +# or +yarn create next-app --example with-shallow-routing with-shallow-routing-app ``` ### Download manually diff --git a/examples/with-socket.io/README.md b/examples/with-socket.io/README.md index 3183d311..15d8c475 100644 --- a/examples/with-socket.io/README.md +++ b/examples/with-socket.io/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-socket.io with-socket.io-app +```bash +npx create-next-app --example with-socket.io with-socket.io-app +# or +yarn create next-app --example with-socket.io with-socket.io-app ``` ### Download manually diff --git a/examples/with-static-export/README.md b/examples/with-static-export/README.md index 358f9e0b..b241c5a2 100644 --- a/examples/with-static-export/README.md +++ b/examples/with-static-export/README.md @@ -6,9 +6,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-static-export with-static-export-app +```bash +npx create-next-app --example with-static-export with-static-export-app +# or +yarn create next-app --example with-static-export with-static-export-app ``` ### Download manually diff --git a/examples/with-styled-components/README.md b/examples/with-styled-components/README.md index 04794019..ae9c1eec 100644 --- a/examples/with-styled-components/README.md +++ b/examples/with-styled-components/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-styled-components with-styled-components-app +```bash +npx create-next-app --example with-styled-components with-styled-components-app +# or +yarn create next-app --example with-styled-components with-styled-components-app ``` ### Download manually diff --git a/examples/with-styled-jsx-plugins/README.md b/examples/with-styled-jsx-plugins/README.md index 1089b0de..38a0de4c 100644 --- a/examples/with-styled-jsx-plugins/README.md +++ b/examples/with-styled-jsx-plugins/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-styled-jsx-plugins with-styled-jsx-plugins-app +```bash +npx create-next-app --example with-styled-jsx-plugins with-styled-jsx-plugins-app +# or +yarn create next-app --example with-styled-jsx-plugins with-styled-jsx-plugins-app ``` ### Download manually diff --git a/examples/with-styled-jsx-scss/README.md b/examples/with-styled-jsx-scss/README.md index 5224db5a..85dbb59f 100644 --- a/examples/with-styled-jsx-scss/README.md +++ b/examples/with-styled-jsx-scss/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-styled-jsx-scss with-styled-jsx-scss-app +```bash +npx create-next-app --example with-styled-jsx-scss with-styled-jsx-scss-app +# or +yarn create next-app --example with-styled-jsx-scss with-styled-jsx-scss-app ``` ### Download manually diff --git a/examples/with-styletron/README.md b/examples/with-styletron/README.md index 3f3f222c..ebdeeb5b 100644 --- a/examples/with-styletron/README.md +++ b/examples/with-styletron/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-styletron with-styletron-app +```bash +npx create-next-app --example with-styletron with-styletron-app +# or +yarn create next-app --example with-styletron with-styletron-app ``` ### Download manually diff --git a/examples/with-sw-precache/README.md b/examples/with-sw-precache/README.md index 16922532..b6c2eefe 100644 --- a/examples/with-sw-precache/README.md +++ b/examples/with-sw-precache/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-sw-precache with-sw-precache-app +```bash +npx create-next-app --example with-sw-precache with-sw-precache-app +# or +yarn create next-app --example with-sw-precache with-sw-precache-app ``` ### Download manually diff --git a/examples/with-tailwindcss/README.md b/examples/with-tailwindcss/README.md index 662b1089..6acb3903 100644 --- a/examples/with-tailwindcss/README.md +++ b/examples/with-tailwindcss/README.md @@ -10,9 +10,10 @@ This is an example of how you can include a global stylesheet in a next.js webap Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-tailwindcss with-tailwindcss-app +```bash +npx create-next-app --example with-tailwindcss with-tailwindcss-app +# or +yarn create next-app --example with-tailwindcss with-tailwindcss-app ``` ### Download manually diff --git a/examples/with-typescript/README.md b/examples/with-typescript/README.md index bb1a408e..703d7237 100644 --- a/examples/with-typescript/README.md +++ b/examples/with-typescript/README.md @@ -10,9 +10,10 @@ This is a really simple project that show the usage of Next.js with TypeScript. Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-typescript with-typescript-app +```bash +npx create-next-app --example with-typescript with-typescript-app +# or +yarn create next-app --example with-typescript with-typescript-app ``` ### Download manually diff --git a/examples/with-universal-configuration-runtime/readme.md b/examples/with-universal-configuration-runtime/README.md similarity index 80% rename from examples/with-universal-configuration-runtime/readme.md rename to examples/with-universal-configuration-runtime/README.md index e4480665..ab236a50 100644 --- a/examples/with-universal-configuration-runtime/readme.md +++ b/examples/with-universal-configuration-runtime/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-universal-configuration-runtime with-universal-configuration-runtime-app +```bash +npx create-next-app --example with-universal-configuration-runtime with-universal-configuration-runtime-app +# or +yarn create next-app --example with-universal-configuration-runtime with-universal-configuration-runtime-app ``` ### Download manually diff --git a/examples/with-universal-configuration/README.md b/examples/with-universal-configuration/README.md index c4bc7303..9b6071ee 100644 --- a/examples/with-universal-configuration/README.md +++ b/examples/with-universal-configuration/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-universal-configuration with-universal-configuration-app +```bash +npx create-next-app --example with-universal-configuration with-universal-configuration-app +# or +yarn create next-app --example with-universal-configuration with-universal-configuration-app ``` ### Download manually diff --git a/examples/with-url-object-routing/README.md b/examples/with-url-object-routing/README.md index 857c9692..5d9bd7cf 100644 --- a/examples/with-url-object-routing/README.md +++ b/examples/with-url-object-routing/README.md @@ -7,9 +7,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-url-object-routing with-url-object-routing-app +```bash +npx create-next-app --example with-url-object-routing with-url-object-routing-app +# or +yarn create next-app --example with-url-object-routing with-url-object-routing-app ``` ### Download manually diff --git a/examples/with-webpack-bundle-analyzer/README.md b/examples/with-webpack-bundle-analyzer/README.md index dd040ac2..f6578825 100644 --- a/examples/with-webpack-bundle-analyzer/README.md +++ b/examples/with-webpack-bundle-analyzer/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-webpack-bundle-analyzer with-webpack-bundle-analyzer-app +```bash +npx create-next-app --example with-webpack-bundle-analyzer with-webpack-bundle-analyzer-app +# or +yarn create next-app --example with-webpack-bundle-analyzer with-webpack-bundle-analyzer-app ``` ### Download manually diff --git a/examples/with-webpack-bundle-size-analyzer/README.md b/examples/with-webpack-bundle-size-analyzer/README.md index f494b17b..85de0577 100644 --- a/examples/with-webpack-bundle-size-analyzer/README.md +++ b/examples/with-webpack-bundle-size-analyzer/README.md @@ -8,9 +8,10 @@ Download [`create-next-app`](https://github.com/segmentio/create-next-app) to bootstrap the example: -``` -npm i -g create-next-app -create-next-app --example with-webpack-bundle-size-analyzer with-webpack-bundle-size-analyzer-app +```bash +npx create-next-app --example with-webpack-bundle-size-analyzer with-webpack-bundle-size-analyzer-app +# or +yarn create next-app --example with-webpack-bundle-size-analyzer with-webpack-bundle-size-analyzer-app ``` ### Download manually diff --git a/examples/with-zones/README.md b/examples/with-zones/README.md index 5349c814..eef1743e 100644 --- a/examples/with-zones/README.md +++ b/examples/with-zones/README.md @@ -10,14 +10,14 @@ We also have a set of rules defined in `rules.json` for the proxy. Now let's start two of our app using: -``` +```bash npm run home npm run blog ``` Then start the proxy: -``` +```bash npm run proxy ```