Skip to content

Commit

Permalink
Clean up examples package.json (vercel#27121)
Browse files Browse the repository at this point in the history
Clean up package.json files in the `examples` directory:
- Add `private: true`
- Remove `version` (because they are irrelevant for packages that are not meant to be published)
- Remove `name` (because they are optional for packages that are not meant to be published, and when someone clones an example, they often rename it and the property becomes stale)
- Remove `author`
- Remove `description`
- Remove `license`

Also remove `with-dynamic-app-layout` example completely, since it does the same as `layout-component` (vercel#27121 (comment)).

## Documentation / Examples

- [x] Make sure the linting passes
  • Loading branch information
lucleray authored Jul 12, 2021
1 parent cb8da57 commit f52955e
Show file tree
Hide file tree
Showing 268 changed files with 243 additions and 774 deletions.
4 changes: 1 addition & 3 deletions examples/active-class-name/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "active-class-name",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"author": "Remy Sharp <[email protected]>",
"dependencies": {
"next": "latest",
"react": "^17.0.2",
Expand Down
3 changes: 1 addition & 2 deletions examples/amp-first/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "amp-first",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/amp-story/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "amp-story",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/amp/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "amp",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/analyze-bundles/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "analyze-bundles",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-apollo-server-and-client-auth",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-apollo-server-and-client/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-apollo-server-and-client",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-apollo-server/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-apollo-server",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-cors/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-cors",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-graphql/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-graphql",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-middleware/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-middleware",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
2 changes: 0 additions & 2 deletions examples/api-routes-rate-limit/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
{
"name": "nextjs-rate-limit",
"version": "0.0.0",
"private": true,
"scripts": {
"dev": "next dev",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes-rest/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes-rest",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/api-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "api-routes",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
4 changes: 1 addition & 3 deletions examples/auth0/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "auth0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"author": "",
"license": "MIT",
"dependencies": {
"@auth0/nextjs-auth0": "^1.4.2",
"next": "latest",
Expand Down
3 changes: 1 addition & 2 deletions examples/basic-css/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "basic-css",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/basic-export/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "basic-export",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build && next export",
Expand Down
3 changes: 1 addition & 2 deletions examples/blog-starter-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "blog-starter-typescript",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/blog-starter/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "blog-starter",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
5 changes: 1 addition & 4 deletions examples/blog-with-comment/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "blog-with-comment",
"version": "1.0.0",
"author": "Adem ilter <[email protected]>",
"license": "MIT",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
5 changes: 1 addition & 4 deletions examples/blog/package.json
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
{
"name": "portfolio",
"version": "1.0.0",
"main": "index.js",
"license": "MIT",
"private": true,
"scripts": {
"dev": "next",
"build": "node ./scripts/gen-rss.js && next build",
Expand Down
4 changes: 1 addition & 3 deletions examples/catch-all-routes/package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,10 @@
{
"name": "catch-all-routes",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
"start": "next start"
},
"license": "MIT",
"dependencies": {
"next": "latest",
"react": "^17.0.2",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-agilitycms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-agilitycms",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-buttercms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-buttercms",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-contentful/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-contentful",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-cosmic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-cosmic",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-datocms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-datocms",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-drupal/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-drupal",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-ghost/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-ghost",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-graphcms/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-graphcms",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-kontent/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-kontent",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-prepr/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-prepr",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-prismic/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-prismic",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-sanity/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-sanity",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-storyblok/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-storyblok",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-strapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-strapi",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-takeshape/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-takeshape",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/cms-wordpress/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "cms-wordpress",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-routes-proxying/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-routes-proxying",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
Expand Down
2 changes: 1 addition & 1 deletion examples/custom-server-actionhero/package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "custom-server-actionhero",
"private": true,
"engines": {
"node": ">=8.0.0"
},
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-express/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-express",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node server.js",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-fastify/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-fastify",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node ./server.js",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-hapi/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-hapi",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node server.js",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-koa/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-koa",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node server.js",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-polka/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-polka",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "node server.js",
"build": "next build",
Expand Down
3 changes: 1 addition & 2 deletions examples/custom-server-typescript/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "custom-server-typescript",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "nodemon",
"build": "next build && tsc --project tsconfig.server.json",
Expand Down
3 changes: 1 addition & 2 deletions examples/data-fetch/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
{
"name": "data-fetch",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next",
"build": "next build",
Expand Down
Loading

0 comments on commit f52955e

Please sign in to comment.