forked from cubetiq/cubetiq_dart_shared
init dart shared
This commit is contained in:
commit
c1437f133a
10
.gitignore
vendored
Normal file
10
.gitignore
vendored
Normal file
@ -0,0 +1,10 @@
|
||||
# Files and directories created by pub.
|
||||
.dart_tool/
|
||||
.packages
|
||||
|
||||
# Conventional directory for build outputs.
|
||||
build/
|
||||
|
||||
# Omit committing pubspec.lock for library packages; see
|
||||
# https://dart.dev/guides/libraries/private-files#pubspeclock.
|
||||
pubspec.lock
|
3
CHANGELOG.md
Normal file
3
CHANGELOG.md
Normal file
@ -0,0 +1,3 @@
|
||||
## 1.0.0
|
||||
|
||||
- Initial version.
|
19
README.md
Normal file
19
README.md
Normal file
@ -0,0 +1,19 @@
|
||||
A library for Dart developers.
|
||||
|
||||
## Usage
|
||||
|
||||
A simple usage example:
|
||||
|
||||
```dart
|
||||
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
|
||||
|
||||
main() {
|
||||
var awesome = new Awesome();
|
||||
}
|
||||
```
|
||||
|
||||
## Features and bugs
|
||||
|
||||
Please file feature requests and bugs at the [issue tracker][tracker].
|
||||
|
||||
[tracker]: http://example.com/issues/replaceme
|
16
analysis_options.yaml
Normal file
16
analysis_options.yaml
Normal file
@ -0,0 +1,16 @@
|
||||
# Defines a default set of lint rules enforced for projects at Google. For
|
||||
# details and rationale, see
|
||||
# https://github.com/dart-lang/pedantic#enabled-lints.
|
||||
|
||||
include: package:pedantic/analysis_options.yaml
|
||||
|
||||
# For lint rules and documentation, see http://dart-lang.github.io/linter/lints.
|
||||
|
||||
# Uncomment to specify additional rules.
|
||||
# linter:
|
||||
# rules:
|
||||
# - camel_case_types
|
||||
|
||||
# analyzer:
|
||||
# exclude:
|
||||
# - path/to/excluded/files/**
|
6
example/cubetiq_dart_shared_example.dart
Normal file
6
example/cubetiq_dart_shared_example.dart
Normal file
@ -0,0 +1,6 @@
|
||||
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
|
||||
|
||||
void main() {
|
||||
var awesome = Awesome();
|
||||
print('awesome: ${awesome.isAwesome}');
|
||||
}
|
8
lib/cubetiq_dart_shared.dart
Normal file
8
lib/cubetiq_dart_shared.dart
Normal file
@ -0,0 +1,8 @@
|
||||
/// Support for doing something awesome.
|
||||
///
|
||||
/// More dartdocs go here.
|
||||
library cubetiq_dart_shared;
|
||||
|
||||
export 'src/cubetiq_dart_shared_base.dart';
|
||||
|
||||
// TODO: Export any libraries intended for clients of this package.
|
6
lib/src/cubetiq_dart_shared_base.dart
Normal file
6
lib/src/cubetiq_dart_shared_base.dart
Normal file
@ -0,0 +1,6 @@
|
||||
// TODO: Put public facing types in this file.
|
||||
|
||||
/// Checks if you are awesome. Spoiler: you are.
|
||||
class Awesome {
|
||||
bool get isAwesome => true;
|
||||
}
|
14
pubspec.yaml
Normal file
14
pubspec.yaml
Normal file
@ -0,0 +1,14 @@
|
||||
name: cubetiq_dart_shared
|
||||
description: A starting point for Dart libraries or applications.
|
||||
version: 1.0.0
|
||||
# homepage: https://www.example.com
|
||||
|
||||
environment:
|
||||
sdk: '>=2.12.0 <3.0.0'
|
||||
|
||||
# dependencies:
|
||||
# path: ^1.8.0
|
||||
|
||||
dev_dependencies:
|
||||
pedantic: ^1.10.0
|
||||
test: ^1.16.0
|
16
test/cubetiq_dart_shared_test.dart
Normal file
16
test/cubetiq_dart_shared_test.dart
Normal file
@ -0,0 +1,16 @@
|
||||
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
|
||||
import 'package:test/test.dart';
|
||||
|
||||
void main() {
|
||||
group('A group of tests', () {
|
||||
final awesome = Awesome();
|
||||
|
||||
setUp(() {
|
||||
// Additional setup goes here.
|
||||
});
|
||||
|
||||
test('First Test', () {
|
||||
expect(awesome.isAwesome, isTrue);
|
||||
});
|
||||
});
|
||||
}
|
Loading…
Reference in New Issue
Block a user