i'm currently using Typescript in a project with OFbiz, but its in an Angular 8 context. Using OFbiz as an AppServer only, I'm not using any OFbiz widgets. It's worth investing in Typescript if you intend to create a whole new frontend. Merging with existing OFbiz widgets is almost impossible.
Gavin On Fri, Aug 23, 2019 at 10:14 AM Jacques Le Roux < jacques.le.r...@les7arts.com> wrote: > Thanks Guys, > > Yes that's also the issues I crossed and mostly why I did not went further. > > What I'd really like to have is using require.js. We have an issue (among > somehow others related) for that: https://s.apache.org/8uj8v > > Jacques > > Le 23/08/2019 à 10:02, Samuel a écrit : > > Hi, > > > > I am also relatively new to OFBiz, but it seems to me that Typescript is > a bit overkill : as Carl says we should defined a build step to translate > > Typescript to Javascript but we should also define an install step to > get build dependencies to be able to develop on Typescript files. I think > all > > of these stuff will introduce more drawback than benefits, especially > regarding the total amount of javascript we write on OFBiz > > > > Samuel > > > > On 23/08/2019 09:42, Carl Demus wrote: > >> Hello, personally i am a "fan" of typescript, but i've used it on other > project and not in a ofbiz context (hello i'am new). > >> > >> TS is a not a full replacement to JS but help to do better code. The > learning curve is easy for a user of JVM langage (Java, Groovy, Kotlin) or > >> Dotnet. > >> > >> The killing feature for myself is the capacity to use interface. > >> > >> But is not perfect : you must convert TS to JS (ES5 or ES6) with build > tool, you must define a pipeline with tools like gulp, webpack etc. > >> > >> Carl > >> > >> Le 21/08/2019 à 12:09, Nicolas Malin a écrit : > >>> We use it on customer site, but I didn't work with it personally. I > will ask about it > >>> > >>> Nicolas > >>> > >>> On 8/18/19 11:11 AM, Jacques Le Roux wrote: > >>>> Hi Taher, > >>>> > >>>> This Winter I began a try. But it was more complicated than I thought. > >>>> > >>>> I worked on OfbizUtil.ts (from OfbizUtil.js). > >>>> > >>>> I keep the work for now (was considering dropping it, but it's not a > problem to keep it) > >>>> > >>>> Jacques > >>>> > >>>> Le 10/12/2018 à 17:56, Taher Alkhateeb a écrit : > >>>>> Try it where? How? > >>>>> On Mon, Dec 10, 2018 at 7:41 PM Jacques Le Roux > >>>>> <jacques.le.r...@les7arts.com> wrote: > >>>>>> Hi, > >>>>>> > >>>>>> I was reading > https://www.thoughtworks.com/radar/languages-and-frameworks, for a long > time I'm interested by TypeScript. This is what they say: > >>>>>> > >>>>>> *<<TypeScript <https://www.typescriptlang.org/>* is a > carefully considered language and its consistently improving tools and IDE > support > >>>>>> continues > >>>>>> to impress us. With a good repository < > https://definitelytyped.org/> of TypeScript-type definitions, we benefit > from all the rich JavaScript > >>>>>> libraries while gaining type safety. This is particularly > important as our browser-based code base continues to grow. The type safety > in > >>>>>> TypeScript lets you use IDEs and other tools to provide deeper > context into your code and make changes and refactor code with safety. > >>>>>> TypeScript, > >>>>>> being a superset of JavaScript, and documentation and the > community has helped ease the learning curve.>> > >>>>>> > >>>>>> Has anybody considered using it? Should we not try it? > >>>>>> > >>>>>> Thanks > >>>>>> > >>>>>> Jacques > >>>>>> > >>>> > > >