-
Notifications
You must be signed in to change notification settings - Fork 1
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
An Introduction to reactjs-boilerplate roadmap #27
Conversation
- Coding Standards and Guidelines (Statically analyzes our codes) | ||
- [ ] ESLint with our rules | ||
- [ ] Prettier | ||
- Testing framework |
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.
@jinmayamashita I think we should add end-to-end testing too
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.
@mvn-luanvu-hn Indeed. 👍 Do you have any tools you would recommend?
e.g TestCafe, Playwright
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.
@jinmayamashita I hear about cypress a lot. Maybe we can consider it.
But currently it does not support Safari
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.
@jinmayamashita @mvn-luanvu-hn
Storybook uses playwright for its interaction testing, so we could experiment with that. I've included a simple test in the vue boilerplate.
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.
@mvn-luanvu-hn @yannde
DONE d0a398e
I have not used Cypress yet and would like to try it out. and we uses Storybook in boilerplate, so I would like to try working with playwright. This looks like another good PR.
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.
@jinmayamashita I see in our project another team is using this tool
https://codecept.io/basics/#architecture
It can work well with many other tools
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.
@mvn-luanvu-hn Nice! This may also work with playwright 👍
Co-authored-by: yannde <yanndc@gmail.com>
- Routing for SPA | ||
- [x] [wouter](https://github.com/molefrog/wouter) | ||
- Validate forms in React | ||
- [x] [React Hook Form](https://react-hook-form.com) |
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.
Ignore this comment if it has been discussed already...
How about Formik and Yup? It is common using this combination for forms
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.
@yukinoda
Sorry for the late reply. I adopted react-hook-form for its ability to prevent unnecessary re render, does Formik have the same support? and I think react-hook-form can also do Yup and combination.
const validationSchema = yup.object().shape({
email: yup.string().required('error message').email('error message'),
password: yup.string().required('error message').min(6, 'error message')
})
const { register, setValue, handleSubmit, errors } = useForm({ validationSchema })
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.
Left some comments...
And, let's include create CONTRIBUTING.md
and setup LICENSE
to the roadmap as it would be an OSS 😎
Co-authored-by: Yuki Noda <16083322+yukinoda@users.noreply.github.com>
|
||
Our roadmap for the ReactJS Boilerplate is where you can learn about what features we're working on. | ||
|
||
### Development environment |
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.
@jinmayamashita I think we can split folders into modules like the admin template
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.
@mvn-luanvu-hn It seems like a good thing to consider. Let's keep discussing the folder structure!
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
@yannde @mvn-luanvu-hn @mvn-binhnguyen-hn |
Let's talk about our Roadmap in this PR. (as mentioned here)
Are there any required or unnecessary items in the Roadmap?
https://github.com/monstar-lab-oss/reactjs-boilerplate/pull/27/files
@mvn-luanvu-hn @yannde @mvn-binhnguyen-hn @don-wang
FYI @n-igarashi @yukinoda