forked from alann-maulana/flutter_beacon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
28 lines (21 loc) · 826 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
DARTANALYZER_FLAGS=--fatal-warnings
build: lib/*dart test/*dart deps
dartanalyzer ${DARTANALYZER_FLAGS} lib/
dartfmt -n --set-exit-if-changed lib/ test/
flutter test --coverage --coverage-path ./coverage/lcov.info
deps: pubspec.yaml
flutter packages get -v
reformatting:
dartfmt -w lib/ test/
build-local: reformatting build
genhtml -o coverage coverage/lcov.info
lcov --list coverage/lcov.info
lcov --summary coverage/lcov.info
open coverage/index.html
pana:
pana -s path .
docs:
rm -rf doc
pub global run dartdoc --exclude 'dart:async,dart:collection,dart:convert,dart:core,dart:developer,dart:io,dart:isolate,dart:math,dart:typed_data,dart:ui,dart:html_common,dart:ffi,dart:html,dart:js,dart:js_util' --ignore 'ambiguous-doc-reference' --sdk-dir '${FLUTTER_ROOT}/bin/cache/dart-sdk'
publish:
pub publish