Back a few months ago, one of the Ignition team demoed a project named GenerateModuleStructure that would go and generate the base module structure for you in your own namespace. This was in the Perspective Security Module Development Tea With Travis video. Was this project ever released and if so where can I get a copy of it?
+1 That would be amazing. I tried to update the namespace from one of the samples to build a simple module and it was less than fun.
It’s not quite ready for primetime, but @PerryAJ was working on a module skeleton CLI that’s along these lines:
The module-tools Paul linked are definitely a work in progress, but they are pretty functional, with some caveats.
We’re nearing completion of the new module plugin, and then the generator will be updated with more complete support. The generator should work to get you a decent base structure, but currently has some limitations:
- it’s a tad out of date in terms of gradle version that gets used in the generated module skeletons
- it does not generate structures/support for perspective
- the CLI binary is very much a prototype that has limitations - some of which are due to GraalVM’s native image
- Not sure the kotlin buildscript or project support is quite ‘there’.
#2 is planned, but won’t happen until we’ve finished some internal work and have developed an ‘ideal’ structure and updated toolchain for perspective modules. The example perspective module we’ve published is functional, but we have some ideas for improvement that we’re working on internally that should improve the dev-test-debug cycle, as well as build speed. Once we’ve got that sorted, we’ll apply what we’ve learned to the generator, new module plugin, and examples. No ETA, prob end of summer if I had to guess.
Now that all said, feel free to try one or both, and don’t hesitate to open issues if you find problems and/or have ideas for improvements. While that repo hasn’t been the most active, it’s something we’re actively using internally, and (with the exception of the binary CLI tool, which is an experimental) plan to continue to improve and polish.