Skip to content

Commit 3cd2cf1

Browse files
committed
stagehand package-simple
0 parents  commit 3cd2cf1

File tree

9 files changed

+102
-0
lines changed

9 files changed

+102
-0
lines changed

.gitignore

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Files and directories created by pub
2+
.dart_tool/
3+
.packages
4+
5+
# Omit commiting pubspec.lock for library packages:
6+
# https://dart.dev/guides/libraries/private-files#pubspeclock
7+
pubspec.lock
8+
9+
# Conventional directory for build outputs
10+
build/
11+
12+
# Directory created by dartdoc
13+
doc/api/

CHANGELOG.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
## 1.0.0
2+
3+
- Initial version, created by Stagehand

README.md

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
A library for Dart developers.
2+
3+
Created from templates made available by Stagehand under a BSD-style
4+
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
5+
6+
## Usage
7+
8+
A simple usage example:
9+
10+
```dart
11+
import 'package:postgres_utils/postgres_utils.dart';
12+
13+
main() {
14+
var awesome = new Awesome();
15+
}
16+
```
17+
18+
## Features and bugs
19+
20+
Please file feature requests and bugs at the [issue tracker][tracker].
21+
22+
[tracker]: http://example.com/issues/replaceme

analysis_options.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# Defines a default set of lint rules enforced for
2+
# projects at Google. For details and rationale,
3+
# see https://github.com/dart-lang/pedantic#enabled-lints.
4+
include: package:pedantic/analysis_options.yaml
5+
6+
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
7+
# Uncomment to specify additional rules.
8+
# linter:
9+
# rules:
10+
# - camel_case_types
11+
12+
analyzer:
13+
# exclude:
14+
# - path/to/excluded/files/**

example/postgres_utils_example.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
import 'package:postgres_utils/postgres_utils.dart';
2+
3+
void main() {
4+
var awesome = Awesome();
5+
print('awesome: ${awesome.isAwesome}');
6+
}

lib/postgres_utils.dart

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
/// Support for doing something awesome.
2+
///
3+
/// More dartdocs go here.
4+
library postgres_utils;
5+
6+
export 'src/postgres_utils_base.dart';
7+
8+
// TODO: Export any libraries intended for clients of this package.

lib/src/postgres_utils_base.dart

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
// TODO: Put public facing types in this file.
2+
3+
/// Checks if you are awesome. Spoiler: you are.
4+
class Awesome {
5+
bool get isAwesome => true;
6+
}

pubspec.yaml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
name: postgres_utils
2+
description: A starting point for Dart libraries or applications.
3+
# version: 1.0.0
4+
# homepage: https://www.example.com
5+
6+
environment:
7+
sdk: '>=2.8.1 <3.0.0'
8+
9+
#dependencies:
10+
# path: ^1.7.0
11+
12+
dev_dependencies:
13+
pedantic: ^1.9.0
14+
test: ^1.14.4

test/postgres_utils_test.dart

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import 'package:postgres_utils/postgres_utils.dart';
2+
import 'package:test/test.dart';
3+
4+
void main() {
5+
group('A group of tests', () {
6+
Awesome awesome;
7+
8+
setUp(() {
9+
awesome = Awesome();
10+
});
11+
12+
test('First Test', () {
13+
expect(awesome.isAwesome, isTrue);
14+
});
15+
});
16+
}

0 commit comments

Comments
 (0)