Skip to content
This repository has been archived by the owner on May 31, 2021. It is now read-only.

Commit

Permalink
Upgrade to Dart 2.7 (#645)
Browse files Browse the repository at this point in the history
* Add changelog entry for 3.3.5
  • Loading branch information
domesticmouse authored and kwalrath committed Dec 13, 2019
1 parent 5cbc172 commit 0c1f323
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 18 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ dart:
# SDK version to prevent errors when using Stagehand from inside VSCode's
# Dart and Flutter plugins. For more detail, please see:
# https://github.com/dart-lang/stagehand/issues/617
- 2.5.0
- 2.7.0
- dev

cache:
Expand Down
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
## 3.3.5

- Updated minimum Dart SDK to 2.7 in stagehand tool and templates.

## 3.3.5-dev

- Internal cleanup.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/generators/console_full.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/generators/package_simple.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/generators/server_shelf.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/generators/web_angular.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/generators/web_simple.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/generators/web_stagexl.g.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion lib/src/version.dart

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ description: >
A scaffolding generator for your Dart projects. Stagehand helps you get set
up!
# After changing the version, run `pub run build_runner build`.
version: 3.3.5-dev
version: 3.3.5
homepage: https://github.com/dart-lang/stagehand

environment:
Expand All @@ -17,7 +17,7 @@ environment:
# https://github.com/dart-lang/stagehand/issues/617
#
# Also make sure this minimmum sdk version is reflected in `.travis.yml`.
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

# Add the bin/stagehand.dart script to the scripts pub installs.
executables:
Expand All @@ -27,7 +27,7 @@ dependencies:
args: ^1.5.0
http: ^0.12.0
path: ^1.6.0
pedantic: ^1.8.0
pedantic: ^1.9.0
usage: ^3.4.0

dev_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion templates/console-full/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A sample command-line application.
# homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

#dependencies:
# path: ^1.6.0
Expand Down
2 changes: 1 addition & 1 deletion templates/package-simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A starting point for Dart libraries or applications.
# homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

#dependencies:
# path: ^1.6.0
Expand Down
2 changes: 1 addition & 1 deletion templates/server-shelf/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A web server built using the shelf package.
# homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

dependencies:
args: ^1.5.0
Expand Down
2 changes: 1 addition & 1 deletion templates/web-angular/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A web app that uses AngularDart Components
# homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

dependencies:
angular: ^5.3.0
Expand Down
2 changes: 1 addition & 1 deletion templates/web-simple/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: An absolute bare-bones web app.
#homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

#dependencies:
# path: ^1.6.0
Expand Down
2 changes: 1 addition & 1 deletion templates/web-stagexl/pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ description: A simple StageXL web app.
#homepage: https://www.example.com

environment:
sdk: '>=2.5.0 <3.0.0'
sdk: '>=2.7.0 <3.0.0'

dependencies:
stagexl: ^1.4.0
Expand Down
2 changes: 1 addition & 1 deletion test/validate_templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ void _testGenerator(stagehand.Generator generator, Directory tempDir) {
expect(pubspecContent, containsPair('description', isNotEmpty));

expect(
pubspecContent, containsPair('environment', {'sdk': '>=2.5.0 <3.0.0'}));
pubspecContent, containsPair('environment', {'sdk': '>=2.7.0 <3.0.0'}));

// Run package tests, if `test` is included.
var devDeps = pubspecContent['dev_dependencies'];
Expand Down

0 comments on commit 0c1f323

Please sign in to comment.