These are the two final repositories for my submission
- Minimalistic Template: https://github.com/beingtmk/create-openmrs-app
- Example Template: https://github.com/beingtmk/create-openmrs-app-example
I have removed all the parts of the fork from facebook-cra which were unnecessary.
Now these repositories only contain the part that i have edited, which is of the package “react-scripts”. This is the only part that is responsible for generating the final template.
Both of the above repositories are published to npm with travis ci integrated.
The way you generate a template is:
npx create-react-app test-app --scripts-version openmrs-react-scripts
so basically you are just using the create-react-app to generate the project, just that you are using the customized version of the “react-scripts”, that is responsible for the final customization of the template once the project is generated by cra.
Hope this reduces maintainability to only those parts which we anyways need to maintain.
The UI of the Example Template has also been changed.
- Default OpenMRS UI
- Overview with props and other notes
- sample code
gif attached below