Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Who should be credited as an author in pubspec.yaml?

Can't find any information about this.
Is it the creator of the project, all contributors who had their code merged or all contributors who have a certain amount of code in the project?

Consider a code base of 500 lines, and the following contributors:

name: my_package
description: A Widget that does everything.
authors:
- Creator <[email protected]> #500 lines
- Contributor1 <[email protected]> #1000 lines
- Contributor2 <[email protected]> #100 lines
- Contributor3 <[email protected]> #10 lines
- Contributor4 <[email protected]> #1 lines

homepage: https://github.com/me/my_package
version: 1.2.0

Which contributors belong in authors?

like image 937
Joel Broström Avatar asked Mar 18 '19 18:03

Joel Broström


People also ask

How do I change my name in Pubspec yaml?

Open <flutter project> / pubspec. yaml under this file look for dev_dependencies : section, just below it add change app package name, as shown in below screenshot.

What is the Pubspec yaml file and what does it do?

The pubspec is written in YAML, which is human readable, but be aware that white space (tabs v spaces) matters. The pubspec file specifies dependencies that the project requires, such as particular packages (and their versions), fonts, or image files.

What is a Pubspec yaml file in Dart?

The pubspec. yaml file is transversal to all apps and packages - it is where we add metadata to our project, stipulate the Dart and Flutter SDK constraints, manage the dependencies and also set Flutter-specific configurations.


1 Answers

It's common to have all people who contributed anything listed, even fixes to typos in README or code files, but it's completely up to the project owner.

It's probably a good idea to add a CONTRIBUTING.md file to your project and mention the rules you want to apply to your project. You could also mention that people who are interested include themselves to authors in pubspec.yaml so you don't need to maintain it yourself.

like image 151
Günter Zöchbauer Avatar answered Sep 28 '22 09:09

Günter Zöchbauer