Is the Yeoman Generator for OWAs still our “best practice” for scaffolding OWAs? If so, I was looking to make a slight change it in it to fix an issue I was seeing.
I see it looks like the code still lives in @pascal’s github repo:
For now I’m leaving the old package online in case some people try to install it. If there’s a way to configure a redirect or something we might want to try that.
Also, for you to be able to publish to npm we need to add you to the org. Let me know your npm username and I’ll give you permissions.
Thanks @pascal! Everything seems to be working, with one caveat… I see you changed the package to add the org scope of @openmrs. So this has created a new, separate npm “@openmrs/generator-openmrs-owa” which I have to install separately, and then I need to run via “yo @openmrs/openmrs-owa” or it runs the older version. Do you know if there’s any way around this so users can upgrade seamlessly?
(Sorry, I inexperienced with npm and a total newbie to yeoman).
I’m getting rid of the old unscoped package. It will be removed and a message will be displayed that says:
The generator-openmrs-owa package is no longer supported and has been deprecated. To avoid malicious use, npm is hanging on to the package name.
Please use the `@openmrs/generator-openmrs-owa` package instead.
I asked NPM if they could simply do a redirect, but they can’t unfortunately. I guess the best we can do is make sure the instructions are correct, and maybe put a prominent warning in the README.
I don’t see your code in GitHub. Have you pushed it? Publishing on NPM and pushing to GitHub need to be done separately.
Whoops, thanks @pascal. I had committed my changes but figured I’d wait to push until I got the release to npm complete and confirmed everything was working… and then I forgot to push… Just pushed it up now.