sort_pubspec_dependencies
pubspec.yaml में निर्भरताओं और विकास निर्भरताओं को क्रमबद्ध करने के लिए डेव डार्ट पैकेज
pubspec.yaml में निर्भरताओं और विकास निर्भरताओं को क्रमबद्ध करने के लिए डेव डार्ट पैकेज
यह अंग्रेज़ी मूल स्नैपशॉट है। नवीनतम सामग्री GitHub पर देखें।
A Dart CLI tool for sorting dependencies in your pubspec.yaml file.
Keep your pubspec.yaml organized by alphabetically sorting dependencies: and dev_dependencies:. This tool ensures better readability and consistency across projects.
dependencies and dev_dependencies alphabetically.Add sort_pubspec_dependencies as a dev dependency in your project:
dev_dependencies:
sort_pubspec_dependencies: <latest-version>
Run the tool locally
dart run sort_pubspec_dependencies
You can create a sort_dependencies.yaml config in the root of your project for:
pubspec.yaml is located outside the main project directory, you can explicitly specify the path to it using the key: pubspecPathflutter pub get after sorting, set the value true to the key needRunPubGetAfterSortingThe sort_dependencies.yaml example:
pubspecPath: 'pubspec.yaml'
needRunPugGetAfterSorting: true
Also, you can run the tool via dart run sort_pubspec_dependencies --pubspec-path=<path>/p=<path> --with-run-pub-get to avoid creating a config and get the same effect
Feel free to modify this template to suit your preferences or project needs
Also, you can open issues with a description of the problem if you find unexpected behavior
उपयोग के अनुसार छाँटें, गतिविधि की तुलना करें और अपनाने से पहले मूल प्रोजेक्ट की आवश्यकताएँ जाँचें।
“A repository is the most basic element of GitHub.”
GitHub Docs — About repositories ↗