On top of that, I was considering adding a file watcher and recompile the flex app as user types/saves. This will re-trigger a compilation and possibly a reload of the browser. Live-reload is what the cool kids are doing now :-D
The compile times need to be small for this kind of stuff to work. But, we'll worry about that when we get all this going. Thanks, Om On Tue, Feb 7, 2017 at 12:10 PM, OmPrakash Muppirala <[email protected]> wrote: > To expand on that, here are the things that need to go in it: > > 1. Create a Yeoman template for FlexJS > 2. Publish it to yeoman repository > 3. When user types: '*yo flexjs*', do the following: > > > 1. Install Flexjs (internally call *npm install flexjs -g*) > 2. Download FlexJS simple app template > 3. A very simple compilation step (ex. *mxmlc > ./flexjsApp/src/FlexJSApp.mxml*) > 4. User runs *grunt serve* (a server is started and the flexapp is > served up on localhost:8000) > > It does not seem like a work to get all this going. If only I could find > some time :-( > > Thanks, > Om > > On Tue, Feb 7, 2017 at 12:01 PM, OmPrakash Muppirala <[email protected] > > wrote: > >> Yes, one of the things I wanted to do was: add support for 'yo flexjs'. >> It would set up the FlexJS SDK and create a simple app that folks can >> compile and run right away. Hopefully with Grunt or gulp integration. >> >> Folks are free to work on it before I get to it. >> >> Thanks, >> Om >> >> On Tue, Feb 7, 2017 at 7:14 AM, Carlos Rovira < >> [email protected]> wrote: >> >>> Hi Harbs, >>> >>> I'm pro integrate those kind of project since people some people coming >>> would want it. But I'd want to know more about what problems find with >>> maven so I (or Chris) could assist you to get it working. >>> >>> I don't get tired of let people know how easy and convenient is Maven >>> once >>> it's setup. >>> >>> A part from that for people working in large IT environments, maven is a >>> must, so having this working makes me feel confident about not having >>> problems of adoption, at least due to this kind of things that could >>> become >>> critical when folks checking this technology would examine it, and could >>> say "stop...no maven support, so stop watching and move to other thing". >>> >>> Thanks >>> >>> Carlos >>> >>> >>> >>> >>> 2017-02-07 14:25 GMT+01:00 Harbs <[email protected]>: >>> >>> > Sorry. I missed the earlier discussion. >>> > >>> > FWIW, I was able to create a project using that, but I have never been >>> > successful building a flex project (including the one I created using >>> the >>> > archetype). I don’t know why, but I have not had the drive to figure >>> out >>> > why Maven is not working for me. >>> > >>> > While Maven is great as an option, I don’t think the average JS >>> developer >>> > will want to be required to use maven to generate a project. >>> > >>> > My vision is to be able to build a project which can be built using >>> any of >>> > the possible toolchains and IDEs that are available. That includes ant, >>> > maven, asconfig/VS Code, FB, FDT, IntelliJ, Moonshine, etc. I’d like to >>> > have the project folder be built out including all the necessary >>> project >>> > files for all those environments and the developer should be able to >>> just >>> > use whatever tools they are comfortable with (and switch between >>> them). I >>> > myself have found myself using FB, command line, Sublime Text and VS >>> Code >>> > all to compile and run FlexJS code. Most recently, I have been using VS >>> > Code pretty extensively. I think it would be great to add grunt and >>> gulp >>> > support as well to support those workflows too. >>> > >>> > I know nothing about archetypes and scaffolding using Maven, but how >>> easy >>> > is it to change templates for that? A quick look at Yeoman seems to >>> > indicate that creating templates is pretty straight-forward. There’s >>> also >>> > an extension for Sublime that can be used and I looked at FDT >>> templates a >>> > while back which seemed also very work-able. >>> > >>> > What’s attractive to me about Yeoman is that it’s already somewhat of a >>> > standard in web development, it has integration into VS Code as well as >>> > command line support and modifying templates seems to have a low >>> barrier of >>> > entry. >>> > >>> > Harbs >>> > >>> > > On Feb 7, 2017, at 1:25 PM, Carlos Rovira < >>> [email protected]> >>> > wrote: >>> > > >>> > > Hi, >>> > > >>> > > just created a wiki page with instructions on how to use Maven >>> Archetypes >>> > > to create a project from scratch: >>> > > >>> > > https://cwiki.apache.org/confluence/display/FLEX/ >>> > Create+A+FlexJS+Project+with+Maven >>> > > >>> > > @Chris, consider to modify it as you wish if you find it not >>> accurate. >>> > > >>> > > Hope you find it useful >>> > > >>> > > Thanks >>> > > >>> > > Carlos >>> > > >>> > > >>> > > >>> > > El 7 de febrero de 2017, 11:37, Carlos Rovira < >>> > [email protected] >>> > >> escribió: >>> > > >>> > >> Hi Harbs, >>> > >> >>> > >> this was commented some weeks ago with Om. If you use maven you >>> already >>> > >> has project generation with maven arquetypes (actual three types) >>> > >> >>> > >> Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS >>> Application >>> > >> SUCCESS [ 0.254 s] >>> > >> >>> > >> [INFO] Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS >>> > Pure-JS >>> > >> Application SUCCESS [ 0.065 s] >>> > >> >>> > >> [INFO] Apache Flex - FlexJS: Framework: Archetypes: Simple FlexJS >>> > Pure-SWF >>> > >> Application SUCCESS [ 0.060 s] >>> > >> >>> > >> >>> > >> >>> > >> 2017-02-07 10:41 GMT+01:00 Harbs <[email protected]>: >>> > >> >>> > >>> Does anyone here have any experience with Yeoman?[1] >>> > >>> >>> > >>> One of the nice features in Flash Builder was the ability to easily >>> > >>> scaffold out a Flex project. I think it would be great to have a >>> Yeoman >>> > >>> generator for Flex and FlexJS. >>> > >>> >>> > >>> Harbs >>> > >>> >>> > >>> [1]http://yeoman.io/generators/ <http://yeoman.io/generators/> >>> > >> >>> > >> >>> > >> >>> > >> >>> > >> -- >>> > >> >>> > >> Carlos Rovira >>> > >> Director General >>> > >> M: +34 607 22 60 05 <607%2022%2060%2005> >>> > >> http://www.codeoscopic.com >>> > >> http://www.avant2.es >>> > >> >>> > >> Este mensaje se dirige exclusivamente a su destinatario y puede >>> contener >>> > >> información privilegiada o confidencial. Si ha recibido este >>> mensaje por >>> > >> error, le rogamos que nos lo comunique inmediatamente por esta misma >>> > vía y >>> > >> proceda a su destrucción. >>> > >> >>> > >> De la vigente Ley Orgánica de Protección de Datos (15/1999), le >>> > >> comunicamos que sus datos forman parte de un fichero cuyo >>> responsable es >>> > >> CODEOSCOPIC S.A. La finalidad de dicho tratamiento es facilitar la >>> > >> prestación del servicio o información solicitados, teniendo usted >>> > derecho >>> > >> de acceso, rectificación, cancelación y oposición de sus datos >>> > dirigiéndose >>> > >> a nuestras oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la >>> > >> documentación necesaria. >>> > >> >>> > >> >>> > > >>> > > >>> > > -- >>> > > >>> > > Carlos Rovira >>> > > Director General >>> > > M: +34 607 22 60 05 >>> > > http://www.codeoscopic.com >>> > > http://www.avant2.es >>> > > >>> > > Este mensaje se dirige exclusivamente a su destinatario y puede >>> contener >>> > > información privilegiada o confidencial. Si ha recibido este mensaje >>> por >>> > > error, le rogamos que nos lo comunique inmediatamente por esta misma >>> vía >>> > y >>> > > proceda a su destrucción. >>> > > >>> > > De la vigente Ley Orgánica de Protección de Datos (15/1999), le >>> > comunicamos >>> > > que sus datos forman parte de un fichero cuyo responsable es >>> CODEOSCOPIC >>> > > S.A. La finalidad de dicho tratamiento es facilitar la prestación del >>> > > servicio o información solicitados, teniendo usted derecho de acceso, >>> > > rectificación, cancelación y oposición de sus datos dirigiéndose a >>> > nuestras >>> > > oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la >>> documentación >>> > > necesaria. >>> > >>> > >>> >>> >>> -- >>> >>> Carlos Rovira >>> Director General >>> M: +34 607 22 60 05 >>> http://www.codeoscopic.com >>> http://www.avant2.es >>> >>> Este mensaje se dirige exclusivamente a su destinatario y puede contener >>> información privilegiada o confidencial. Si ha recibido este mensaje por >>> error, le rogamos que nos lo comunique inmediatamente por esta misma vía >>> y >>> proceda a su destrucción. >>> >>> De la vigente Ley Orgánica de Protección de Datos (15/1999), le >>> comunicamos >>> que sus datos forman parte de un fichero cuyo responsable es CODEOSCOPIC >>> S.A. La finalidad de dicho tratamiento es facilitar la prestación del >>> servicio o información solicitados, teniendo usted derecho de acceso, >>> rectificación, cancelación y oposición de sus datos dirigiéndose a >>> nuestras >>> oficinas c/ Paseo de la Habana 9-11, 28036, Madrid con la documentación >>> necesaria. >>> >> >> >
