angel_cli 2.1.7+1

  • Readme
  • Changelog
  • Example
  • Installing
  • 41

angel_cli #

Screenshot of Terminal

Command-line tools for the Angel framework. Includes functionality such as:

  • Project scaffolding
  • Generating service models, plugins, tests and more
  • Renaming projects
  • Much more...

To install:

$ pub global activate angel_cli

And then, for information on each command:

$ angel help

2.1.7+1 #

  • Fix a bug where new directories were not being created in init.

2.1.7 #

  • Fix a bug where ArgResults.arguments was used in init instead of the intended ArgResults.rest.
  • Stop including package:angel_model imports in make model.
  • Update dependencies in make commands.
  • Fix make model to generate ORM + migration by default.
  • Fix MakerDependency logic to print missing dependencies.

2.1.6 #

  • Fix a bug where models always defaulted to ORM.
  • Add GraphQL boilerplate.
  • Automatically restore terminal colors on shutdown.

2.1.5+1 #

  • Update to inflection2.

2.1.5 #

  • Add shared boilerplates.
  • Remove uncecessary angel_model imports.

2.1.4+1 #

  • Patch part of 'path' renames.

2.1.4 #

  • The migration argument to model just emits an annotation now.
  • Add the ORM boilerplate.

2.1.3 #

  • Fix generation of ORM models.
  • A --project-name to init command.

2.1.2 #

  • No migrations-by-default.

2.1.1 #

  • Edit the way rename runs, leaving no corner unturned.

2.1.0 #

  • Deprecate angel install.
  • Rename projects using snake_case.
  • init now fetches from master.
  • Remove the 1.x option.
  • Add make migration command.
  • Replace {{oldName}} in the rename command.
  • pub get now runs with inheritStdio.

2.0.1 #

  • deploy systemd now has an --install option, where you can immediately spawn the service.

2.0.0 #

  • init can now produce either 1.x or 2.x projects.
  • Fixed deps for compatibility with Dart2 stable.

1.3.4 #

  • Fix another typo.

1.3.3 #

  • Fix a small typo in the model generator.

1.3.2 #

  • Restore part directives in generated models.

1.3.1 #

  • Add deploy nginx and deploy systemd.

1.3.0 #

  • Focus on Dart2 from here on out.
  • Update code_builder.
  • More changes...

1.1.5 #

Deprecated several commands, in favor of the make command:

  • controller
  • plugin
  • service
  • test

The rename command will now replace all occurrences of the old project names with the new one in config/ YAML files, and also operates on the glob config/**/*.yaml.

Changed the call to run angel start to run dart bin/server.dart instead, after an init command.

example/main.dart

void main() {
  // This package isn't usable from code.
}

Use this package as an executable

1. Install it

You can install the package from the command line:


$ pub global activate angel_cli

2. Use it

The package has the following executables:


$ angel

Use this package as a library

1. Depend on it

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


dependencies:
  angel_cli: ^2.1.7+1

2. Install it

You can install packages from the command line:

with pub:


$ pub get

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

3. Import it

Now in your Dart code, you can use:


import 'package:angel_cli/angel_cli.dart';
  
Popularity:
Describes how popular the package is relative to other packages. [more]
17
Health:
Code health derived from static analysis. [more]
41
Maintenance:
Reflects how tidy and up-to-date the package is. [more]
100
Overall:
Weighted score of the above. [more]
41
Learn more about scoring.

We analyzed this package on Dec 7, 2019, and provided a score, details, and suggestions below. Analysis was completed with status completed using:

  • Dart: 2.6.1
  • pana: 0.12.21

Platforms

Detected platforms: other

Primary library: package:angel_cli/angel_cli.dart with components: io, mirrors.

Health suggestions

Fix lib/src/commands/init.dart. (-10.44 points)

Analysis of lib/src/commands/init.dart reported 22 hints, including:

line 15 col 27: Unnecessary new keyword.

line 38 col 9: Unnecessary new keyword.

line 45 col 9: Unnecessary new keyword.

line 51 col 9: Unnecessary new keyword.

line 97 col 21: Avoid empty catch blocks.

Fix lib/src/commands/make/controller.dart. (-8.63 points)

Analysis of lib/src/commands/make/controller.dart reported 18 hints, including:

line 34 col 9: The value of the local variable 'pubspec' isn't used.

line 48 col 14: Unnecessary new keyword.

line 49 col 25: Unnecessary new keyword.

line 53 col 18: Unnecessary new keyword.

line 55 col 38: Unnecessary new keyword.

Fix lib/src/commands/make/migration.dart. (-8.63 points)

Analysis of lib/src/commands/make/migration.dart reported 18 hints, including:

line 39 col 14: Unnecessary new keyword.

line 41 col 24: Unnecessary new keyword.

line 43 col 26: Unnecessary new keyword.

line 45 col 20: Unnecessary new keyword.

line 53 col 38: Unnecessary new keyword.

Fix additional 22 files with analysis or formatting issues. (-58.33 points)

Additional issues in the following files:

  • lib/src/commands/make/service.dart (17 hints)
  • lib/src/commands/rename.dart (15 hints)
  • lib/src/commands/install.dart (13 hints)
  • lib/src/commands/make/model.dart (11 hints)
  • bin/angel.dart (8 hints)
  • lib/src/commands/make.dart (6 hints)
  • lib/src/commands/service_generators/service_generators.dart (6 hints)
  • lib/src/commands/make/test.dart (5 hints)
  • lib/src/commands/make/plugin.dart (4 hints)
  • lib/src/commands/service_generators/file_service.dart (4 hints)
  • lib/src/commands/service_generators/mongo.dart (4 hints)
  • lib/src/commands/service_generators/rethink.dart (4 hints)
  • lib/src/commands/key.dart (3 hints)
  • lib/src/commands/make/maker.dart (3 hints)
  • lib/src/commands/pub.dart (3 hints)
  • lib/src/util.dart (3 hints)
  • lib/src/commands/deploy.dart (2 hints)
  • lib/src/commands/deploy/systemd.dart (2 hints)
  • lib/src/commands/doctor.dart (2 hints)
  • lib/src/random_string.dart (2 hints)
  • lib/src/commands/deploy/nginx.dart (1 hint)
  • lib/src/commands/service_generators/custom.dart (1 hint)

Dependencies

Package Constraint Resolved Available
Direct dependencies
Dart SDK >=2.0.0-dev <3.0.0
analyzer >=0.32.0 <2.0.0 0.38.5 0.39.2
args ^1.0.0 1.5.2
code_builder ^3.0.0 3.2.1
dart_style ^1.0.0 1.3.3
glob ^1.1.0 1.2.0
http ^0.12.0 0.12.0+2
inflection2 ^0.4.2 0.4.3
io ^0.3.2 0.3.3
mustache4dart ^3.0.0-dev.1.0 3.0.0-dev.1.0
path ^1.0.0 1.6.4
prompts ^1.0.0 1.3.1
pubspec_parse ^0.1.2 0.1.5
quiver ^2.0.0 2.1.2+1
recase ^2.0.0 2.0.1
shutdown ^0.4.0 0.4.0
watcher ^0.9.7 0.9.7+13
yaml ^2.0.0 2.2.0
Transitive dependencies
async 2.4.0
build 1.2.2
build_config 0.4.1+1
build_daemon 2.1.2
build_resolvers 1.2.1 1.3.0
build_runner 1.7.2
build_runner_core 4.2.0
built_collection 4.3.0
built_value 7.0.0
charcode 1.1.2
checked_yaml 1.0.2
collection 1.14.12
convert 2.1.1
crypto 2.1.4
csslib 0.16.1
fixnum 0.10.11
front_end 0.1.27 0.1.29
graphs 0.2.0
html 0.14.0+3
http_multi_server 2.1.0
http_parser 3.1.3
js 0.6.1+1
json_annotation 3.0.0
kernel 0.3.27 0.3.29
logging 0.11.3+2
matcher 0.12.6
meta 1.1.8
mime 0.9.6+3
node_interop 1.0.3
node_io 1.0.1+2
package_config 1.1.0
package_resolver 1.0.10
pedantic 1.9.0
pool 1.4.0
pub_semver 1.4.2
reflectable 2.2.0
shelf 0.7.5
shelf_web_socket 0.2.3
source_span 1.5.5
stack_trace 1.9.3
stream_channel 2.0.0
stream_transform 0.0.20 1.1.0
string_scanner 1.0.5
term_glyph 1.1.0
timing 0.1.1+2
typed_data 1.1.6
web_socket_channel 1.1.0