Hi, > The structure looks good. One question that comes to mind is whether each > “extern” should be a separate SWC, or should all the “externs” be compiled > into a single swc. > I’d assume the first way. If that’s the case, the build scripts will likely > need to be a little different than the rest of the swcs in the framework.
A priori I also think that they should be independent swcs, I have not been able to set up the pom's correctly for that. In the example project I set up some time ago I have it working like that, in independent libraries. Thanks Harb, I'll be attentive to any comment. Hiedra -----Mensaje original----- De: Harbs <[email protected]> Enviado el: lunes, 29 de noviembre de 2021 13:08 Para: [email protected] Asunto: Re: New project ExternsJS Great to see this initiative. :-) The structure looks good. One question that comes to mind is whether each “extern” should be a separate SWC, or should all the “externs” be compiled into a single swc. I’d assume the first way. If that’s the case, the build scripts will likely need to be a little different than the rest of the swcs in the framework. I’d also suggest make compiling externs a different target than the standard build of the main swcs. A full framework build already takes a decent amount of time. If no one else get to this before me, I’ll try to find the time to look into the configs sometime over the next few days. Thanks! Harbs > On Nov 29, 2021, at 11:44 AM, Maria Jose Esteve <[email protected]> wrote: > > Hi, > I need some help and advice with the structure and compilation of the new > ExternsJS project, "bear with me". 😝 > First, I would like to tell you that I thought it was appropriate to create a > branch "feature/ExternsJS_InspireTree" for this implementation, with the idea > of not interfering in the general compilation of the SDK. > > As I see it, ExternsJS will include several "subprojects" (InspireTree, > VirtualSelect, Royale Office Add-In (Hugo), ...) but I don't know how this > structure should be set up inside the SDK. I've checked the existing > projects, but I don't see any like this: "a library of libraries" (it would > be like 'projects' itself). > > For now, the structure I have implemented within "projects" is: > ├───ExternsJS > │ ├───Echarts > │ ├───InspireTree > │ │ ├───src > │ │ │ └───main > │ │ │ ├───config > │ │ │ ├───resources > │ │ │ │ ├───inspiretree > │ │ │ │ ├───lodash > │ │ │ │ └───svg > │ │ │ └───royale > │ │ │ └───org > │ │ │ └───apache > │ │ │ └───royale > │ │ │ └───externsjs > │ │ │ └───inspiretree > │ │ │ ├───beads > │ │ │ │ └───models > │ │ │ ├───controls > │ │ │ ├───supportClasses > │ │ │ └───vos > │ ├───JsCalendar > │ └───VirtualSelect > > The first library that has been added is "InspireTree" although I have > created folders for some others that may be added in the future (Echarts, > JsCalendar and VirtualSelect as examples). How do you see this structure? > > My second question is about how to configure the configuration and > compilation files. I understand that the maven and ant builds must be > configured, but I know only "a little" about Maven, so I would need help on > this point as well. > These are the existing configuration files: > > ExternsJS > | asconfig.json > | build.xml > | pom.xml > | > +---Echarts > +---InspireTree > | | asconfig.json > | | build.xml > | | pom.xml > | | > | +---src > | | \---main > | | +---config > | | | compile-swf-config.xml > > I have created ExternsJS/pom.xml and ExternsJS/InspireTree/pom.xml, for Maven > compilation but I don't know how build.xml and asconfig.json should be > configured, at this point I would require help as well. > I have compiled the whole sdk with Maven and with ant and there were no > errors but I think they are not ok... I don't see ExternsJSJS "THIS IS WHY I > KNOW IT IS NOT OK". 😝 > > I would be grateful for any help. > > Thx > Hiedra. >
