You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@royale.apache.org by Harbs <ha...@gmail.com> on 2018/12/30 13:03:53 UTC

swc for js-only component library

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?

Re: swc for js-only component library

Posted by Harbs <ha...@gmail.com>.
OK. I’ll look at that when I have time.

> On Jan 1, 2019, at 9:05 AM, Alex Harui <ah...@adobe.com.INVALID> wrote:
> 
> I don't have time to dig through your config, but I'm pretty sure frameworks/js/projects/AceJS works just fine without PlayerGlobal and shouldn't need COMPILE::JS blocks.
> 
> -Alex
> 
> On 12/31/18, 2:29 PM, "Harbs" <ha...@gmail.com> wrote:
> 
>    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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%3D&amp;reserved=0>
> 
>    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 <ah...@adobe.com.INVALID> 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" <harbs.lists@gmail.com <ma...@gmail.com>> 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 <ah...@adobe.com.INVALID> 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" <ha...@gmail.com> 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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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 <ha...@gmail.com> 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?
> 
> 
> 


Re: swc for js-only component library

Posted by Alex Harui <ah...@adobe.com.INVALID>.
I don't have time to dig through your config, but I'm pretty sure frameworks/js/projects/AceJS works just fine without PlayerGlobal and shouldn't need COMPILE::JS blocks.

-Alex

On 12/31/18, 2:29 PM, "Harbs" <ha...@gmail.com> wrote:

    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://na01.safelinks.protection.outlook.com/?url=https%3A%2F%2Fgithub.com%2Funhurdle%2Fspectrum-royale&amp;data=02%7C01%7Caharui%40adobe.com%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%3D&amp;reserved=0>
    
    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 <ah...@adobe.com.INVALID> 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" <harbs.lists@gmail.com <ma...@gmail.com>> 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 <ah...@adobe.com.INVALID> 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" <ha...@gmail.com> 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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735199944&amp;sdata=EWKMyndh1HTFh8q10o3oD9YjuGMtrxTsij%2FUlVh0L9E%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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%7C6724ec588e8e45e916d108d66f6f6df2%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636818921735209949&amp;sdata=LcPGtO6X4TTzBVOwqlEXXebp4LD5fcGlry%2Blk1YGplA%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 <ha...@gmail.com> 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?
    
    


Re: swc for js-only component library

Posted by Harbs <ha...@gmail.com>.
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 <ah...@adobe.com.INVALID> 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" <harbs.lists@gmail.com <ma...@gmail.com>> 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 <ah...@adobe.com.INVALID> 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" <ha...@gmail.com> 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 <ha...@gmail.com> 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?


Re: swc for js-only component library

Posted by Alex Harui <ah...@adobe.com.INVALID>.
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" <ha...@gmail.com> 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 <ah...@adobe.com.INVALID> 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" <ha...@gmail.com> 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>
    > 
    >    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>
    > 
    >    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 <ha...@gmail.com> 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?
    > 
    > 
    > 
    
    


Re: swc for js-only component library

Posted by Harbs <ha...@gmail.com>.
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 <ah...@adobe.com.INVALID> 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" <ha...@gmail.com> 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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=ixssfySkqNfzoErBUslDg5k8Fx4XPRyKQOERx%2BpfM%2F4%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=ixssfySkqNfzoErBUslDg5k8Fx4XPRyKQOERx%2BpfM%2F4%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=Ho5oTEhxdEHNNqF9N6eQ8HBc7sIzp%2BpTdwuBsIc03Bo%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=Ho5oTEhxdEHNNqF9N6eQ8HBc7sIzp%2BpTdwuBsIc03Bo%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 <ha...@gmail.com> 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?
> 
> 
> 


Re: swc for js-only component library

Posted by Alex Harui <ah...@adobe.com.INVALID>.
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" <ha...@gmail.com> 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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=ixssfySkqNfzoErBUslDg5k8Fx4XPRyKQOERx%2BpfM%2F4%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=ixssfySkqNfzoErBUslDg5k8Fx4XPRyKQOERx%2BpfM%2F4%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=Ho5oTEhxdEHNNqF9N6eQ8HBc7sIzp%2BpTdwuBsIc03Bo%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%7Cccace6d61a1e432e814708d66e6fd7ed%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C636817824010804706&amp;sdata=Ho5oTEhxdEHNNqF9N6eQ8HBc7sIzp%2BpTdwuBsIc03Bo%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 <ha...@gmail.com> 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?
    
    


Re: swc for js-only component library

Posted by Harbs <ha...@gmail.com>.
Well, the problem was because the SWC is only created with the SWF build, and the SWF build was failing.

Do we have a system for generating SWCs for js-only libs? The only way seems to be:

1. Make sure you have no js-only code.
2. Build two separate SWCs like we’re doing in the Framework code.

Am I missing something?

> On Dec 30, 2018, at 5:59 PM, Harbs <ha...@gmail.com> 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://github.com/unhurdle/spectrum-royale <https://github.com/unhurdle/spectrum-royale>
> 
> I’m getting the following catalog in my swc:
> https://paste.apache.org/tFXj <https://paste.apache.org/tFXj>
> 
> 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 <harbs.lists@gmail.com <ma...@gmail.com>> 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?
> 


Re: swc for js-only component library

Posted by Harbs <ha...@gmail.com>.
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://github.com/unhurdle/spectrum-royale <https://github.com/unhurdle/spectrum-royale>

I’m getting the following catalog in my swc:
https://paste.apache.org/tFXj <https://paste.apache.org/tFXj>

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 <ha...@gmail.com> 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?