Ok, thanks!, I'll investigate that path :)

El jue., 27 jun. 2019 a las 20:28, Josh Tynjala (<[email protected]>)
escribió:

> In VSCode, where most people will be using asconfigc, you can optionally
> give each task a list of dependencies to compile first. That allows you to
> choose a single task to run, and it would compile both the app and the
> module.
>
> --
> Josh Tynjala
> Bowler Hat LLC <https://bowlerhat.dev>
>
>
> On Thu, Jun 27, 2019 at 11:21 AM Carlos Rovira <[email protected]>
> wrote:
>
> > Hi Josh,
> >
> > before responding: I just updated the Royale docs here:
> >
> > https://apache.github.io/royale-docs/create-an-application/modules.html
> >
> >
> > El jue., 27 jun. 2019 a las 19:48, Josh Tynjala (<
> > [email protected]>)
> > escribió:
> >
> > > I have never used modules in Royale, so I have a couple of questions.
> > >
> > > Is there a special compiler option that is used to add a module to an
> > app?
> >
> > Or are modules supposed to be compiled separately? I'm asking in the
> > > context where you are compiling directly on the command line with mxmlc
> > and
> > > no build tool like Maven.
> > >
> >
> > No, you compile the Module de same as you compile an Application. Both
> are
> > "root" tags, but Modules
> > can be loaded independently and needs to be loaded from a ModuleLoader
> > component that can be inside
> > and Application (or another Module)
> >
> > so from the command line I you should launch mxmlc two times, one for the
> > App and one for each Module.
> >
> >
> > >
> > > If there's a compiler option, you should be able to do it with one
> > > asconfig.json file. You'd use that option instead of adding the module
> to
> > > the "files" field.
> > >
> > > If modules are compiled separately from the application, then you need
> a
> > > separate asconfig.json file for the module.
> > >
> >
> > ok, so it's clear that better put one file per "block". One asconfigc in
> > App and another in the Module.
> > And this even seems more logical for development. If I'm working in the
> > module, I'll want to compile just the module, and working on App the
> > opposite...
> >
> > But this make me think if we have some way to call this two files
> > consecutively.
> > I mean, it will be cumbersome for the user to compile App, then Module1,
> > then Module2, then Module3, and so on...
> > Can we chain this compilations in some way? For that I can launch the
> > global Maven process, but thinking always in people without maven and
> just
> > asconfic
> >
> > thanks!
> >
> >
> >
> > >
> > > --
> > > Josh Tynjala
> > > Bowler Hat LLC <https://bowlerhat.dev>
> > >
> > >
> > > On Thu, Jun 27, 2019 at 10:25 AM Carlos Rovira <
> [email protected]>
> > > wrote:
> > >
> > > > Hi,
> > > >
> > > > I'm trying to build the project in examples/blog/
> > > > BE0013_Dividing_an_Apache_Royale_application_with_modules
> > > >
> > > > with asconfigc.
> > > >
> > > > The difference is we have two different compilations here:
> Application
> > > and
> > > > Module, so we have:
> > > >
> > > > "files":
> > > > [
> > > > "JewelModule/src/main/royale/JewelModule.mxml",
> > > > "MainJewelApp/src/main/royale/MainJewelApp.mxml"
> > > > ]
> > > >
> > > > This outputs:
> > > >
> > > > Executing task: asconfigc
> > > > --sdk=/Users/carlosrovira/Dev/Royale/Source/royale-asjs <
> > > >
> > > > MXMLJSC
> > > >
> +royalelib=/Users/carlosrovira/Dev/Royale/Source/royale-asjs/frameworks
> > > > +configname=royale
> > > > --debug=false
> > > > --targets=JSRoyale
> > > > --source-map=true
> > > >
> > > >
> > >
> >
> --html-template=MainJewelApp/src/main/resources/jewel-example-index-template.html
> > > >
> --theme=${royalelib}/themes/JewelTheme/src/main/resources/defaults.css
> > > > -remove-circulars
> > > > -js-output-optimization=skipAsCoercions
> > > > --
> > > > JewelModule/src/main/royale/JewelModule.mxml
> > > > MainJewelApp/src/main/royale/MainJewelApp.mxml
> > > > jun 27, 2019 7:11:57 PM
> com.google.javascript.jscomp.LoggerErrorManager
> > > > printSummary
> > > > INFORMACIÓN: 0 error(s), 0 warning(s), 95.9% typed
> > > > The project 'MainJewelApp' has been successfully compiled and
> > optimized.
> > > > 9.726229827 seconds
> > > >
> > > > and I get a bin folder in 'MainJewelApp', but nothing in
> 'JewelModule'
> > > >
> > > > Can asconfigc compile both Application and Module? Or I should do
> this
> > in
> > > > other way? (maybe 2 asconfigc)
> > > >
> > > > A part from that, I think I'll need to make some copying of the
> Modules
> > > > output to the App target folder, I solved this in Maven, but how can
> be
> > > > done with asconfigc?
> > > > This is to provide to users with more possibilities
> > > >
> > > > @Piotr, maybe can you try this example in Moonshine and see what
> issues
> > > you
> > > > find to try to give some solution in the IDE. Again, copying of files
> > > seems
> > > > something to be solve in some way or another.
> > > >
> > > > Latest thing to solve will be ANT building
> > > >
> > > > thanks
> > > >
> > > > --
> > > > Carlos Rovira
> > > > http://about.me/carlosrovira
> > > >
> > >
> >
> >
> > --
> > Carlos Rovira
> > http://about.me/carlosrovira
> >
>


-- 
Carlos Rovira
http://about.me/carlosrovira

Reply via email to