From 3fb948885b7292449ba8001ce1b0169bee767ad9 Mon Sep 17 00:00:00 2001 From: Chris Bracken Date: Wed, 14 Dec 2016 16:59:01 -0800 Subject: [PATCH] Eliminate the need for dart_style dev_dependency (#20) Apply dartfmt straight from the SDK. --- pubspec.yaml | 1 - tool/travis.sh | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/pubspec.yaml b/pubspec.yaml index 2dd6d7bf0867a..71ff372c03b9e 100644 --- a/pubspec.yaml +++ b/pubspec.yaml @@ -9,5 +9,4 @@ version: 0.2.0 dependencies: path: ^1.4.0 dev_dependencies: - dart_style: test: ^0.12.10 diff --git a/tool/travis.sh b/tool/travis.sh index 7dd994dafb594..df99586d7e05b 100755 --- a/tool/travis.sh +++ b/tool/travis.sh @@ -1,9 +1,8 @@ #!/bin/bash # Make sure dartfmt is run on everything -# This assumes you have dart_style as a dev_dependency echo "Checking dartfmt..." -NEEDS_DARTFMT="$(find lib test tool -name "*.dart" | xargs pub run dart_style:format -n)" +NEEDS_DARTFMT="$(dartfmt -n lib test tool)" if [[ ${NEEDS_DARTFMT} != "" ]] then echo "FAILED"