11[ ![ Pub] ( https://img.shields.io/pub/v/ignite_cli.svg?style=popout )] ( https://pub.dartlang.org/packages/ignite_cli )
2- [ ![ Test] ( https://github.com/flame-engine/ignite-cli/workflows/Test/badge.svg?branch=main&event=push )] ( https://github.com/flame-engine/ignite-cli/actions )
2+ [ ![ Test] ( https://github.com/flame-engine/ignite-cli/workflows/Test/badge.svg )] ( https://github.com/flame-engine/ignite-cli/actions )
33[ ![ Discord] ( https://img.shields.io/discord/509714518008528896.svg )] ( https://discord.gg/pxrBmy4 )
44
55# ignite-cli
66
77Simple CLI interface for Ignite; scaffold and setup your Flame projects with ease.
88
9+ ![ ignite-cli] ( ./media/ignite-example.cast.gif )
10+
911
1012## Usage
1113
1214Install it via pub (or build from src if you prefer the latest version):
1315
1416``` bash
15- pub global activate ignite_cli
17+ flutter pub global activate ignite_cli
1618```
1719
1820After you have added the bin folder to your path (the previous command will tell you what to add),
@@ -22,30 +24,35 @@ you can create a new project with Ignite, just run:
2224ignite create
2325```
2426
25- And follow the instructions.
27+ And follow the instructions (this is called interactive mode - you might need a compatible shell for the interactive pickers to work).
28+
29+ Alternatively, you can set ` --interactive=false ` and manually specify all required options (error messages will be your friend):
30+
31+ ``` bash
32+ ignite create --interactive=false --name=my_flame_game --org=org.flame-engine.example --create-folder=true --template=example
33+ ```
2634
2735
2836## Instructions for contributors
2937
30- Run
38+ Run:
3139
3240``` bash
33- cd test
34- ./run.sh
41+ ./scripts/test.sh
3542```
3643
3744To run all tests. Always make sure the build is green.
3845
3946You will need to install the bash testing framework [ bats] ( https://bats-core.readthedocs.io/en/stable/installation.html ) .
4047
41- In order to run the application locally, run
48+ In order to run the application locally, use:
4249
4350``` bash
4451dart bin/ignite_cli.dart
4552```
4653
4754
48- ## Managing Templates
55+ ### Managing Templates
4956
5057This project uses [ package: mason ] ( https://pub.dev/packages/mason ) to manage and generate templates (bricks).
5158
@@ -54,12 +61,10 @@ All supported bricks can be found in the [bricks](./bricks) directory.
5461Whenever a new brick is added or an existing brick is modified, make sure to regenerate the corresponding bundles via:
5562
5663``` bash
57- mason bundle bricks/ < BRICK-NAME > -t dart -o lib/templates
64+ ./scripts/build.sh
5865```
5966
60- This will generate a new bundle for ` <BRICK-NAME> ` under ` lib/templates ` .
61-
6267
6368## Credits
6469
65- This project was created with [ Dart Stagehand] ( https://github.com/dart-lang/stagehand ) .
70+ This project was created with [ Dart Stagehand] ( https://github.com/dart-lang/stagehand ) and uses [ Mason ] ( https://pub.dev/packages/mason ) for templating .
0 commit comments