Skip to content

Latest commit

 

History

History
24 lines (17 loc) · 526 Bytes

README.md

File metadata and controls

24 lines (17 loc) · 526 Bytes

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.

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:

import 'package:manifest/manifest.dart';
import 'manifest.dart';

void main() {
  print('${manifest.name}: ${manifest.version}');
}