https://github.com/treeinfra/manifest
A command line tool to generate Dart package manifest from pubspec.yaml.
https://github.com/treeinfra/manifest
cli dart flutter gen manifest
Last synced: 8 months ago
JSON representation
A command line tool to generate Dart package manifest from pubspec.yaml.
- Host: GitHub
- URL: https://github.com/treeinfra/manifest
- Owner: treeinfra
- License: mit
- Created: 2024-06-27T00:31:14.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-06-28T12:35:33.000Z (over 1 year ago)
- Last Synced: 2025-01-04T18:12:13.794Z (9 months ago)
- Topics: cli, dart, flutter, gen, manifest
- Language: Dart
- Homepage:
- Size: 14.6 KB
- Stars: 1
- Watchers: 0
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# Manifest
A command line tool to generate Dart package manifest from pubspec.yaml.
## How to use
Run the following code in your project root directory,
and it will generate `lib/manifest.dart` according to your `pubspec.yaml`.```sh
dart run manifest -o lib/manifest.dart
```The output file will only contain a `const` with the manifest data,
and you can call it like this:```dart
import 'package:manifest/manifest.dart';
import 'manifest.dart';void main() {
print('${manifest.name}: ${manifest.version}');
}
```