My main reason for avoiding the SWF build was to simplify building for 
consumers. I’ve managed to get asconfigc to build the swcs without any 
environment variables. The only dependency that I couldn’t avoid was 
playerglobal, but I added that to an npm install, so that’s pretty painless as 
well.

Here’s the results:
https://github.com/unhurdle/spectrum-royale 
<https://github.com/unhurdle/spectrum-royale>

Basically, two commands will build the swc from a freshly downloaded repo 
(within the Spectrum folder):

npm install
asconfigc

It might be nice as a long term goal to get js-only projects that can output to 
swc without needing the COMPILE::JS blocks, but I think the setup I ended up 
with is very manageable.

Thanks,
Harbs

> On Dec 31, 2018, at 9:45 AM, Alex Harui <[email protected]> wrote:
> 
> IMO, extermely difficult.  It would be a major change to the compiler.
> 
> The compiler only knows how to get definitions from a SWC by parsing the 
> library.swf in the SWC.  It sounds like you are proposing that the compiler 
> get definitions by parsing the JS in a SWC?  That would be significant work, 
> IMO.
> 
> What really makes a SWC "js-only" is whether it is on the library-path when 
> compiling a JS-only app.  That said, the SWC should have the correct JS API 
> surface in the library.swf.  That is done, as I mentioned in my prior post, 
> by setting the COMPILE::SWF and external-library-path appropriately in the 
> SWF target.  A SWF target does not have to use playerglobal/airglobal and 
> generate code that can run on Flash.   All it needs is the right prerequisite 
> definitions in order to generate its own definitions in its library.swf.  
> Look at the build.xml files in frameworks/js/projects/XXXJS.  Do not start 
> from the build.xml files in frameworks/projects.  They are for generating 
> runnable SWF components.
> 
> HTH,
> -Alex
> 
> On 12/30/18, 11:36 PM, "Harbs" <[email protected] 
> <mailto:[email protected]>> wrote:
> 
>    How difficult would it be to output it for JS-only output? Where would I 
> look for that code?
> 
>> On Dec 31, 2018, at 9:14 AM, Alex Harui <[email protected]> wrote:
>> 
>> The catalog.xml is written out based on the SWF target.  I think in the JS 
>> swcs, we set COMPILE::SWF and -external-library-path for SWF to the same 
>> settings as JSRoyale target.
>> 
>> HTH,
>> -Alex
>> 
>> On 12/30/18, 8:00 AM, "Harbs" <[email protected]> wrote:
>> 
>>   I more-or-less figured it out, but for some reason, I’m not getting 
>> components in my src. I’m only getting the classes.
>> 
>>   Here’s the project (I’m compiling using ant):
>>   
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=BnDmq5dMLQriojG7tSw%2Fc7j8lpMYroGTUUGd8VHHcig%3D&amp;reserved=0
>>  
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=BnDmq5dMLQriojG7tSw%2Fc7j8lpMYroGTUUGd8VHHcig%3D&amp;reserved=0>
>>  
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=BnDmq5dMLQriojG7tSw%2Fc7j8lpMYroGTUUGd8VHHcig%3D&amp;reserved=0
>>  
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=BnDmq5dMLQriojG7tSw%2Fc7j8lpMYroGTUUGd8VHHcig%3D&amp;reserved=0>>
>> 
>>   I’m getting the following catalog in my swc:
>>   
>> https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FtFXj&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=TkZTn%2BWVUwrlK78PlghhvZ8Y%2B0ByGYcTqxUu%2FeCr%2F3s%3D&amp;reserved=0
>>  
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FtFXj&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=TkZTn%2BWVUwrlK78PlghhvZ8Y%2B0ByGYcTqxUu%2FeCr%2F3s%3D&amp;reserved=0><https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FtFXj&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=TkZTn%2BWVUwrlK78PlghhvZ8Y%2B0ByGYcTqxUu%2FeCr%2F3s%3D&amp;reserved=0
>>  
>> <https://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fpaste.apache.org%2FtFXj&amp;data=02%7C01%7Caharui%40adobe.com%7Cfceb33b582304e6d9a1908d66ef2b9bc%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818386132937026&amp;sdata=TkZTn%2BWVUwrlK78PlghhvZ8Y%2B0ByGYcTqxUu%2FeCr%2F3s%3D&amp;reserved=0>>
>> 
>>   The features section does not have <feature-components> and there’s no 
>> <components> section.
>> 
>>   Any clue why that is? I can’t find anything wrong with my manifest.
>> 
>>   Thanks,
>>   Harbs
>> 
>>> On Dec 30, 2018, at 3:03 PM, Harbs <[email protected]> wrote:
>>> 
>>> I’m putting together a component set for a JS css component set and I’m not 
>>> going to bother with SWF compatibility. Is there any examples of component 
>>> swcs which only output for JS and include the component list from the 
>>> manifest?
>>> 
>>> Any tips on getting this to work?

Reply via email to