Skip to content
This repository has been archived by the owner on Oct 6, 2024. It is now read-only.

Commit

Permalink
Use chore, make some minor updates.
Browse files Browse the repository at this point in the history
  • Loading branch information
matanlurey committed Aug 8, 2024
1 parent e1880bc commit 23a8e58
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 188 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,13 @@ jobs:
- run: dart pub get
- run: dart format --output none --set-exit-if-changed .
- run: dart analyze
- run: dart run tool/coverage.dart
- run: ./chore coverage
- name: Upload coverage
uses: coverallsapp/github-action@v2.2.3
with:
github-token: ${{ secrets.GITHUB_TOKEN }}
path-to-lcov: coverage/lcov.info
- run: dart run tool/dartdoc.dart
- run: ./chore dartdoc
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
Expand Down
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,11 @@
# Change Log

## Unreleased

**Misc**:

- Bumped Dart SDK to `^3.5.0` .

## 0.1.0

🎉 Initial release 🎉
15 changes: 15 additions & 0 deletions chore
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
#!/usr/bin/env sh

# Chore is a tiny task runner with some pre-defined commands.

set -e

GIT_URL="https://github.com/matanlurey/chore.dart.git"
GIT_REF="8b252e7"

# Silently activate the pinned version of `chore.dart` from GitHub.
# Only print if there is an error.
dart pub global activate -sgit $GIT_URL --git-ref=$GIT_REF 2>&1 > /dev/null

# Now run and forward arguments and the output.
dart pub global run chore "$@"
7 changes: 2 additions & 5 deletions lib/src/extensions.dart
Original file line number Diff line number Diff line change
Expand Up @@ -78,12 +78,9 @@ extension AnsiStringSink<W extends StringSink> on W {
T syncAnsiUpdate<T>(T Function(W) update) {
writeAnsi(SynchronousUpdates.start);
try {
final result = update(this);
return update(this);
} finally {
writeAnsi(SynchronousUpdates.end);
return result;
} on Object catch (_) {
writeAnsi(SynchronousUpdates.end);
rethrow;
}
}
}
Expand Down
8 changes: 2 additions & 6 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,20 +5,16 @@ description: A stately library for crafting and deciphering ANSI escape codes.
version: 0.1.0

environment:
sdk: ^3.4.0
sdk: ^3.5.0

repository: https://github.com/matanlurey/mansion

dependencies:
meta: ^1.15.0

dev_dependencies:
args: ^2.5.0
benchmark_harness: ^2.2.2
checks: ^0.3.0
coverage: ^1.8.0
oath: ^0.2.0
path: ^1.9.0
shelf: ^1.4.2
shelf_static: ^1.1.2
oath: ^0.2.1
test: ^1.25.7
2 changes: 2 additions & 0 deletions test/codec_test.dart
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ void main() {
});

group('$AnsiDecoder(allowInvalid: false)', () {
// Make this explicit for tests.
// ignore: avoid_redundant_argument_values
const decoder = AnsiDecoder(allowInvalid: false);

Expand All @@ -50,6 +51,7 @@ void main() {
});

group('$AnsiDecoder.startChunkedConversion', () {
// Make this explicit for tests.
// ignore: avoid_redundant_argument_values
const decoder = AnsiDecoder(allowInvalid: false);

Expand Down
95 changes: 0 additions & 95 deletions tool/coverage.dart

This file was deleted.

80 changes: 0 additions & 80 deletions tool/dartdoc.dart

This file was deleted.

0 comments on commit 23a8e58

Please sign in to comment.