Open petermuessig opened 2 years ago
I will both update the template for the controls and create a similar one for the non-control, reuse modules the next days.
Hi @petermuessig, @mauriciolauffer and @marianfoo, I created a yeoman generator for scaffolding a ui5 module project. It comes with
Shall we also enforce JSDoc annotations for such modules? So that we can easily create API docs / TS type definitions in the future?
If you have other ideas, feel free to contribute. As a next step we should then bring the same setup to the already existing template for custom controls.
Hi Marcel, lot of good out-of-the-box features. To keep the quality high for modules in ui5-community all the checks very good. JSDoc would be good so maybe render the API docs on the website 😍
Without having tried it specifically, I have the following thoughts about it:
author
in package.sjon
?$ModuleName.js
some basic code like in Control.js
Hi @marianfoo, thanks for the feedback. I added the author to the package.json and updated the module with a basic code skeleton. I also added SAP's jsdoc lint plugin to the configuration, but somehow I do not get any warnings when the jsdoc is missing.
@petermuessig Can you may have a look?
Hi all, I added a skeleton for unit tests as well. Unfortunately the "AllTests file" failed to load and I do not really know why because the karma configuration - especially the resource mapping looks correct to me.
If somebody figures out the problem, feel free to fix it or let me know and I'll fix it.
I just had another idea. The readme should be expanded a little. For example, I don't know how exactly the action works. So how can I trigger a release to npm? I would also have to add the npm auth token to the repo.
Yes, I will do that once we agreed on the tools. Then I will try to describe everything in the README.
Once decided for a direction we should update the template