angular_cli 0.1.2

  • Installing
  • Versions
  • 60

AngularDart CLI

Pub Package Build Status

A command line interface for AngularDart. It can scaffold a skeleton AngularDart project, component, and test with page object.


To install:

pub global activate angular_cli

To update:

pub global activate angular_cli


ngdart help

For help on specific command, run ngdart help [command name] For example:

ngdart help generate test

will show how to use command generate test.

Generating AngularDart project

ngdart new project_name
cd project_name
pub get
pub serve

Navigate to http://localhost:8080 to visit the project you just built. Command following will assume that you are in the root directory of the project.

Generating component

ngdart generate component AnotherComponent

This command will generate component under folder lib/. You can use option -p to change the folder.

Generating test

ngdart generate test lib/app_component.dart

Command above will generate 2 files. One is page object file and the other one is test file. Test generated is using angular_test and test package.

Use command

pub run angular_test --test-arg=--tags=aot --test-arg=--platform=dartium  --test-arg=--reporter=expanded

to run generated test with Dartium.



  • Added support for generate directive
  • Added support for generate pipe


  • Fixed issues on Windows.


  • Exported visitors which can be used to extract info from Dart files.


  • Fixed an issue on formatting.
  • Enabled travis.


  • Added missing dependencies.


  • New implementation, support to create project, generate AngularDart component and test.


  • Fixed scaffold command so that it uses the correct platform separator. Instead of creating files in the CWD, it creates them in $name/lib and $name/test of the CWD.


  • Added scaffold command, which generates all of the files need for a component. This should be run from an empty folder and provider a selector name like my-foo-bar.

Use this package as an executable

1. Install it

You can install the package from the command line:

$ pub global activate angular_cli

2. Use it

The package has the following executables:

$ ngdart

Use this package as a library

1. Depend on it

Add this to your package's pubspec.yaml file:

  angular_cli: "^0.1.2"

2. Install it

You can install packages from the command line:

with pub:

$ pub get

with Flutter:

$ flutter packages get

Alternatively, your editor might support pub get or flutter packages get. Check the docs for your editor to learn more.

3. Import it

Now in your Dart code, you can use:

      import 'package:angular_cli/visitors.dart';
Version Uploaded Documentation Archive
0.1.2 Oct 9, 2017 Go to the documentation of angular_cli 0.1.2 Download angular_cli 0.1.2 archive
0.1.1 Sep 29, 2017 Go to the documentation of angular_cli 0.1.1 Download angular_cli 0.1.1 archive
0.1.0+3 Sep 28, 2017 Go to the documentation of angular_cli 0.1.0+3 Download angular_cli 0.1.0+3 archive
0.1.0+2 Sep 28, 2017 Go to the documentation of angular_cli 0.1.0+2 Download angular_cli 0.1.0+2 archive
0.1.0+1 Sep 27, 2017 Go to the documentation of angular_cli 0.1.0+1 Download angular_cli 0.1.0+1 archive
0.1.0 Sep 27, 2017 Go to the documentation of angular_cli 0.1.0 Download angular_cli 0.1.0 archive
0.0.2 Sep 3, 2017 Go to the documentation of angular_cli 0.0.2 Download angular_cli 0.0.2 archive
0.0.1 Sep 3, 2017 Go to the documentation of angular_cli 0.0.1 Download angular_cli 0.0.1 archive


We analyzed this package on Jun 19, 2018, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.0.0-dev.63.0
  • pana: 0.11.3


Describes how popular the package is relative to other packages. [more]
21 / 100
Code health derived from static analysis. [more]
100 / 100
Reflects how tidy and up-to-date the package is. [more]
100 / 100
Overall score:
Weighted score of the above. [more]
Learn more about scoring.


Detected platforms: Flutter, other

Platform components identified in package: io.


  • The description is too short.

    Add more detail about the package, what it does and what is its target use case. Try to write at least 60 characters.

  • Package is pre-v1 release.

    While there is nothing inherently wrong with versions of 0.*.*, it usually means that the author is still experimenting with the general direction API.

  • Maintain an example.

    Create a short demo in the example/ directory to show how to use this package. Common file name patterns include: main.dart, example.dart or you could also use angular_cli.dart.

  • Fix analysis and formatting issues.

    Analysis or formatting checks reported 4 hints.

    Strong-mode analysis of lib/src/file_reader.dart gave the following hint:

    line: 15 col: 60
    'UTF8' is deprecated and shouldn't be used.

    Strong-mode analysis of lib/src/template_file.dart gave the following hint:

    line: 8 col: 28
    'UTF8' is deprecated and shouldn't be used.


Package Constraint Resolved Available
Direct dependencies
Dart SDK >=1.24.0 <2.0.0
analyzer ^0.30.0 0.30.0+4 0.32.1
ansicolor ^0.0.9 0.0.9 0.1.0
args ^0.13.7 0.13.7 1.4.3
html ^0.13.2 0.13.3+1
logging ^0.11.3 0.11.3+1
mustache ^0.2.5 0.2.5+1 1.0.1
path ^1.4.2 1.6.1
resource ^2.1.2 2.1.4
Transitive dependencies
async 2.0.7
charcode 1.1.1
cli_util 0.1.3
collection 1.14.10
convert 2.0.1
crypto 2.0.5
csslib 0.14.4
front_end 0.1.0-alpha.4.1 0.1.1
glob 1.1.5
isolate 1.1.0 2.0.1
kernel 0.3.0-alpha.1.1 0.3.1
meta 1.1.5
package_config 1.0.3
plugin 0.2.0+2
source_span 1.4.0
string_scanner 1.0.2
typed_data 1.1.5
utf 0.9.0+4
watcher 0.9.7+8
yaml 2.1.14
Dev dependencies
test ^0.12.21