You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+33-2Lines changed: 33 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -53,8 +53,10 @@ Please read [CONTRIBUTING](CONTRIBUTING.md) for details on the process for contr
53
53
54
54
Be mindful of our [Code of Conduct](CODE_OF_CONDUCT.md).
55
55
56
+
### Application Template
57
+
56
58
To debug the app from within the template, run the following commands:
57
-
1.First, go to the Flutter app directory.
59
+
1.Go to the Flutter app directory.
58
60
```ps
59
61
cd src/app
60
62
```
@@ -64,9 +66,38 @@ To debug the app from within the template, run the following commands:
64
66
```
65
67
1. Run the code generators.
66
68
```ps
67
-
dart run build_runner build
69
+
dart run build_runner build --delete-conflicting-outputs
68
70
```
69
71
1. Build and run the application.
70
72
```ps
71
73
flutter run
72
74
```
75
+
76
+
### Command Line Interface
77
+
78
+
To debug the CLI, do the following:
79
+
80
+
1. Go to the CLI directory.
81
+
```ps
82
+
cd src/cli
83
+
```
84
+
1. Restore the packages.
85
+
```ps
86
+
flutter pub get
87
+
```
88
+
1. Run the code generators.
89
+
```ps
90
+
dart run build_runner build --delete-conflicting-outputs
91
+
```
92
+
1. Set the variables value in `src/cli/lib/src/commands/create_command.dart` that would normally be done by the Pipeline
93
+
-`_commitHash`
94
+
-`_shortCommitHash`
95
+
-`_versionNumber`
96
+
-`_commitDate`
97
+
> 💡 You have to set real values, you should probably use the latest commit information or your own commit from your branch.
98
+
> 💡 If you click [here](https://github.com/nventive/FlutterApplicationTemplate/commit/d3391444b8e2503e7c7bf27c12b6283062aa0a1c), you have the commit hash in the URL, and the short one is displayed at the top right of the page `commit d339144`.
99
+
> 💡 The date can be any string of any format, it's just displayed, e.g. `2025-02-06`.
100
+
> 💡 The version number should be {Major.Minor.Patch}, e.g. `2.4.1`.
101
+
1. Move the `README.md` into `src/cli` folder
102
+
1.`dart pub global activate --source=path {Full Path}/src/cli`
103
+
> 💡 If you already have the CLI installed, you can use the `--overwrite` flag, but don't forget to reinstall it properly when you are done using `dart pub global activate flutter_application_generator --overwrite`.
0 commit comments