Skip to content

Commit

Permalink
Rename demo-projects folder to examples (keystonejs#3534)
Browse files Browse the repository at this point in the history
* Rename demo-projects folder to examples

* Update test-projects/README.md

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>

* Fix some strange git ignoreness

Co-authored-by: Tim Leslie <timl@thinkmill.com.au>
  • Loading branch information
MadeByMike and timleslie authored Aug 31, 2020
1 parent 003b856 commit 639a11f
Show file tree
Hide file tree
Showing 137 changed files with 25 additions and 18 deletions.
8 changes: 8 additions & 0 deletions .changeset/sixty-garlics-hear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
---
'@keystonejs/demo-project-blog': patch
'@keystonejs/demo-custom-fields': patch
'@keystonejs/demo-project-meetup': patch
'@keystonejs/demo-project-todo': patch
---

Renamed `demo-projects` folder to `examples` to allow for future smaller focused examples.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
packages/test-project/public
demo-projects/test-project
examples/test-project

# Logs
logs
Expand Down
4 changes: 2 additions & 2 deletions .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ coverage
packages/test-project/public
website/.cache/**/*
website/public/**/*
demo-projects/todo/.cache
demo-projects/blog/app/.next
examples/todo/.cache
examples/blog/app/.next
packages/arch/www/public/**/*
.changeset/**/*
**/dist
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ We'd like to start by thanking all our wonderful contributors:
These projects are designed to show off different aspects of KeystoneJS features
at a range of complexities (from a simple Todo App to a complex Meetup Site).

See the [`demo-projects/README.md`](/demo-projects/README.md) docs to get
See the [`examples/README.md`](/examples/README.md) docs to get
started.

### Development Practices
Expand Down Expand Up @@ -190,7 +190,7 @@ yarn
yarn dev
```

See [`demo-projects/README.md`](/demo-projects/README.md) for more details on
See [`examples/README.md`](/examples/README.md) for more details on
the available demo projects.

#### Note For Windows Users
Expand Down
2 changes: 1 addition & 1 deletion docs/guides/custom-field-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Type/views/

## Example

For an example of a custom field, please see the [Stars field](https://github.com/keystonejs/keystone/tree/master/demo-projects/custom-fields/) in the basic test project.
For an example of a custom field, please see the [Stars field](https://github.com/keystonejs/keystone/tree/master/examples/custom-fields/) in the basic test project.

## Implementation

Expand Down
4 changes: 2 additions & 2 deletions docs/tutorials/custom-fields.md
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ The rest of the views relate to React components rendered in the Admin UI. We ca
<Stars count={5} value={3}>
```

You can find an example of this component in the [custom-fields demo project](https://github.com/keystonejs/keystone/tree/master/demo-projects/custom-fields/fields/Stars/views/Stars.js).
You can find an example of this component in the [custom-fields demo project](https://github.com/keystonejs/keystone/tree/master/examples/custom-fields/fields/Stars/views/Stars.js).

Once we have a component for star ratings we can use this in Keystone.

Expand Down Expand Up @@ -149,4 +149,4 @@ That's it, we now have a basic custom field.

## Next Steps

Take a look at this example and others in the [custom-fields demo project](https://github.com/keystonejs/keystone/tree/master/demo-projects/custom-fields/) in the Keystone repository.
Take a look at this example and others in the [custom-fields demo project](https://github.com/keystonejs/keystone/tree/master/examples/custom-fields/) in the Keystone repository.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -45,5 +45,5 @@
"react": "^16.13.1",
"react-dom": "^16.13.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/master/demo-projects/blog"
"repository": "https://github.com/keystonejs/keystone/tree/master/examples/blog"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -29,5 +29,5 @@
"cross-env": "^7.0.2",
"react": "^16.13.1"
},
"repository": "https://github.com/keystonejs/keystone/tree/master/demo-projects/custom-fields"
"repository": "https://github.com/keystonejs/keystone/tree/master/examples/custom-fields"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const MEETUP = {
copyrightText: `
<p>Copyright &copy; Thinkmill Pty Ltd, powered by <a href="https://keystonejs.com">KeystoneJS</a>.</p>
<p>If you run a meetup, please feel free to clone our site and make your own!
<a href="/keystonejs/keystone/tree/master/demo-projects/meetup">You can find it on GitHub</a>.
<a href="/keystonejs/keystone/tree/master/examples/meetup">You can find it on GitHub</a>.
</p>
`,
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,5 +48,5 @@
"react-use-form-state": "^0.13.1",
"uuid": "^8.3.0"
},
"repository": "https://github.com/keystonejs/keystone/tree/master/demo-projects/meetup"
"repository": "https://github.com/keystonejs/keystone/tree/master/examples/meetup"
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
3 changes: 1 addition & 2 deletions demo-projects/todo/.gitignore → examples/todo/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,6 @@ tags
# End of https://www.gitignore.io/api/vim

temp/
/public
/dist
dist/
.cache
.next
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,5 @@
"@keystonejs/keystone": "^14.0.1",
"cross-env": "^7.0.2"
},
"repository": "https://github.com/keystonejs/keystone/tree/master/demo-projects/todo"
"repository": "https://github.com/keystonejs/keystone/tree/master/examples/todo"
}
File renamed without changes.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"homepage": "https://github.com/keystonejs/keystone",
"scripts": {
"dev": "yarn demo todo dev",
"demo": "yarn --cwd ./demo-projects",
"demo": "yarn --cwd ./examples",
"website": "manypkg run website",
"arch-docs": "manypkg run arch/docs",
"coverage": "cross-env DISABLE_LOGGING=true NODE_ENV=test jest --maxWorkers=1 --coverage",
Expand Down Expand Up @@ -136,7 +136,7 @@
"!packages/arch",
"packages/arch/docs",
"packages/arch/packages/*",
"demo-projects/*",
"examples/*",
"test-projects/*",
"api-tests",
"benchmarks",
Expand Down
2 changes: 1 addition & 1 deletion test-projects/README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ATTENTION

This folder contains projects used for Cypress tests. You do not want to use these as starting points for your own project. You are better off using the demo projects for that, which are located in `/demo-projects`.
This folder contains projects used for Cypress tests. You do not want to use these as starting points for your own project. You are better off using the example projects for that, which are located in `/examples`.

## Cypress Projects

Expand Down

0 comments on commit 639a11f

Please sign in to comment.