Skip to content

Commit 9470f51

Browse files
ci: bump version to v0.6.0
1 parent 875fcc0 commit 9470f51

File tree

3 files changed

+14
-5
lines changed

3 files changed

+14
-5
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## [0.6.0]
4+
5+
- Released @ 7/2025 (UTC)
6+
- Clean and refactor
7+
38
## [0.5.15]
49

510
- Released @ 6/2025 (UTC)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Dart & Flutter Packages by dev-cetera.com & contributors.
66
[![sponsor](https://img.shields.io/badge/sponsor-grey?logo=github-sponsors)](https://github.com/sponsors/dev-cetera)
77
[![patreon](https://img.shields.io/badge/patreon-grey?logo=patreon)](https://www.patreon.com/c/RobertMollentze)
88
[![pub](https://img.shields.io/pub/v/df_generate_dart_indexes.svg)](https://pub.dev/packages/df_generate_dart_indexes)
9-
[![tag](https://img.shields.io/badge/tag-v0.5.18-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.5.18)
9+
[![tag](https://img.shields.io/badge/tag-v0.6.0-purple?logo=github)](https://github.com/dev-cetera/df_generate_dart_indexes/tree/v0.6.0)
1010
[![license](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE)
1111

1212
---
@@ -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 `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.
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`.
2727

2828
### Note:
2929

lib/src/generate_dart_indexes.dart

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -120,14 +120,18 @@ Future<void> generateDartIndexes(
120120
final fileName = p
121121
.basename(entry.key)
122122
.replaceAll('.md', '')
123-
.replaceAll('{basename}', inputBasename.replaceFirst(RegExp(r'^_+'), ''));
123+
.replaceAll(
124+
'{basename}',
125+
inputBasename.replaceFirst(RegExp(r'^_+'), ''),
126+
);
124127
final template = entry.value;
125128
final skipPath = p.join(inputPath, fileName);
126129
// ignore: invalid_use_of_internal_member
127130
final data = template.replaceData({
128131
'___PUBLIC_EXPORTS___': _publicExports(
129132
inputPath,
130-
findings.map((e) => e.path).where((e) => e != skipPath).toList()..sort(),
133+
findings.map((e) => e.path).where((e) => e != skipPath).toList()
134+
..sort(),
131135
(e) => true,
132136
(e) {
133137
final unixPath = p.split(e).join('/');

0 commit comments

Comments
 (0)