Skip to main content
this-that-the-otter
Level 4
October 9, 2024
Beantwortet

TypeScript in AEM

  • October 9, 2024
  • 1 Antwort
  • 856 Ansichten

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!

Dieses Thema wurde für Antworten geschlossen.
Beste Antwort von daniel-strmecki

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

1 Antwort

daniel-strmecki
Adobe Champion, Community Advisor, UG Leader
Adobe Champion, Community Advisor, UG Leader
October 9, 2024

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