Expand my Community achievements bar.

SOLVED

TypeScript in AEM

Avatar

Level 5

We're considering incorporating TypeScript using the Muban library into a fairly vanilla AEM project/archetype (no React) to make development easier.

Can anyone share experiences doing this or something similar? What library if any do you use? How if at all do you integrate the library or TypeScript in general into your mvn project(s) / build process(es)?

If you don't integrate it, why not? How do you accomplish using TypeScript without integrating it into the build process?

I'm interested if the pros of using TypeScript within AEM outweigh the cons. Do the benefits of using TypeScript with a library like Muban outweigh anything special you need to do to get it working in your project(s) / mvn builds?

What are the pros? What are the cons?

Does Adobe support using TypeScript within AEM?

What's the potential that using TypeScript with a library like Muban within AEM might make future AEM upgrades more difficult or impossible?

In the past we relied on a library whose aim also was to simplify development, but eventually was no longer updated, hosted for mvn, or supported by the vendor. 

 

Thanks!

1 Accepted Solution

Avatar

Correct answer by
Level 9

Hello,

I've never used Muban library, but you can for sure use TypeScript. It is a standard web technology that can be used with any CMS/framework. Keep in mind that TypeScript always needs to be compiled (or "transpiled") to JavaScript because browsers do not natively understand TypeScript. I don't see how TypeScript could make your future AEM upgrades more difficult.

 

Good luck,

Daniel

View solution in original post

1 Reply

Avatar

Correct answer by
Level 9

Hello,

I've never used Muban library, but you can for sure use TypeScript. It is a standard web technology that can be used with any CMS/framework. Keep in mind that TypeScript always needs to be compiled (or "transpiled") to JavaScript because browsers do not natively understand TypeScript. I don't see how TypeScript could make your future AEM upgrades more difficult.

 

Good luck,

Daniel