From 2854b28ec2b56f574ef9871f2e57bf3b21b55cf6 Mon Sep 17 00:00:00 2001 From: Tobe O Date: Thu, 19 Oct 2017 21:08:40 -0400 Subject: [PATCH] +1 --- lib/src/commands/install.dart | 21 +++++++++++++++++---- lib/src/commands/pubspec.update.g.dart | 2 +- pubspec.yaml | 2 +- 3 files changed, 19 insertions(+), 6 deletions(-) diff --git a/lib/src/commands/install.dart b/lib/src/commands/install.dart index 3f2721c..b2097c6 100644 --- a/lib/src/commands/install.dart +++ b/lib/src/commands/install.dart @@ -121,12 +121,25 @@ class InstallCommand extends Command { } } - var deps = projectPubspec.dependencies.keys.map((k) { - var dep = projectPubspec.dependencies[k]; + var deps = projectPubspec.dependencies.keys + .map((k) { + var dep = projectPubspec.dependencies[k]; + if (dep is HostedReference) + return new MakerDependency( + k, dep.versionConstraint.toString()); + return null; + }) + .where((d) => d != null) + .toList(); + + deps.addAll(projectPubspec.devDependencies.keys.map((k) { + var dep = projectPubspec.devDependencies[k]; if (dep is HostedReference) - return new MakerDependency(k, dep.versionConstraint.toString()); + return new MakerDependency(k, dep.versionConstraint.toString(), + dev: true); return null; - }).where((d) => d != null); + }).where((d) => d != null)); + await depend(deps); } diff --git a/lib/src/commands/pubspec.update.g.dart b/lib/src/commands/pubspec.update.g.dart index 89067c0..a4c53ba 100644 --- a/lib/src/commands/pubspec.update.g.dart +++ b/lib/src/commands/pubspec.update.g.dart @@ -3,7 +3,7 @@ import 'dart:convert'; import 'package:http/src/base_client.dart' as http; import 'package:pub_semver/pub_semver.dart'; -final Version PACKAGE_VERSION = new Version(1, 2, 0); +final Version PACKAGE_VERSION = new Version(1, 2, 0, build: '1'); Future fetchCurrentVersion(http.BaseClient client) async { var response = await client.get('https://pub.dartlang.org/api/packages/angel_cli'); diff --git a/pubspec.yaml b/pubspec.yaml index 3da2768..50231b9 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -2,7 +2,7 @@ author: "Tobe O " description: "Command-line tools for the Angel framework." homepage: "https://github.com/angel-dart/angel_cli" name: "angel_cli" -version: 1.2.0 +version: 1.2.0+1 dependencies: # analyzer: "^0.29.0" args: ^0.13.4