Skip to content

Commit 9df1d2f

Browse files
committed
update
1 parent 24bae4d commit 9df1d2f

21 files changed

+62
-67
lines changed

.github/_README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ cd your_project
1818
**2. Clone this repo into a `.github/` folder:**
1919

2020
```zsh
21-
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
21+
git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github
2222
```
2323

2424
**3. Remove the `/.git` folder to include it to your project:**

.github/scripts/update_changelog.dart

Lines changed: 6 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//.title
22
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
//
4-
// Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
// Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
// source code is governed by an MIT-style license described in the LICENSE
66
// file located in this project's root directory.
77
//
@@ -56,15 +56,11 @@ Set<_VersionSection> extractSections(String contents) {
5656
final results = <_VersionSection>{};
5757
for (var i = 0; i < allVersionMatches.length; i++) {
5858
final start = allVersionMatches[i].end;
59-
final end = i + 1 < allVersionMatches.length
60-
? allVersionMatches[i + 1].start
61-
: contents.length;
59+
final end = i + 1 < allVersionMatches.length ? allVersionMatches[i + 1].start : contents.length;
6260
final sectionContents = contents.substring(start, end).trim();
63-
final lines =
64-
sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
65-
final version = allVersionMatches[i]
66-
.group(0)!
67-
.substring(4, allVersionMatches[i].group(0)!.length - 1);
61+
final lines = sectionContents.split('\n').where((line) => line.isNotEmpty).toList();
62+
final version =
63+
allVersionMatches[i].group(0)!.substring(4, allVersionMatches[i].group(0)!.length - 1);
6864
var releasedAt = DateTime.now().toUtc();
6965
final updates = <String>{};
7066
final old = lines
@@ -140,8 +136,7 @@ int compareVersions(String version1, String version2) {
140136
List<int> parseVersion(String version) {
141137
// Split by the '+' first to handle the build number
142138
final parts = version.split('+');
143-
final versionParts =
144-
parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
139+
final versionParts = parts[0].split('.').map(int.tryParse).map((e) => e ?? 0).toList();
145140
// Add the build number as the last part (if it exists)
146141
if (parts.length > 1) {
147142
versionParts.add(int.tryParse(parts[1]) ?? 0);

.github/workflows/prepare.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
## source code is governed by an MIT-style license described in the LICENSE
66
## file located in this project's root directory.
77
##
@@ -91,4 +91,4 @@ jobs:
9191
git config user.email github-actions@github.com
9292
git add .
9393
git commit -m "Prepare version ${{ steps.get_version.outputs.PUBSPEC_VERSION }}"
94-
git push
94+
git push

.github/workflows/publish.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
## source code is governed by an MIT-style license described in the LICENSE
66
## file located in this project's root directory.
77
##
@@ -25,4 +25,4 @@ jobs:
2525
publish:
2626
permissions:
2727
id-token: write
28-
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1
28+
uses: dart-lang/setup-dart/.github/workflows/publish.yml@v1

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
## source code is governed by an MIT-style license described in the LICENSE
66
## file located in this project's root directory.
77
##

.vscode/tasks.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
{
55
"label": "▶️ Refetch workflow",
66
"type": "shell",
7-
"command": "rm -rf .github && git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github && rm -rf .github/.git/"
7+
"command": "rm -rf .github && git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github && rm -rf .github/.git/"
88
},
99
{
1010
"label": "▶️ Publish to pub.dev",

DEVELOPER_NOTES.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818

1919
## Enabling GitHub Workflow
2020

21-
https://github.com/DevCetra/YOUR_PROJECT_NAME/settings/actions
21+
https://github.com/dev-cetera/YOUR_PROJECT_NAME/settings/actions
2222

2323
## Public Repo Setup
2424

@@ -29,7 +29,7 @@ git init
2929
git add .
3030
git commit -m "Initial commit"
3131
gh repo create df_generate_d --public
32-
git remote add origin https://github.com/DevCetra/YOUR_PROJECT_NAME.git
32+
git remote add origin https://github.com/dev-cetera/YOUR_PROJECT_NAME.git
3333
git push -u origin main
3434
```
3535

@@ -50,7 +50,7 @@ git push -u origin main
5050

5151
```bash
5252
rm -rf .github/
53-
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
53+
git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github
5454
rm -rf .github/.git
5555
```
5656

@@ -67,6 +67,6 @@ find . -name '.DS_Store' -type f -delete
6767

6868
```bash
6969
rmdir /s /q .github/
70-
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
70+
git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github
7171
rmdir /s /q .github/.git
7272
```

README.md

Lines changed: 13 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
<a href="https://www.buymeacoffee.com/robmllze" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
1+
<a href="https://www.buymeacoffee.com/dev_cetera" target="_blank"><img align="right" src="https://cdn.buymeacoffee.com/buttons/default-orange.png" alt="Buy Me A Coffee" height="41" width="174"></a>
22

3-
Dart & Flutter Packages by DevCetra.com & contributors.
3+
Dart & Flutter Packages by dev-cetera.com & contributors.
44

55
[![Pub Package](https://img.shields.io/pub/v/df_generate_dart_indexes.svg)](https://pub.dev/packages/df_generate_dart_indexes)
6-
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/robmllze/df_generate_dart_indexes/main/LICENSE)
6+
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/LICENSE)
77

88
---
99

@@ -25,14 +25,14 @@ Files that start with an underscore, files in folders that start with an undersc
2525

2626
### Generated File Example:
2727

28-
The file barrel file will look something like this, and is generated from [this default template file](https://github.com/DevCetra/df_generate_dart_indexes/blob/main/templates/template.dart.md):
28+
The file barrel file will look something like this, and is generated from [this default template file](https://github.com/dev-cetera/df_generate_dart_indexes/blob/main/templates/template.dart.md):
2929

3030
```dart
3131
//.title
3232
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3333
//
3434
// GENERATED - DO NOT MODIFY BY HAND
35-
// See: https://github.com/DevCetra/df_generate_dart_indexes
35+
// See: https://github.com/dev-cetera/df_generate_dart_indexes
3636
//
3737
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
3838
//.title~
@@ -51,7 +51,7 @@ This is an open-source project, and we warmly welcome contributions from everyon
5151

5252
### Ways you can contribute:
5353

54-
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/robmllze). Your support helps cover the costs of development and keeps the project growing.
54+
- **Buy me a coffee:** If you'd like to support the project financially, consider [buying me a coffee](https://www.buymeacoffee.com/dev_cetera). Your support helps cover the costs of development and keeps the project growing.
5555
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
5656
- **Report bugs:** Help us identify and fix issues to make the project more robust.
5757
- **Suggest improvements or new features:** Your ideas can help shape the future of the project.
@@ -60,20 +60,20 @@ This is an open-source project, and we warmly welcome contributions from everyon
6060

6161
No matter how you choose to contribute, your involvement is greatly appreciated and valued!
6262

63-
---
63+
### Discord Server
64+
65+
Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX
6466

65-
### Chief Maintainer:
67+
## Chief Maintainer:
6668

6769
📧 Email _Robert Mollentze_ at robmllze@gmail.com
6870

69-
### Dontations:
71+
## Dontations:
7072

7173
If you're enjoying this package and find it valuable, consider showing your appreciation with a small donation. Every bit helps in supporting future development. You can donate here:
7274

73-
https://www.buymeacoffee.com/robmllze
74-
75-
---
75+
https://www.buymeacoffee.com/dev_cetera
7676

7777
## License
7878

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

analysis_options.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
##.title
22
## ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
##
4-
## Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
## Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
## source code is governed by an MIT-style license described in the LICENSE
66
## file located in this project's root directory.
77
##

bin/gen_indexes.dart

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
//.title
22
// ▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓▓
33
//
4-
// Dart/Flutter (DF) Packages by DevCetra.com & contributors. The use of this
4+
// Dart/Flutter (DF) Packages by dev-cetera.com & contributors. The use of this
55
// source code is governed by an MIT-style license described in the LICENSE
66
// file located in this project's root directory.
77
//
@@ -17,7 +17,7 @@ import 'package:df_generate_dart_indexes/df_generate_dart_indexes.dart';
1717
void main(
1818
List<String> args, {
1919
List<String> defaultTemplates = const [
20-
'https://raw.githubusercontent.com/robmllze/df_generate_dart_indexes/main/templates/_index.g.dart.md',
20+
'https://raw.githubusercontent.com/dev-cetera/df_generate_dart_indexes/main/templates/_index.g.dart.md',
2121
],
2222
}) async {
2323
await genIndexes(

0 commit comments

Comments
 (0)