diff --git a/.travis.yml b/.travis.yml index cb44f239..50fcd003 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,7 +5,7 @@ language: dart sudo: required dart: - - 2.2.0 + - 2.4.0 - dev cache: diff --git a/CHANGELOG.md b/CHANGELOG.md index 832abf6c..f48e81fa 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +## 3.3.2 + +- Updated minimum Dart SDK to 2.4, except `flutter_web_preview`. + +- Updated dependency versions across all templates. + ## 3.3.1 - `server-shelf` template updated to make it easy to use with diff --git a/README.md b/README.md index 7f3e8163..7832721e 100644 --- a/README.md +++ b/README.md @@ -69,7 +69,7 @@ Please file reports on the ## Contributing Contributions welcome! Please read this short -[guide](https://github.com/dart-lang/stagehand/wiki/Contributing) first. +[guide](https://github.com/dart-lang/stagehand/blob/master/CONTRIBUTING.md) first. ## Analytics and crash reports diff --git a/analysis_options.yaml b/analysis_options.yaml index 7fc9fb81..260b92f1 100644 --- a/analysis_options.yaml +++ b/analysis_options.yaml @@ -1,4 +1,4 @@ -include: package:pedantic/analysis_options.yaml +include: package:pedantic/analysis_options.1.7.0.yaml analyzer: exclude: - 'templates/**' diff --git a/lib/src/generators/console_full.g.dart b/lib/src/generators/console_full.g.dart index 2cfc6539..2d07717c 100644 --- a/lib/src/generators/console_full.g.dart +++ b/lib/src/generators/console_full.g.dart @@ -51,8 +51,8 @@ J0hlbGxvIHdvcmxkOiAke19fcHJvamVjdE5hbWVfXy5jYWxjdWxhdGUoKX0hJyk7Cn0K''', bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHNhbXBsZSBjb21tYW5kLWxpbmUg YXBwbGljYXRpb24uCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFnZTogaHR0cHM6Ly93d3cuZXhh bXBsZS5jb20KIyBhdXRob3I6IF9fYXV0aG9yX18gPF9fZW1haWxfXz4KCmVudmlyb25tZW50Ogog -IHNkazogJz49Mi4yLjAgPDMuMC4wJwoKI2RlcGVuZGVuY2llczoKIyAgcGF0aDogXjEuNC4xCgpk -ZXZfZGVwZW5kZW5jaWVzOgogIHBlZGFudGljOiBeMS4wLjAKICB0ZXN0OiBeMS4wLjAK''', +IHNkazogJz49Mi40LjAgPDMuMC4wJwoKI2RlcGVuZGVuY2llczoKIyAgcGF0aDogXjEuNi4wCgpk +ZXZfZGVwZW5kZW5jaWVzOgogIHBlZGFudGljOiBeMS43LjAKICB0ZXN0OiBeMS41LjAK''', 'test/__projectName___test.dart', 'text', ''' diff --git a/lib/src/generators/flutter_web_preview.g.dart b/lib/src/generators/flutter_web_preview.g.dart index 8a731be2..369650b6 100644 --- a/lib/src/generators/flutter_web_preview.g.dart +++ b/lib/src/generators/flutter_web_preview.g.dart @@ -72,14 +72,14 @@ Zm9ybWF0dGluZyBuaWNlciBmb3IgYnVpbGQgbWV0aG9kcy4KICAgICk7CiAgfQp9Cg==''', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBbiBhcHAgYnVpbHQgdXNpbmcgRmx1 dHRlciBmb3Igd2ViCgplbnZpcm9ubWVudDoKICAjIFlvdSBtdXN0IGJlIHVzaW5nIEZsdXR0ZXIg -Pj0xLjUuMCBvciBEYXJ0ID49Mi4zLjAKICBzZGs6ICc+PTIuMy4wLWRldi4wLjEgPDMuMC4wJwoK -ZGVwZW5kZW5jaWVzOgogIGZsdXR0ZXJfd2ViOiBhbnkKICBmbHV0dGVyX3dlYl91aTogYW55Cgpk -ZXZfZGVwZW5kZW5jaWVzOgogIGJ1aWxkX3J1bm5lcjogXjEuNC4wCiAgYnVpbGRfd2ViX2NvbXBp -bGVyczogXjIuMC4wCiAgcGVkYW50aWM6IF4xLjAuMAoKZGVwZW5kZW5jeV9vdmVycmlkZXM6CiAg -Zmx1dHRlcl93ZWI6CiAgICBnaXQ6CiAgICAgIHVybDogaHR0cHM6Ly9naXRodWIuY29tL2ZsdXR0 -ZXIvZmx1dHRlcl93ZWIKICAgICAgcGF0aDogcGFja2FnZXMvZmx1dHRlcl93ZWIKICBmbHV0dGVy -X3dlYl91aToKICAgIGdpdDoKICAgICAgdXJsOiBodHRwczovL2dpdGh1Yi5jb20vZmx1dHRlci9m -bHV0dGVyX3dlYgogICAgICBwYXRoOiBwYWNrYWdlcy9mbHV0dGVyX3dlYl91aQo=''', +Pj0xLjUuMCBvciBEYXJ0ID49Mi4zLjAKICBzZGs6ICc+PTIuMy4wIDwzLjAuMCcKCmRlcGVuZGVu +Y2llczoKICBmbHV0dGVyX3dlYjogYW55CiAgZmx1dHRlcl93ZWJfdWk6IGFueQoKZGV2X2RlcGVu +ZGVuY2llczoKICBidWlsZF9ydW5uZXI6IF4xLjUuMAogIGJ1aWxkX3dlYl9jb21waWxlcnM6IF4y +LjEuMAogIHBlZGFudGljOiBeMS43LjAKCmRlcGVuZGVuY3lfb3ZlcnJpZGVzOgogIGZsdXR0ZXJf +d2ViOgogICAgZ2l0OgogICAgICB1cmw6IGh0dHBzOi8vZ2l0aHViLmNvbS9mbHV0dGVyL2ZsdXR0 +ZXJfd2ViCiAgICAgIHBhdGg6IHBhY2thZ2VzL2ZsdXR0ZXJfd2ViCiAgZmx1dHRlcl93ZWJfdWk6 +CiAgICBnaXQ6CiAgICAgIHVybDogaHR0cHM6Ly9naXRodWIuY29tL2ZsdXR0ZXIvZmx1dHRlcl93 +ZWIKICAgICAgcGF0aDogcGFja2FnZXMvZmx1dHRlcl93ZWJfdWkK''', 'web/index.html', 'text', ''' diff --git a/lib/src/generators/package_simple.g.dart b/lib/src/generators/package_simple.g.dart index b84756c2..ccc6bed1 100644 --- a/lib/src/generators/package_simple.g.dart +++ b/lib/src/generators/package_simple.g.dart @@ -66,9 +66,9 @@ IGJvb2wgZ2V0IGlzQXdlc29tZSA9PiB0cnVlOwp9Cg==''', bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHN0YXJ0aW5nIHBvaW50IGZvciBE YXJ0IGxpYnJhcmllcyBvciBhcHBsaWNhdGlvbnMuCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFn ZTogaHR0cHM6Ly93d3cuZXhhbXBsZS5jb20KIyBhdXRob3I6IF9fYXV0aG9yX18gPF9fZW1haWxf -Xz4KCmVudmlyb25tZW50OgogIHNkazogJz49Mi4yLjAgPDMuMC4wJwoKI2RlcGVuZGVuY2llczoK -IyAgcGF0aDogXjEuNC4xCgpkZXZfZGVwZW5kZW5jaWVzOgogIHBlZGFudGljOiBeMS4wLjAKICB0 -ZXN0OiBeMS4wLjAK''', +Xz4KCmVudmlyb25tZW50OgogIHNkazogJz49Mi40LjAgPDMuMC4wJwoKI2RlcGVuZGVuY2llczoK +IyAgcGF0aDogXjEuNi4wCgpkZXZfZGVwZW5kZW5jaWVzOgogIHBlZGFudGljOiBeMS43LjAKICB0 +ZXN0OiBeMS42LjAK''', 'test/__projectName___test.dart', 'text', ''' diff --git a/lib/src/generators/server_shelf.g.dart b/lib/src/generators/server_shelf.g.dart index 4d3f5d5a..89e06fc2 100644 --- a/lib/src/generators/server_shelf.g.dart +++ b/lib/src/generators/server_shelf.g.dart @@ -49,22 +49,22 @@ ZShhcmdzKTsKCiAgLy8gRm9yIEdvb2dsZSBDbG91ZCBSdW4sIHdlIHJlc3BlY3QgdGhlIFBPUlQg ZW52aXJvbm1lbnQgdmFyaWFibGUKICB2YXIgcG9ydFN0ciA9IHJlc3VsdFsncG9ydCddID8/IFBs YXRmb3JtLmVudmlyb25tZW50WydQT1JUJ10gPz8gJzgwODAnOwogIHZhciBwb3J0ID0gaW50LnRy eVBhcnNlKHBvcnRTdHIpOwoKICBpZiAocG9ydCA9PSBudWxsKSB7CiAgICBzdGRvdXQud3JpdGVs -bigKICAgICAgICAnQ291bGQgbm90IHBhcnNlIHBvcnQgdmFsdWUgIiRwb3J0U3RyIiBpbnRvIGEg -bnVtYmVyLicpOwogICAgLy8gNjQ6IGNvbW1hbmQgbGluZSB1c2FnZSBlcnJvcgogICAgZXhpdENv -ZGUgPSA2NDsKICAgIHJldHVybjsKICB9CgogIHZhciBoYW5kbGVyID0gY29uc3Qgc2hlbGYuUGlw -ZWxpbmUoKQogICAgICAuYWRkTWlkZGxld2FyZShzaGVsZi5sb2dSZXF1ZXN0cygpKQogICAgICAu -YWRkSGFuZGxlcihfZWNob1JlcXVlc3QpOwoKICB2YXIgc2VydmVyID0gYXdhaXQgaW8uc2VydmUo -aGFuZGxlciwgX2hvc3RuYW1lLCBwb3J0KTsKICBwcmludCgnU2VydmluZyBhdCBodHRwOi8vJHtz -ZXJ2ZXIuYWRkcmVzcy5ob3N0fToke3NlcnZlci5wb3J0fScpOwp9CgpzaGVsZi5SZXNwb25zZSBf -ZWNob1JlcXVlc3Qoc2hlbGYuUmVxdWVzdCByZXF1ZXN0KSA9PgogICAgc2hlbGYuUmVzcG9uc2Uu -b2soJ1JlcXVlc3QgZm9yICIke3JlcXVlc3QudXJsfSInKTsK''', +bignQ291bGQgbm90IHBhcnNlIHBvcnQgdmFsdWUgIiRwb3J0U3RyIiBpbnRvIGEgbnVtYmVyLicp +OwogICAgLy8gNjQ6IGNvbW1hbmQgbGluZSB1c2FnZSBlcnJvcgogICAgZXhpdENvZGUgPSA2NDsK +ICAgIHJldHVybjsKICB9CgogIHZhciBoYW5kbGVyID0gY29uc3Qgc2hlbGYuUGlwZWxpbmUoKQog +ICAgICAuYWRkTWlkZGxld2FyZShzaGVsZi5sb2dSZXF1ZXN0cygpKQogICAgICAuYWRkSGFuZGxl +cihfZWNob1JlcXVlc3QpOwoKICB2YXIgc2VydmVyID0gYXdhaXQgaW8uc2VydmUoaGFuZGxlciwg +X2hvc3RuYW1lLCBwb3J0KTsKICBwcmludCgnU2VydmluZyBhdCBodHRwOi8vJHtzZXJ2ZXIuYWRk +cmVzcy5ob3N0fToke3NlcnZlci5wb3J0fScpOwp9CgpzaGVsZi5SZXNwb25zZSBfZWNob1JlcXVl +c3Qoc2hlbGYuUmVxdWVzdCByZXF1ZXN0KSA9PgogICAgc2hlbGYuUmVzcG9uc2Uub2soJ1JlcXVl +c3QgZm9yICIke3JlcXVlc3QudXJsfSInKTsK''', 'pubspec.yaml', 'text', ''' bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHdlYiBzZXJ2ZXIgYnVpbHQgdXNp bmcgdGhlIHNoZWxmIHBhY2thZ2UuCiMgdmVyc2lvbjogMS4wLjAKIyBob21lcGFnZTogaHR0cHM6 Ly93d3cuZXhhbXBsZS5jb20KIyBhdXRob3I6IF9fYXV0aG9yX18gPF9fZW1haWxfXz4KCmVudmly -b25tZW50OgogIHNkazogJz49Mi4yLjAgPDMuMC4wJwoKZGVwZW5kZW5jaWVzOgogIGFyZ3M6IF4x -LjQuMgogIHNoZWxmOiBeMC43LjIKCmRldl9kZXBlbmRlbmNpZXM6CiAgcGVkYW50aWM6IF4xLjAu +b25tZW50OgogIHNkazogJz49Mi40LjAgPDMuMC4wJwoKZGVwZW5kZW5jaWVzOgogIGFyZ3M6IF4x +LjUuMAogIHNoZWxmOiBeMC43LjIKCmRldl9kZXBlbmRlbmNpZXM6CiAgcGVkYW50aWM6IF4xLjcu MAo=''' ]; diff --git a/lib/src/generators/web_angular.g.dart b/lib/src/generators/web_angular.g.dart index fea84e14..8ca17409 100644 --- a/lib/src/generators/web_angular.g.dart +++ b/lib/src/generators/web_angular.g.dart @@ -124,11 +124,11 @@ bmc+PiBnZXRUb2RvTGlzdCgpIGFzeW5jID0+IG1vY2tUb2RvTGlzdDsKfQo=''', bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHdlYiBhcHAgdGhhdCB1c2VzIEFu Z3VsYXJEYXJ0IENvbXBvbmVudHMKIyB2ZXJzaW9uOiAxLjAuMAojIGhvbWVwYWdlOiBodHRwczov L3d3dy5leGFtcGxlLmNvbQojIGF1dGhvcjogX19hdXRob3JfXyA8X19lbWFpbF9fPgoKZW52aXJv -bm1lbnQ6CiAgc2RrOiAnPj0yLjIuMCA8My4wLjAnCgpkZXBlbmRlbmNpZXM6CiAgYW5ndWxhcjog -XjUuMi4wCiAgYW5ndWxhcl9jb21wb25lbnRzOiBeMC4xMS4wCgpkZXZfZGVwZW5kZW5jaWVzOgog -IGFuZ3VsYXJfdGVzdDogXjIuMi4wCiAgYnVpbGRfcnVubmVyOiBeMS4xLjIKICBidWlsZF90ZXN0 -OiBeMC4xMC4zCiAgYnVpbGRfd2ViX2NvbXBpbGVyczogXjEuMC4wCiAgcGVkYW50aWM6IF4xLjAu -MAogIHRlc3Q6IF4xLjUuMQo=''', +bm1lbnQ6CiAgc2RrOiAnPj0yLjQuMCA8My4wLjAnCgpkZXBlbmRlbmNpZXM6CiAgYW5ndWxhcjog +XjUuMy4wCiAgYW5ndWxhcl9jb21wb25lbnRzOiBeMC4xMy4wCgpkZXZfZGVwZW5kZW5jaWVzOgog +IGFuZ3VsYXJfdGVzdDogXjIuMy4wCiAgYnVpbGRfcnVubmVyOiBeMS41LjAKICBidWlsZF90ZXN0 +OiBeMC4xMC4zCiAgYnVpbGRfd2ViX2NvbXBpbGVyczogXjIuMS4wCiAgcGVkYW50aWM6IF4xLjcu +MAogIHRlc3Q6IF4xLjYuMAo=''', 'test/app_test.dart', 'text', ''' diff --git a/lib/src/generators/web_simple.g.dart b/lib/src/generators/web_simple.g.dart index 422cb6ea..9b1184b2 100644 --- a/lib/src/generators/web_simple.g.dart +++ b/lib/src/generators/web_simple.g.dart @@ -42,9 +42,9 @@ CiMgICAgIC0gcGF0aC90by9leGNsdWRlZC9maWxlcy8qKgo=''', bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBbiBhYnNvbHV0ZSBiYXJlLWJvbmVz IHdlYiBhcHAuCiMgdmVyc2lvbjogMS4wLjAKI2hvbWVwYWdlOiBodHRwczovL3d3dy5leGFtcGxl LmNvbQojYXV0aG9yOiBfX2F1dGhvcl9fIDxfX2VtYWlsX18+CgplbnZpcm9ubWVudDoKICBzZGs6 -ICc+PTIuMi4wIDwzLjAuMCcKCiNkZXBlbmRlbmNpZXM6CiMgIHBhdGg6IF4xLjQuMQoKZGV2X2Rl -cGVuZGVuY2llczoKICBidWlsZF9ydW5uZXI6IF4xLjEuMgogIGJ1aWxkX3dlYl9jb21waWxlcnM6 -IF4xLjAuMAogIHBlZGFudGljOiBeMS4wLjAK''', +ICc+PTIuNC4wIDwzLjAuMCcKCiNkZXBlbmRlbmNpZXM6CiMgIHBhdGg6IF4xLjYuMAoKZGV2X2Rl +cGVuZGVuY2llczoKICBidWlsZF9ydW5uZXI6IF4xLjUuMAogIGJ1aWxkX3dlYl9jb21waWxlcnM6 +IF4yLjEuMAogIHBlZGFudGljOiBeMS43LjAK''', 'web/favicon.ico', 'binary', ''' diff --git a/lib/src/generators/web_stagexl.g.dart b/lib/src/generators/web_stagexl.g.dart index b7016343..cc25ce50 100644 --- a/lib/src/generators/web_stagexl.g.dart +++ b/lib/src/generators/web_stagexl.g.dart @@ -42,9 +42,9 @@ CiMgICAgIC0gcGF0aC90by9leGNsdWRlZC9maWxlcy8qKgo=''', bmFtZTogX19wcm9qZWN0TmFtZV9fCmRlc2NyaXB0aW9uOiBBIHNpbXBsZSBTdGFnZVhMIHdlYiBh cHAuCiMgdmVyc2lvbjogMS4wLjAKI2hvbWVwYWdlOiBodHRwczovL3d3dy5leGFtcGxlLmNvbQoj YXV0aG9yOiBfX2F1dGhvcl9fIDxfX2VtYWlsX18+CgplbnZpcm9ubWVudDoKICBzZGs6ICc+PTIu -Mi4wIDwzLjAuMCcKCmRlcGVuZGVuY2llczoKICBzdGFnZXhsOiBeMS4xLjAKCmRldl9kZXBlbmRl -bmNpZXM6CiAgYnVpbGRfcnVubmVyOiBeMS4xLjIKICBidWlsZF93ZWJfY29tcGlsZXJzOiBeMS4w -LjAKICBwZWRhbnRpYzogXjEuMC4wCg==''', +NC4wIDwzLjAuMCcKCmRlcGVuZGVuY2llczoKICBzdGFnZXhsOiBeMS40LjAKCmRldl9kZXBlbmRl +bmNpZXM6CiAgYnVpbGRfcnVubmVyOiBeMS41LjAKICBidWlsZF93ZWJfY29tcGlsZXJzOiBeMi4x +LjAKICBwZWRhbnRpYzogXjEuNy4wCg==''', 'web/images/dart@1x.png', 'binary', ''' diff --git a/lib/src/version.dart b/lib/src/version.dart index 0c4dca25..8f129748 100644 --- a/lib/src/version.dart +++ b/lib/src/version.dart @@ -1,2 +1,2 @@ // Generated code. Do not modify. -const packageVersion = '3.3.1'; +const packageVersion = '3.3.2'; diff --git a/pubspec.yaml b/pubspec.yaml index 9c79b169..2b981e8f 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -7,31 +7,31 @@ 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.1 +version: 3.3.2 homepage: https://github.com/dart-lang/stagehand author: Dart Team environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' # Add the bin/stagehand.dart script to the scripts pub installs. executables: stagehand: dependencies: - args: ^1.0.0 + args: ^1.5.0 http: ^0.12.0 - path: ^1.3.0 - usage: ^3.0.0 + path: ^1.6.0 + usage: ^3.4.0 dev_dependencies: - build: ^1.0.0 - build_config: '>=0.3.0 <0.5.0' - build_runner: ^1.0.0 + build: ^1.1.0 + build_config: ^0.4.0 + build_runner: ^1.5.0 build_version: ^2.0.0 glob: ^1.1.5 grinder: ^0.8.0 - pedantic: ^1.1.0 + pedantic: ^1.7.0 source_gen: ^0.9.0 - test: ^1.0.0 + test: ^1.6.0 yaml: ^2.1.2 diff --git a/templates/console-full/pubspec.yaml b/templates/console-full/pubspec.yaml index f7b906e8..ff20a292 100644 --- a/templates/console-full/pubspec.yaml +++ b/templates/console-full/pubspec.yaml @@ -5,11 +5,11 @@ description: A sample command-line application. # author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' #dependencies: -# path: ^1.4.1 +# path: ^1.6.0 dev_dependencies: - pedantic: ^1.0.0 - test: ^1.0.0 + pedantic: ^1.7.0 + test: ^1.5.0 diff --git a/templates/flutter-web-preview/pubspec.yaml b/templates/flutter-web-preview/pubspec.yaml index 35297564..12679892 100644 --- a/templates/flutter-web-preview/pubspec.yaml +++ b/templates/flutter-web-preview/pubspec.yaml @@ -3,16 +3,16 @@ description: An app built using Flutter for web environment: # You must be using Flutter >=1.5.0 or Dart >=2.3.0 - sdk: '>=2.3.0-dev.0.1 <3.0.0' + sdk: '>=2.3.0 <3.0.0' dependencies: flutter_web: any flutter_web_ui: any dev_dependencies: - build_runner: ^1.4.0 - build_web_compilers: ^2.0.0 - pedantic: ^1.0.0 + build_runner: ^1.5.0 + build_web_compilers: ^2.1.0 + pedantic: ^1.7.0 dependency_overrides: flutter_web: diff --git a/templates/package-simple/pubspec.yaml b/templates/package-simple/pubspec.yaml index 0ddfd8b2..396981be 100644 --- a/templates/package-simple/pubspec.yaml +++ b/templates/package-simple/pubspec.yaml @@ -5,11 +5,11 @@ description: A starting point for Dart libraries or applications. # author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' #dependencies: -# path: ^1.4.1 +# path: ^1.6.0 dev_dependencies: - pedantic: ^1.0.0 - test: ^1.0.0 + pedantic: ^1.7.0 + test: ^1.6.0 diff --git a/templates/server-shelf/bin/server.dart b/templates/server-shelf/bin/server.dart index 612de84d..53b132e6 100644 --- a/templates/server-shelf/bin/server.dart +++ b/templates/server-shelf/bin/server.dart @@ -16,8 +16,7 @@ main(List args) async { var port = int.tryParse(portStr); if (port == null) { - stdout.writeln( - 'Could not parse port value "$portStr" into a number.'); + stdout.writeln('Could not parse port value "$portStr" into a number.'); // 64: command line usage error exitCode = 64; return; diff --git a/templates/server-shelf/pubspec.yaml b/templates/server-shelf/pubspec.yaml index dbb1d25b..2938144c 100644 --- a/templates/server-shelf/pubspec.yaml +++ b/templates/server-shelf/pubspec.yaml @@ -5,11 +5,11 @@ description: A web server built using the shelf package. # author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' dependencies: - args: ^1.4.2 + args: ^1.5.0 shelf: ^0.7.2 dev_dependencies: - pedantic: ^1.0.0 + pedantic: ^1.7.0 diff --git a/templates/web-angular/pubspec.yaml b/templates/web-angular/pubspec.yaml index 182dd2fa..b8ee1f51 100644 --- a/templates/web-angular/pubspec.yaml +++ b/templates/web-angular/pubspec.yaml @@ -5,16 +5,16 @@ description: A web app that uses AngularDart Components # author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' dependencies: - angular: ^5.2.0 - angular_components: ^0.11.0 + angular: ^5.3.0 + angular_components: ^0.13.0 dev_dependencies: - angular_test: ^2.2.0 - build_runner: ^1.1.2 + angular_test: ^2.3.0 + build_runner: ^1.5.0 build_test: ^0.10.3 - build_web_compilers: ^1.0.0 - pedantic: ^1.0.0 - test: ^1.5.1 + build_web_compilers: ^2.1.0 + pedantic: ^1.7.0 + test: ^1.6.0 diff --git a/templates/web-simple/pubspec.yaml b/templates/web-simple/pubspec.yaml index ccee1adb..180cc08b 100644 --- a/templates/web-simple/pubspec.yaml +++ b/templates/web-simple/pubspec.yaml @@ -5,12 +5,12 @@ description: An absolute bare-bones web app. #author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' #dependencies: -# path: ^1.4.1 +# path: ^1.6.0 dev_dependencies: - build_runner: ^1.1.2 - build_web_compilers: ^1.0.0 - pedantic: ^1.0.0 + build_runner: ^1.5.0 + build_web_compilers: ^2.1.0 + pedantic: ^1.7.0 diff --git a/templates/web-stagexl/pubspec.yaml b/templates/web-stagexl/pubspec.yaml index c83826d0..239fe912 100644 --- a/templates/web-stagexl/pubspec.yaml +++ b/templates/web-stagexl/pubspec.yaml @@ -5,12 +5,12 @@ description: A simple StageXL web app. #author: __author__ <__email__> environment: - sdk: '>=2.2.0 <3.0.0' + sdk: '>=2.4.0 <3.0.0' dependencies: - stagexl: ^1.1.0 + stagexl: ^1.4.0 dev_dependencies: - build_runner: ^1.1.2 - build_web_compilers: ^1.0.0 - pedantic: ^1.0.0 + build_runner: ^1.5.0 + build_web_compilers: ^2.1.0 + pedantic: ^1.7.0 diff --git a/test/validate_templates.dart b/test/validate_templates.dart index 0ef9f486..73b64d3e 100644 --- a/test/validate_templates.dart +++ b/test/validate_templates.dart @@ -156,11 +156,9 @@ void _testGenerator(stagehand.Generator generator, Directory tempDir) { expect(pubspecContent, containsPair('name', 'stagehand')); expect(pubspecContent, containsPair('description', isNotEmpty)); - if (!usesFlutter) { - final minSDK = '2.2.0'; - expect(pubspecContent, - containsPair('environment', {'sdk': '>=$minSDK <3.0.0'})); - } + final minSDK = (!usesFlutter) ? '2.4.0' : '2.3.0'; + expect( + pubspecContent, containsPair('environment', {'sdk': '>=$minSDK <3.0.0'})); // Run package tests, if `test` is included. var devDeps = pubspecContent['dev_dependencies'];