mirror of
https://github.com/dart-lang/sdk
synced 2024-11-02 06:20:13 +00:00
[dartdev] tweak the pubspec file generation for 'dart create'
Change-Id: I769ef258b9875aeeb23bc9aeca396bc9594197d4 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/232980 Auto-Submit: Devon Carew <devoncarew@google.com> Reviewed-by: Ben Konyi <bkonyi@google.com> Commit-Queue: Ben Konyi <bkonyi@google.com>
This commit is contained in:
parent
1e799e1580
commit
bd5da72538
6 changed files with 6 additions and 8 deletions
|
@ -4,9 +4,7 @@
|
|||
|
||||
import '../sdk.dart';
|
||||
|
||||
String get sdkConstraint => '''
|
||||
sdk: '>=${sdk.version} <3.0.0'
|
||||
''';
|
||||
String get sdkConstraint => "sdk: '>=${sdk.version} <3.0.0'";
|
||||
|
||||
const String gitignore = '''
|
||||
# Files and directories created by pub.
|
||||
|
|
|
@ -38,7 +38,7 @@ version: 1.0.0
|
|||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
${common.sdkConstraint}
|
||||
${common.sdkConstraint}
|
||||
|
||||
# dependencies:
|
||||
# path: ^1.8.0
|
||||
|
|
|
@ -36,7 +36,7 @@ version: 1.0.0
|
|||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
${common.sdkConstraint}
|
||||
${common.sdkConstraint}
|
||||
|
||||
# dependencies:
|
||||
# path: ^1.8.0
|
||||
|
|
|
@ -55,7 +55,7 @@ version: 1.0.0
|
|||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
${common.sdkConstraint}
|
||||
${common.sdkConstraint}
|
||||
|
||||
# dependencies:
|
||||
# path: ^1.8.0
|
||||
|
|
|
@ -42,7 +42,7 @@ version: 1.0.0
|
|||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
${common.sdkConstraint}
|
||||
${common.sdkConstraint}
|
||||
|
||||
dependencies:
|
||||
args: ^2.0.0
|
||||
|
|
|
@ -42,7 +42,7 @@ version: 1.0.0
|
|||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
${common.sdkConstraint}
|
||||
${common.sdkConstraint}
|
||||
|
||||
# dependencies:
|
||||
# path: ^1.7.0
|
||||
|
|
Loading…
Reference in a new issue