I was able to generate a skeleton designer/gateway project using the ignition-module-tools. I ran the command
gradlew.bat runCli --console plain
I then chose DG.
I was also able to build the project which created an unsigned module, so I feel as if I am getting close. I am now comparing it to the example project perspective-component to see how I can get a react component into the module, but the skeleton project does not have a web folder. How do I generate the web folder or do I have to build that up from scratch?
The web subproject is optional; it's not strictly necessary. The key thing is to have one or more .jar files, inside your module, loaded in the gateway scope, with the frontend assets available as resources to serve up. You don't have to use Gradle at all do this; you could manually run whatever frontend build process you want, put the assets in the resources directory manually, and build your module that way. That's probably not a very fun way to work, so it would probably be good to copy at least the basic structure of the Perspective example for now.
Improvements in how this all works would be nice, but are hard to do in a way that covers all the bases.
Thanks. I stumbled upon the readme file in the web folder of the example. It says I can build the web folder using
gradlew.bat :web:build
but all i get from that is
So i guess that does not create the folder just builds it, but i dont have a web folder to build. So I need to figure out what needs to be pulled over from example web folder in order to build by skeleton web folder.
I guess i will try to pull over the bare minimum until i can get it to build.
Build successful and now I have these other folder files in my web folder
Now I am thinking I need to figure out how to put my files for my component into the packages/client and package/designer folder. Such as scss files, typescript files, a package.json file, a tsonfig.json file and a webpack.config.js file.
Is there any way to test out the web component files outside of building the module? I am just thinking that it would be good to know that the web component works lets say in a static html file first before adding in the complexity of hooking it up to the gateway and designer scopes. Could be as simple as just display an image tag.