It’s no news that developers can use NativeScript with Angular to build mobile apps. However, in order to build both a web and a native mobile app, you have to create two separate projects. That’s no longer an issue though! Meet nativescript-schematics, a schematic that enables you to build both web and mobile apps from a single project.

Developers can use NativeScript with Angular to build mobile apps, this has been the case since the beginning of Angular. However, things get more complicated if you wish to build both a web and a native mobile app because then you have to create two separate projects.

That’s no longer the case, though. The Angular and NativeScript teams have joined forces to create nativescript-schematics, a schematic collection that enables you to build both web and mobile apps from a single project. Sebastian Witalec, Senior Developer Advocate at Progress announced the new way to build web and mobile apps with Angular and NativeScript in a recent blog post.

Before we dive deeper into this schematic collection, you should know that it only works with angular/cli: 6.1.0 or newer.

The goal is to be able to use the Angular CLI with the {N} Schematics to either create a new project with a code-sharing structure or convert an existing web project to a code-sharing structure. Then convert existing components and modules to a code-sharing format, and generate new components and modules in a code-sharing format.

Gabriela Motroc was editor of JAXenter.com and JAX Magazine. Before working at Software & Support Media Group, she studied International Communication Management at the Hague University of Applied Sciences.