Skip to content

Commit

Permalink
replace component with hook.
Browse files Browse the repository at this point in the history
  • Loading branch information
bradgarropy committed Jun 21, 2021
1 parent 54533cb commit dd92830
Show file tree
Hide file tree
Showing 5 changed files with 28 additions and 28 deletions.
2 changes: 1 addition & 1 deletion .all-contributorsrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"projectName": "plop-generator-react-component",
"projectName": "plop-generator-react-hook",
"projectOwner": "bradgarropy",
"repoType": "github",
"repoHost": "https://github.com",
Expand Down
14 changes: 7 additions & 7 deletions contributing.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,13 +21,13 @@ In order to submit a pull request, you'll have to setup your own development env
Then you can clone the forked repository to your system.

```bash
git clone https://github.com/<username>/plop-generator-react-component
git clone https://github.com/<username>/plop-generator-react-hook
```

Next you need to install the dependencies.

```bash
cd plop-generator-react-component
cd plop-generator-react-hook
npm install
```

Expand Down Expand Up @@ -92,7 +92,7 @@ I appreciate any and all types of contributions to this project! Contributors ar
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://bradgarropy.com"><img src="https://avatars.githubusercontent.com/u/11336745?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brad Garropy</b></sub></a><br /><a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Code">💻</a> <a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Documentation">📖</a> <a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Tests">⚠️</a> <a href="#infra-bradgarropy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://bradgarropy.com"><img src="https://avatars.githubusercontent.com/u/11336745?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brad Garropy</b></sub></a><br /><a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Code">💻</a> <a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Documentation">📖</a> <a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Tests">⚠️</a> <a href="#infra-bradgarropy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</table>

Expand All @@ -101,9 +101,9 @@ I appreciate any and all types of contributions to this project! Contributors ar

<!-- ALL-CONTRIBUTORS-LIST:END -->

[issues]: https://github.com/bradgarropy/plop-generator-react-component/issues
[issues]: https://github.com/bradgarropy/plop-generator-react-hook/issues
[codesandbox]: https://codesandbox.io
[kcd-pr]: https://egghead.io/courses/how-to-contribute-to-an-open-source-project-on-github
[license]: https://github.com/bradgarropy/plop-generator-react-component/blob/master/license
[fork]: https://github.com/bradgarropy/plop-generator-react-component/fork
[contributors]: https://github.com/bradgarropy/plop-generator-react-component#-contributors
[license]: https://github.com/bradgarropy/plop-generator-react-hook/blob/master/license
[fork]: https://github.com/bradgarropy/plop-generator-react-hook/fork
[contributors]: https://github.com/bradgarropy/plop-generator-react-hook#-contributors
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,9 @@
"plop-generator",
"react"
],
"homepage": "https://github.com/bradgarropy/plop-generator-react-component",
"homepage": "https://github.com/bradgarropy/plop-generator-react-hook",
"bugs": {
"url": "https://github.com/bradgarropy/plop-generator-react-component/issues"
"url": "https://github.com/bradgarropy/plop-generator-react-hook/issues"
},
"license": "MIT",
"author": {
Expand All @@ -30,7 +30,7 @@
"types": "dist/types/index.d.ts",
"repository": {
"type": "git",
"url": "https://github.com/bradgarropy/plop-generator-react-component"
"url": "https://github.com/bradgarropy/plop-generator-react-hook"
},
"scripts": {
"start": "tsc --watch",
Expand Down
30 changes: 15 additions & 15 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ src
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://bradgarropy.com"><img src="https://avatars.githubusercontent.com/u/11336745?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brad Garropy</b></sub></a><br /><a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Code">💻</a> <a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Documentation">📖</a> <a href="https://github.com/bradgarropy/plop-generator-react-component/commits?author=bradgarropy" title="Tests">⚠️</a> <a href="#infra-bradgarropy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
<td align="center"><a href="https://bradgarropy.com"><img src="https://avatars.githubusercontent.com/u/11336745?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Brad Garropy</b></sub></a><br /><a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Code">💻</a> <a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Documentation">📖</a> <a href="https://github.com/bradgarropy/plop-generator-react-hook/commits?author=bradgarropy" title="Tests">⚠️</a> <a href="#infra-bradgarropy" title="Infrastructure (Hosting, Build-Tools, etc)">🚇</a></td>
</tr>
</table>

Expand All @@ -68,24 +68,24 @@ src

<!-- ALL-CONTRIBUTORS-LIST:END -->

[codecov]: https://app.codecov.io/gh/bradgarropy/plop-generator-react-component
[contributing]: https://github.com/bradgarropy/plop-generator-react-component/blob/master/contributing.md
[codecov]: https://app.codecov.io/gh/bradgarropy/plop-generator-react-hook
[contributing]: https://github.com/bradgarropy/plop-generator-react-hook/blob/master/contributing.md
[contributors]: #-contributors
[npm]: https://www.npmjs.com/package/@bradgarropy/plop-generator-react-component
[codecov-badge]: https://img.shields.io/codecov/c/github/bradgarropy/plop-generator-react-component?style=flat-square
[version-badge]: https://img.shields.io/npm/v/@bradgarropy/react-library-start.svg?style=flat-square
[downloads-badge]: https://img.shields.io/npm/dt/@bradgarropy/react-library-start?style=flat-square
[npm]: https://www.npmjs.com/package/@bradgarropy/plop-generator-react-hook
[codecov-badge]: https://img.shields.io/codecov/c/github/bradgarropy/plop-generator-react-hook?style=flat-square
[version-badge]: https://img.shields.io/npm/v/@bradgarropy/plop-generator-react-compo.svg?style=flat-square
[downloads-badge]: https://img.shields.io/npm/dt/@bradgarropy/plop-generator-react-compo?style=flat-square
[contributing-badge]: https://img.shields.io/badge/PRs-welcome-success?style=flat-square
[contributors-badge]: https://img.shields.io/github/all-contributors/bradgarropy/plop-generator-react-component?style=flat-square
[issues]: https://github.com/bradgarropy/plop-generator-react-component/issues
[contributors-badge]: https://img.shields.io/github/all-contributors/bradgarropy/plop-generator-react-hook?style=flat-square
[issues]: https://github.com/bradgarropy/plop-generator-react-hook/issues
[twitter]: https://twitter.com/bradgarropy
[ama]: https://bradgarropy.com/ama
[bundlephobia]: https://bundlephobia.com/result?p=@bradgarropy/plop-generator-react-component
[size-badge]: https://img.shields.io/bundlephobia/minzip/@bradgarropy/plop-generator-react-component?style=flat-square
[github-actions]: https://github.com/bradgarropy/plop-generator-react-component/actions
[github-actions-badge]: https://img.shields.io/github/workflow/status/bradgarropy/plop-generator-react-component/%F0%9F%9A%80%20release?style=flat-square
[typescript]: https://www.typescriptlang.org/dt/search?search=%40bradgarropy%2Fplop-generator-react-component
[typescript-badge]: https://img.shields.io/npm/types/@bradgarropy/plop-generator-react-component?style=flat-square
[bundlephobia]: https://bundlephobia.com/result?p=@bradgarropy/plop-generator-react-hook
[size-badge]: https://img.shields.io/bundlephobia/minzip/@bradgarropy/plop-generator-react-hook?style=flat-square
[github-actions]: https://github.com/bradgarropy/plop-generator-react-hook/actions
[github-actions-badge]: https://img.shields.io/github/workflow/status/bradgarropy/plop-generator-react-hook/%F0%9F%9A%80%20release?style=flat-square
[typescript]: https://www.typescriptlang.org/dt/search?search=%40bradgarropy%2Fplop-generator-react-hook
[typescript-badge]: https://img.shields.io/npm/types/@bradgarropy/plop-generator-react-hook?style=flat-square
[discord]: https://bradgarropy.com/discord
[discord-badge]: https://img.shields.io/discord/748196643140010015?style=flat-square
[plop]: https://plopjs.com
Expand Down
4 changes: 2 additions & 2 deletions src/hook.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const component = {
const hook = {
description: "⚛ react hook",
prompts: [
{
Expand Down Expand Up @@ -31,4 +31,4 @@ const component = {
],
}

export default component
export default hook

0 comments on commit dd92830

Please sign in to comment.