Angular CLI task

Angular CLI task

Description

Task to process ng, the Angular CLI .

Installation

$ npm install -g @angular/cli

Typescript task parameters

Attribute Description Value Required
cli the command line yes

Examples

<project name="ngcli task">
	<taskdef name="ng"
		classname="net.sourceforge.ant4x.taskdefs.javascript.NgCliTask"
		classpath="PATH/TO/ant4x.jar"/>

	<target name="ngcli">
		<ng cli="new my-dream-app" dir="test"/>
		<ng cli="build -prod --environment=prod" dir="test/my-dream-app"/>
	</target>
</project>