Angular CLI

Description

Task to process ng, the Angular CLI.

Installation

Please install:
$ npm install -g @angular/cli

NgCli task parameters

Attribute Description Value Required
cli the command line yes

Examples

/!\ ng cli must be installed on the system and set up in the PATH.

<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>