Skip to content

Commit c19be9f

Browse files
committed
+Clean and refactor
1 parent 9470f51 commit c19be9f

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ A tool to generate index/exports files also known as barrel files for all Dart f
2222
1. No need to add this package to your `pubspec.yaml`.
2323
2. Activate it by running: `dart pub global activate df_generate_dart_indexes`.
2424
3. In your project, open a terminal in the desired folder (Tip: In VS Code, right-click a folder and select `"Open in Integrated Terminal"`).
25-
4. Run gen-indexes to create an `_index.g.dart` file at the current location. Alternatively, use `gen-barrel` to generate a barrel file matching the folder’s base name, e.g. `_src.g.dart` or `_widgets.g.dart`.
26-
5. Bonus: You can also generate TypeScript index files by running `gen-indexes-ts`.
25+
4. Run `df_generate_dart_indexes` to generate a barrel file matching the folder’s base name, e.g. `_src.g.dart` or `_widgets.g.dart`.
26+
5. Bonus: You can also generate TypeScript index files by running `df_generate_dart_indexes_ts`. This is mainly focused on Dart. Other langauges not yet supported.
2727

2828
### Note:
2929

@@ -49,6 +49,7 @@ export './widgets/my_button.dart';
4949
export './widgets/my_title_text.dart';
5050
```
5151

52+
5253
<!-- END _README_CONTENT -->
5354

5455
---
@@ -83,3 +84,4 @@ If you're enjoying this package and find it valuable, consider showing your appr
8384
## 🧑‍⚖️ License
8485

8586
This project is released under the [MIT License](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE). See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE) for more information.
87+

_README_CONTENT.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,8 @@ A tool to generate index/exports files also known as barrel files for all Dart f
77
1. No need to add this package to your `pubspec.yaml`.
88
2. Activate it by running: `dart pub global activate df_generate_dart_indexes`.
99
3. In your project, open a terminal in the desired folder (Tip: In VS Code, right-click a folder and select `"Open in Integrated Terminal"`).
10-
4. Run gen-indexes to create an `_index.g.dart` file at the current location. Alternatively, use `gen-barrel` to generate a barrel file matching the folder’s base name, e.g. `_src.g.dart` or `_widgets.g.dart`.
11-
5. Bonus: You can also generate TypeScript index files by running `gen-indexes-ts`.
10+
4. Run `df_generate_dart_indexes` to generate a barrel file matching the folder’s base name, e.g. `_src.g.dart` or `_widgets.g.dart`.
11+
5. Bonus: You can also generate TypeScript index files by running `df_generate_dart_indexes_ts`. This is mainly focused on Dart. Other langauges not yet supported.
1212

1313
### Note:
1414

@@ -32,4 +32,4 @@ export './screens/welcome_screen/widget.dart';
3232
export './screens/home_screen/widget.dart';
3333
export './widgets/my_button.dart';
3434
export './widgets/my_title_text.dart';
35-
```
35+
```

0 commit comments

Comments
 (0)