-
-
Notifications
You must be signed in to change notification settings - Fork 204
improve build setting #11
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
improve types
| "keywords": [ | ||
| "scheme", | ||
| "validation", | ||
| "scheme-validation", | ||
| "hookform", | ||
| "react-hook-form", | ||
| "yup", | ||
| "joi", | ||
| "sperstruct", | ||
| "typescript" | ||
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bluebill1049 Is this keyword OK?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! thanks
rollup.config.js
Outdated
| { | ||
| input: 'src/index.ts', | ||
| output: { | ||
| name: 'HookFormResolvers', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bluebill1049 Is this umd name OK?
HookFormResolvers vs ReactHookFormResolvers vs Resolvers
please see umd example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ReactHookFormResolvers 👍 what do you think? looks better at umd example.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we may use HookForm as the umd name of react-hook-form.
Which is better?
- HookForm
- HookFormResolvers
- HookFormErrorMessage
- HookFormDevtools
vs
- ReactHookForm
- ReactHookFormResolvers
- ReactHookFormErrorMessage
- ReactHookFormDevtools
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually maybe second one, what if one day we have angularHookForm? lol
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hahaha. if it has the potential to support Angular and Vue, I think ReactHookForm is better.
However, in that case we think it is necessary to reconsider the scope name (@hookform).
ex: @hookform to @react-hook-form
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@hookform/vue is fine as well?
if we can change to @hookform/react later on.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
awesome! I will change umd name from HookForm to ReactHookForm.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
|
@bluebill1049 I will fix @hookform/devtools as well. |
| @@ -1,39 +0,0 @@ | |||
| example/ | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why remove this?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I fixed to use files, we can remove the .npmignore.
https://docs.npmjs.com/files/package.json#files
Lines 13 to 15 in 57795af
| "files": [ | |
| "dist" | |
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
can you do the same for react-hook-form?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yea! I will fix 👍
| @@ -1,4 +0,0 @@ | |||
| { | |||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I moved prettier setting to .eslintrc.js.
I think it's more useful to be able to manage with one file.
What do you think?
Lines 15 to 21 in 57795af
| 'prettier/prettier': [ | |
| 'error', | |
| { | |
| singleQuote: true, | |
| trailingComma: 'all', | |
| }, | |
| ], |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
personally, I prefer to keep them separate. They are two different technology, then others may ask why not keep eslint inside prettier.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done.
README.md
Outdated
|
|
||
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/bluebill1049/@hookform/resolvers) [](https://spectrum.chat/react-hook-form) | ||
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/react-hook-form/resolvers) | ||
| [](https://spectrum.chat/react-hook-form) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [](https://spectrum.chat/react-hook-form) |
I think going forward we are leaner toward github dicussion.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
README.md
Outdated
| [](https://bundlephobia.com/result?p=@hookform/resolvers) | ||
|
|
||
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/bluebill1049/@hookform/resolvers) [](https://spectrum.chat/react-hook-form) | ||
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/react-hook-form/resolvers) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/react-hook-form/resolvers) | |
| [](https://twitter.com/intent/tweet?text=React+hooks+for+form+validation+without+the+hassle&url=https://github.com/react-hook-form/resolvers) |
don't think anyone use it. let's remove it as well keep it clean and minimum.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
done 👍
bluebill1049
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Awesome work and clean up! thank you.
bluebill1049
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
|
Would you also like to fix the output name of react-hook-form? Or do you want to leave it as is?
|
sounds good to me. as long as we can do a quick test, you can still easily find the source code under chrome developer tab. |
|
I will fix it 👍 |
|
This PR includes a version release, which is better, squash merge or merge commit? |
I normally run |
|
@bluebill1049 "Create a merge commit" OK? |
|
squash merge, please :) |

dist/resolver.jstodist/index.jsdist/resolver.es.jstodist/index.esm.jsdist/index.umd.min.jsReactHookFormResolvers