This commit is contained in:
thosakwe 2017-03-24 16:27:01 -04:00
parent afca3b0752
commit ac181b2242
4 changed files with 4 additions and 3 deletions

View file

@ -4,7 +4,7 @@ library demon.tool;
import "dart:io"; import "dart:io";
import "package:args/command_runner.dart"; import "package:args/command_runner.dart";
import 'package:angel_cli/angel_cli.dart'; import 'package:angel_cli/angel_cli.dart';
import 'package:angel_cli/pubspec.update.g.dart'; import 'package:angel_cli/pubspec.dart';
import 'package:console/console.dart'; import 'package:console/console.dart';
import 'package:http/http.dart' as http; import 'package:http/http.dart' as http;

1
lib/pubspec.dart Normal file
View file

@ -0,0 +1 @@
export 'src/pubspec.update.g.dart';

View file

@ -3,7 +3,7 @@ import 'dart:convert';
import 'package:http/src/base_client.dart' as http; import 'package:http/src/base_client.dart' as http;
import 'package:pub_semver/pub_semver.dart'; import 'package:pub_semver/pub_semver.dart';
final Version PACKAGE_VERSION = new Version(1, 0, 6); final Version PACKAGE_VERSION = new Version(1, 0, 7);
Future<Version> fetchCurrentVersion(http.BaseClient client) async { Future<Version> fetchCurrentVersion(http.BaseClient client) async {
var response = var response =
await client.get('https://pub.dartlang.org/api/packages/angel_cli'); await client.get('https://pub.dartlang.org/api/packages/angel_cli');

View file

@ -2,5 +2,5 @@ import 'package:build_runner/build_runner.dart';
import 'package:check_for_update/builder.dart'; import 'package:check_for_update/builder.dart';
final PhaseGroup phaseGroup = new PhaseGroup.singleAction( final PhaseGroup phaseGroup = new PhaseGroup.singleAction(
new CheckForUpdateBuilder(subDirectory: 'lib'), new CheckForUpdateBuilder(subDirectory: 'lib/src'),
new InputSet('angel_cli', const ['pubspec.yaml'])); new InputSet('angel_cli', const ['pubspec.yaml']));