ignite_cli 0.6.0 ignite_cli: ^0.6.0 copied to clipboard
Ignite your projects with flame; a CLI scaffolding tool to create and setup your Flame projects
Use this package as an executable
Install it
You can install the package from the command line:
dart pub global activate ignite_cli
Use it
The package has the following executables:
$ ignite
Use this package as a library
Depend on it
Run this command:
With Dart:
$ dart pub add ignite_cli
With Flutter:
$ flutter pub add ignite_cli
This will add a line like this to your package's pubspec.yaml (and run an implicit dart pub get
):
dependencies:
ignite_cli: ^0.6.0
Alternatively, your editor might support dart pub get
or flutter pub get
. Check the docs for your editor to learn more.
Import it
Now in your Dart code, you can use:
import 'package:ignite_cli/commands/create_command.dart';
import 'package:ignite_cli/commands/version_command.dart';
import 'package:ignite_cli/flame_version_manager.dart';
import 'package:ignite_cli/main.dart';
import 'package:ignite_cli/templates/bricks/basics_bundle.dart';
import 'package:ignite_cli/templates/bricks/example_bundle.dart';
import 'package:ignite_cli/templates/bricks/simple_bundle.dart';
import 'package:ignite_cli/templates/template.dart';
import 'package:ignite_cli/utils.dart';