init dart shared

This commit is contained in:
Sambo Chea 2021-06-01 19:41:14 +07:00
commit c1437f133a
9 changed files with 98 additions and 0 deletions

10
.gitignore vendored Normal file
View 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
View File

@ -0,0 +1,3 @@
## 1.0.0
- Initial version.

19
README.md Normal file
View 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
View 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/**

View File

@ -0,0 +1,6 @@
import 'package:cubetiq_dart_shared/cubetiq_dart_shared.dart';
void main() {
var awesome = Awesome();
print('awesome: ${awesome.isAwesome}');
}

View 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.

View 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
View 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

View 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);
});
});
}