Commands
generate
library
angular

Angular

The Devmy CLI provides a set of predefined configurations that will allow you to start developing right away.

Get Started

To create a new angular library, use the following Devmy CLI command:

devmy generate library angular

or

devmy g l angular

or

devmy g l ng

Variables

You can configure the initial application with the following parameters:

  • Library name: The name of the library

Advantages

Lodash

The Angular library includes lodash-es (opens in a new tab) as a preinstalled dependency, a JavaScript utility library. Lodash-ES is a modular version of Lodash, designed to be used with ECMAScript (ES) modules.

Test

The Angular library created with the Devmy CLI is preconfigured to use Jest as the unit testing framework. Jest is a modern and versatile testing library that offers superior performance, simpler setup, and advanced features like snapshot testing.

ng-packagr

The Angular library created with the Devmy CLI is preconfigured to use ng-packagr for build. ng-packagr is a bundler that compile and package Angular libraries in Angular Package Format (APF).

The Angular library output a FESM2022 source.