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

Commit

Permalink
Disable the angular analyzer (#562)
Browse files Browse the repository at this point in the history
Also:

* Update version to 3.1.1
* Temporary disable Travis job that uses dart_coveralls

Contributes to #561.
  • Loading branch information
kwalrath authored Jul 20, 2018
1 parent e810f64 commit 7752833
Show file tree
Hide file tree
Showing 7 changed files with 36 additions and 23 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## 3.1.1

- `web-angular` template: Disabled the Angular analyzer plugin. To re-enable
the plugin, edit `analysis_options.yaml` and uncomment the two lines
`plugins: ... angular`.

## 3.1.0

- Set max SDK version to <3.0.0 everywhere.
Expand Down
2 changes: 1 addition & 1 deletion lib/src/cli_app.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ part of 'cli_app.dart';
// VersionGenerator
// **************************************************************************

const appVersion = '3.1.0';
const appVersion = '3.1.1';
16 changes: 9 additions & 7 deletions lib/src/generators/web_angular.g.dart
Original file line number Diff line number Diff line change
Expand Up @@ -35,13 +35,15 @@ YXN0ZXIvTElDRU5TRSkuCg==''',
'text',
'''
YW5hbHl6ZXI6CiAgZXhjbHVkZTogW2J1aWxkLyoqXQogIGVycm9yczoKICAgIHVyaV9oYXNfbm90
X2JlZW5fZ2VuZXJhdGVkOiBpZ25vcmUKICBwbHVnaW5zOgogICAgLSBhbmd1bGFyCgojIExpbnQg
cnVsZXMgYW5kIGRvY3VtZW50YXRpb24sIHNlZSBodHRwOi8vZGFydC1sYW5nLmdpdGh1Yi5pby9s
aW50ZXIvbGludHMKbGludGVyOgogIHJ1bGVzOgogICAgLSBjYW5jZWxfc3Vic2NyaXB0aW9ucwog
ICAgLSBoYXNoX2FuZF9lcXVhbHMKICAgIC0gaXRlcmFibGVfY29udGFpbnNfdW5yZWxhdGVkX3R5
cGUKICAgIC0gbGlzdF9yZW1vdmVfdW5yZWxhdGVkX3R5cGUKICAgIC0gdGVzdF90eXBlc19pbl9l
cXVhbHMKICAgIC0gdW5yZWxhdGVkX3R5cGVfZXF1YWxpdHlfY2hlY2tzCiAgICAtIHZhbGlkX3Jl
Z2V4cHMK''',
X2JlZW5fZ2VuZXJhdGVkOiBpZ25vcmUKICAjIEFuZ3VsYXIgcGx1Z2luIHN1cHBvcnQgaXMgaW4g
YmV0YS4gWW91J3JlIHdlbGNvbWUgdG8gdHJ5IGl0IGFuZCByZXBvcnQKICAjIGlzc3VlczogaHR0
cHM6Ly9naXRodWIuY29tL2RhcnQtbGFuZy9hbmd1bGFyX2FuYWx5emVyX3BsdWdpbi9pc3N1ZXMK
ICAjIHBsdWdpbnM6CiAgICAjIC0gYW5ndWxhcgoKIyBMaW50IHJ1bGVzIGFuZCBkb2N1bWVudGF0
aW9uLCBzZWUgaHR0cDovL2RhcnQtbGFuZy5naXRodWIuaW8vbGludGVyL2xpbnRzCmxpbnRlcjoK
ICBydWxlczoKICAgIC0gY2FuY2VsX3N1YnNjcmlwdGlvbnMKICAgIC0gaGFzaF9hbmRfZXF1YWxz
CiAgICAtIGl0ZXJhYmxlX2NvbnRhaW5zX3VucmVsYXRlZF90eXBlCiAgICAtIGxpc3RfcmVtb3Zl
X3VucmVsYXRlZF90eXBlCiAgICAtIHRlc3RfdHlwZXNfaW5fZXF1YWxzCiAgICAtIHVucmVsYXRl
ZF90eXBlX2VxdWFsaXR5X2NoZWNrcwogICAgLSB2YWxpZF9yZWdleHBzCg==''',
'lib/app_component.css',
'text',
'''
Expand Down
2 changes: 1 addition & 1 deletion pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ name: stagehand
description: >
A scaffolding generator for your Dart projects. Stagehand helps you get set
up!
version: 3.1.0
version: 3.1.1
homepage: https://github.com/dart-lang/stagehand
author: Dart Team <[email protected]>

Expand Down
6 changes: 4 additions & 2 deletions templates/web-angular/analysis_options.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,10 @@ analyzer:
exclude: [build/**]
errors:
uri_has_not_been_generated: ignore
plugins:
- angular
# Angular plugin support is in beta. You're welcome to try it and report
# issues: https://github.com/dart-lang/angular_analyzer_plugin/issues
# plugins:
# - angular

# Lint rules and documentation, see http://dart-lang.github.io/linter/lints
linter:
Expand Down
6 changes: 4 additions & 2 deletions test/validate_templates.dart
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,10 @@ final String _expectedAngularAnalysisOptions = [
' exclude: [build/**]',
' errors:',
' uri_has_not_been_generated: ignore',
' plugins:',
' - angular',
" # Angular plugin support is in beta. You're welcome to try it and report",
' # issues: https://github.com/dart-lang/angular_analyzer_plugin/issues',
' # plugins:',
' # - angular',
_expectedAnalysisOptions.split('\n').skip(3),
].expand((e) => e is Iterable ? e : [e]).join('\n');

Expand Down
21 changes: 11 additions & 10 deletions tool/travis.sh
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,15 @@ travis_fold start validate_templates
pub run test test/validate_templates.dart
travis_fold end validate_templates

# DISABLED due to https://github.com/block-forest/dart-coveralls/issues/81.
# Install dart_coveralls; gather and send coverage data.
if [ "$COVERALLS_TOKEN" ]; then
travis_fold start dart_coveralls
pub global activate dart_coveralls
pub global run dart_coveralls report \
--token $COVERALLS_TOKEN \
--retry 2 \
--exclude-test-files \
test/all.dart
travis_fold end dart_coveralls
fi
# if [ "$COVERALLS_TOKEN" ]; then
# travis_fold start dart_coveralls
# pub global activate dart_coveralls
# pub global run dart_coveralls report \
# --token $COVERALLS_TOKEN \
# --retry 2 \
# --exclude-test-files \
# test/all.dart
# travis_fold end dart_coveralls
# fi

0 comments on commit 7752833

Please sign in to comment.