Skip to content

Commit

Permalink
chore: update example names to match their folders (#16268)
Browse files Browse the repository at this point in the history
**What's the problem this PR addresses?**

A decent amount of the examples don't have a `name` field in `package.json` that matches their folder name, meaning they either lack a name or the names are duplicated.

I was testing Yarn 2 workspaces using the entire examples directory and needed to get rid of the duplicates.

**How did you fix it?**

Updated the names to match the names of their folders
  • Loading branch information
merceyz authored Sep 5, 2020
1 parent ae7ae0b commit 2acb53b
Show file tree
Hide file tree
Showing 50 changed files with 53 additions and 46 deletions.
2 changes: 1 addition & 1 deletion examples/analyze-bundles/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-webpack-bundle-analyzer",
"name": "analyze-bundles",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/auth0/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nextjs-auth0-example",
"name": "auth0",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/basic-export/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "hello-world",
"name": "basic-export",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
1 change: 1 addition & 0 deletions examples/custom-server-actionhero/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "custom-server-actionhero",
"engines": {
"node": ">=8.0.0"
},
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-koa/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
"start": "cross-env NODE_ENV=production node server.js"
},
"dependencies": {
"@koa/router": "^8.0.7",
"cross-env": "^5.2.0",
"koa": "^2.0.1",
"@koa/router": "^8.0.7",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0"
Expand Down
2 changes: 1 addition & 1 deletion examples/hello-world/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "nextjs-hello-world",
"name": "hello-world",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
1 change: 1 addition & 0 deletions examples/with-absolute-imports/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-absolute-imports",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-algolia-react-instantsearch/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "create-next-example-app",
"name": "with-algolia-react-instantsearch",
"scripts": {
"dev": "next",
"build": "cross-env NODE_ENV=development next build",
Expand Down
Empty file modified examples/with-ant-design/package.json
100755 → 100644
Empty file.
1 change: 0 additions & 1 deletion examples/with-apollo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,5 @@
"react": "^16.7.0",
"react-dom": "^16.7.0"
},
"devDependencies": {},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion examples/with-aws-amplify/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"aws-amplify": "2.1.0",
"immer": "3.1.3",
"nanoid": "2.0.3",
"next": "^latest",
"next": "latest",
"react": "16.13.1",
"react-dom": "16.13.1"
}
Expand Down
4 changes: 2 additions & 2 deletions examples/with-cookie-auth-fauna/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-cookie-auth",
"name": "with-cookie-auth-fauna",
"scripts": {
"dev": "next",
"build": "next build",
Expand All @@ -8,7 +8,7 @@
"dependencies": {
"cookie": "^0.4.0",
"faunadb": "2.10.0",
"next": "^latest",
"next": "latest",
"react": "^16.8.6",
"react-dom": "^16.8.6",
"swr": "0.2.3"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-electron-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "electron-next-skeleton",
"name": "with-electron-typescript",
"productName": "ElectronTypescriptNext",
"version": "1.0.0",
"main": "main/index.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-electron/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "electron-next-skeleton",
"name": "with-electron",
"productName": "ElectronNext",
"version": "1.0.0",
"main": "main/index.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-emotion/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-emotion-10",
"name": "with-emotion",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-env-from-next-config-js/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-env-from-next-config",
"name": "with-env-from-next-config-js",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-expo/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@
},
"dependencies": {
"expo": "~37.0.3",
"next": "latest",
"react": "~16.9.0",
"react-dom": "~16.9.0",
"react-native": "https://github.com/expo/react-native/archive/sdk-37.0.1.tar.gz",
"react-native-web": "~0.11.7",
"next": "latest"
"react-native-web": "~0.11.7"
},
"devDependencies": {
"@expo/next-adapter": "2.1.5"
Expand Down
6 changes: 3 additions & 3 deletions examples/with-goober/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
"start": "next start"
},
"dependencies": {
"goober": "^2.0.2",
"goober-autoprefixer": "^1.2.0",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"goober": "^2.0.2",
"goober-autoprefixer": "^1.2.0"
"react-dom": "^16.13.1"
}
}
2 changes: 1 addition & 1 deletion examples/with-graphql-react/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next-graphql-react-example",
"name": "with-graphql-react",
"private": true,
"license": "MIT",
"dependencies": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-i18n-rosetta/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-rosetta",
"name": "with-i18n-rosetta",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
1 change: 0 additions & 1 deletion examples/with-mdx/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
"react": "^16.8.6",
"react-dom": "^16.8.6"
},
"devDependencies": {},
"license": "MIT"
}
3 changes: 1 addition & 2 deletions examples/with-mobx-react-lite/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,5 @@
"react": "^16.8.4",
"react-dom": "^16.8.4"
},
"license": "MIT",
"devDependencies": {}
"license": "MIT"
}
2 changes: 1 addition & 1 deletion examples/with-next-auth/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next-auth-example",
"name": "with-next-auth",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-next-css/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-css-modules",
"name": "with-next-css",
"version": "1.0.0",
"main": "index.js",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions examples/with-next-less/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-next-less",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-next-page-transitions/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
},
"dependencies": {
"next": "latest",
"next-page-transitions": "1.0.0-beta.2",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"next-page-transitions": "1.0.0-beta.2"
"react-dom": "^16.7.0"
},
"license": "MIT"
}
1 change: 1 addition & 0 deletions examples/with-next-sass/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-next-sass",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-overmind/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "next-overmind",
"name": "with-overmind",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
1 change: 1 addition & 0 deletions examples/with-portals-ssr/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-portals-ssr",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
1 change: 1 addition & 0 deletions examples/with-portals/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-portals",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-react-multi-carousel/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "ssr",
"name": "with-react-multi-carousel",
"version": "1.0.0",
"description": "",
"main": "index.js",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-reason-relay/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-relay-modern",
"name": "with-reason-relay",
"version": "3.0.4",
"description": "Example of Next.js with Relay Modern SSR",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-reasonml-todo/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-reasonml",
"name": "with-reasonml-todo",
"version": "1.0.0",
"scripts": {
"dev": "concurrently \"bsb -clean-world -make-world -w\" \"next dev\"",
Expand Down
1 change: 1 addition & 0 deletions examples/with-rebass/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-rebass",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-redux-persist/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-redux",
"name": "with-redux-persist",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-sentry/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-sentry-simple",
"name": "with-sentry",
"version": "1.0.0",
"license": "MIT",
"scripts": {
Expand Down
1 change: 1 addition & 0 deletions examples/with-stencil/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-stencil",
"private": true,
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-stencil/packages/web-app/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "web-app",
"name": "with-stencil-app",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
4 changes: 2 additions & 2 deletions examples/with-stomp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,10 @@
"start": "next start"
},
"dependencies": {
"@stomp/stompjs": "^5.4.2",
"next": "latest",
"react": "^16.7.0",
"react-dom": "^16.7.0",
"@stomp/stompjs": "^5.4.2"
"react-dom": "^16.7.0"
},
"license": "MIT"
}
2 changes: 1 addition & 1 deletion examples/with-strict-csp/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-strict-csp-hash",
"name": "with-strict-csp",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-styled-components-rtl/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-styled-components",
"name": "with-styled-components-rtl",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-styled-jsx-plugins/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "basic-css",
"name": "with-styled-jsx-plugins",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-styled-jsx-scss/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "basic-css",
"name": "with-styled-jsx-scss",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-supabase-auth-realtime-db/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "realtime-chat-app",
"name": "with-supabase-auth-realtime-db",
"version": "0.1.0",
"license": "MIT",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion examples/with-tesfy/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,12 @@
"start": "next start"
},
"dependencies": {
"cookie": "0.4.1",
"next": "latest",
"react": "^16.13.1",
"react-dom": "^16.13.1",
"react-tesfy": "latest",
"tesfy": "latest",
"cookie": "0.4.1",
"uuid": "8.1.0"
},
"license": "MIT"
Expand Down
1 change: 1 addition & 0 deletions examples/with-webassembly/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-webassembly",
"dependencies": {
"next": "latest",
"react": "^16.7.0",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-why-did-you-render/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "why-did-you-render",
"name": "with-why-did-you-render",
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
1 change: 1 addition & 0 deletions examples/with-yarn-workspaces/package.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
{
"name": "with-yarn-workspaces",
"private": true,
"workspaces": [
"packages/*"
Expand Down
2 changes: 1 addition & 1 deletion examples/with-zeit-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "data-fetch",
"name": "with-zeit-fetch",
"version": "1.0.0",
"scripts": {
"dev": "next",
Expand Down
2 changes: 1 addition & 1 deletion examples/with-zones/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "with-zones-example",
"name": "with-zones",
"private": true,
"license": "MIT"
}

0 comments on commit 2acb53b

Please sign in to comment.