-
-
Notifications
You must be signed in to change notification settings - Fork 69
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
Add Javascript libraries #120
Comments
Throwing in my offer to help again, but lets wait for lewie to share his ideas. 🙂 |
@openhab-5iver, It would help me if you made the first move, Thanks. For the move, please use the version I already adapted for org.openhab.core: @Confectrician, don't let me stop you from developing. Get started! |
@lewie, I'm ready to push a commit, but noticed your copyrights. Would you mind if this was changed to be more generic, as is used in the openHAB statement?
Created PR #124. There is still testing to do, but I'd like to get it into the repo so that others can test too. |
@openhab-5iver, cool, LGTM! merge! I can also correct the header after the move. But it would be nice if something about me as the original author would be preserved. Sure, it's just only a script, but I'd like to know who to contact if I have any questions for example. Not specifically related to my files, what do you think about headers? The minimum that I would also require from example files:
Later, when we have created order for the core classes, would I include a description and the origin in the class?
|
Absolutely understood. I did a second commit that changed the copyright, so I could easily pull it if you wanted to keep it as is. The author tags are still there and I plan to get author tags in all the files. Documentation too, but that may need to be handled differently than with the Jython helper libraries (JythonHLs? 🙂). In my head, I tied that all in with adding versioning (#71), since it would mean touching all the files, but it would be best break this out into updating the files (copyright, license, author, version) and then use #71 for the actual version checking, notifying, etc.
IMO definitely needed and should be required. We can catch these in the PRs. An automated check could be added if/when the contributions increase.
Yes. I think adopting the OH guidlines would be fitting (stock header with copyright and license, a main description with author tags, and documentation for classes and methods, etc. A formatter would be nice too (I think someone setup the OH one in VS Code). I'll add some issues to continue this discussion. Could you please give me your thoughts on the suggestions over in #124? It would be easier/cleaner to just get those changes in now so that additional PRs aren't needed. |
I believe that adding the javascript libraries has to do with that I'm now getting double startup delays. Not that another delay matters for me but ...
|
Yes... each language has a startup delay. I haven't thought of a way to prevent this. |
Continuation of lewie/openhab2-javascript#4 now that #94 is complete
@lewie, how would you like to proceed? Would you like me to get things copied over first, using the new directory structure, or would you prefer to do that yourself? I've already added startup delay scripts, and I have a JS OSGI library to add too.
The text was updated successfully, but these errors were encountered: