Skip to content

Commit bf2cae7

Browse files
committed
+chore: Update readme and templates
1 parent 6239037 commit bf2cae7

27 files changed

+118
-161
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
## Changelog
2424

@@ -33,7 +33,7 @@ git init
3333
git add .
3434
git commit -m "Initial commit"
3535
gh repo create YOUR_PROJECT_NAME --public
36-
git remote add origin https://github.com/DevCetra/YOUR_PROJECT_NAME.git
36+
git remote add origin https://github.com/dev-cetera/YOUR_PROJECT_NAME.git
3737
git push -u origin main
3838
```
3939

@@ -54,7 +54,7 @@ git push -u origin main
5454

5555
```bash
5656
rm -rf .github/
57-
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
57+
git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github
5858
rm -rf .github/.git
5959
```
6060

@@ -71,6 +71,6 @@ find . -name '.DS_Store' -type f -delete
7171

7272
```bash
7373
rmdir /s /q .github/
74-
git clone https://github.com/DevCetra/pub.dev_package_workflow.git .github
74+
git clone https://github.com/dev-cetera/pub.dev_package_workflow.git .github
7575
rmdir /s /q .github/.git
7676
```

README.md

Lines changed: 12 additions & 12 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_screen.svg)](https://pub.dev/packages/df_generate_screen)
6-
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/robmllze/df_generate_screen/main/LICENSE)
6+
[![MIT License](https://img.shields.io/badge/License-MIT-blue.svg)](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/LICENSE)
77

88
---
99

@@ -14,7 +14,7 @@ A tool to generate ready-made screen templates for your Flutter app (uses df_gen
1414
## Usage Instructions
1515

1616
1. You do not need to add this package to your pubspec.yaml file.
17-
2. Activate the tool by running: `dart pub global activate df_generate_screen` or `dart pub global activate --source git https://github.com/DevCetra/df_generate_screen.git`.
17+
2. Activate the tool by running: `dart pub global activate df_generate_screen` or `dart pub global activate --source git https://github.com/dev-cetera/df_generate_screen.git`.
1818
3. Navigate to a folder in your project using the terminal (Tip: If you're using VS Code, you can right-click on a folder and select `"Open in Integrated Terminal"`).
1919
4. Run `genscr -n ExampleScreen` to generate a screen template called `ExampleScreen` at the current directory.
2020

@@ -26,7 +26,7 @@ This is an open-source project, and we warmly welcome contributions from everyon
2626

2727
### Ways you can contribute:
2828

29-
- **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.
29+
- **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.
3030
- **Share your ideas:** Every perspective matters, and your ideas can spark innovation.
3131
- **Report bugs:** Help us identify and fix issues to make the project more robust.
3232
- **Suggest improvements or new features:** Your ideas can help shape the future of the project.
@@ -35,20 +35,20 @@ This is an open-source project, and we warmly welcome contributions from everyon
3535

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

38-
---
38+
### Discord Server
39+
40+
Feel free to ask questions and engage with the community here: https://discord.gg/gEQ8y2nfyX
3941

40-
### Chief Maintainer:
42+
## Chief Maintainer:
4143

4244
📧 Email _Robert Mollentze_ at robmllze@gmail.com
4345

44-
### Dontations:
46+
## Dontations:
4547

4648
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:
4749

48-
https://www.buymeacoffee.com/robmllze
49-
50-
---
50+
https://www.buymeacoffee.com/dev_cetera
5151

5252
## License
5353

54-
This project is released under the MIT License. See [LICENSE](https://raw.githubusercontent.com/robmllze/df_generate_screen/main/LICENSE) for more information.
54+
This project is released under the MIT License. See [LICENSE](https://raw.githubusercontent.com/dev-cetera/df_generate_screen/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_screen.dart

Lines changed: 4 additions & 4 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
//
@@ -18,9 +18,9 @@ void main(List<String> args) async {
1818
await genScreenApp(
1919
args,
2020
defaultTemplates: const [
21-
'https://raw.githubusercontent.com/robmllze/df_generate_screen/main/templates/v1/_state.dart.md',
22-
'https://raw.githubusercontent.com/robmllze/df_generate_screen/main/templates/v1/widget.dart.md',
23-
'https://raw.githubusercontent.com/robmllze/df_generate_screen/main/templates/v1/_controller.dart.md',
21+
'https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/templates/v1/_state.dart.md',
22+
'https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/templates/v1/widget.dart.md',
23+
'https://raw.githubusercontent.com/dev-cetera/df_generate_screen/main/templates/v1/_controller.dart.md',
2424
],
2525
);
2626
}

0 commit comments

Comments
 (0)