TypeScript Starter and best practices

Contents

Take advantage of our development best-practice via the TypeScript Starter

TL;DR

For new Enonic apps, simply run enonic project create -r starter-ts.

Extensive TypeScript code examples can be found in the Tsup examples documentation.

Introduction

Most projects start with a simple setup and then grow in complexity as more and more features are added. TypeScript can help keep your codebase clean and maintainable.

This tutorial is aimed at developers that want to understand how the TypeScript starter was created, and/or want to make use of the same setup in an existing Enonic project.

The tutorial covers:

If you want to learn more about writing tests in TypeScript, you can check out the Testing with Jest and Mock XP tutorial.

Contents

Contents