init dart shared

master
Sambo Chea 1 year ago
commit c1437f133a
  1. 10
      .gitignore
  2. 3
      CHANGELOG.md
  3. 19
      README.md
  4. 16
      analysis_options.yaml
  5. 6
      example/cubetiq_dart_shared_example.dart
  6. 8
      lib/cubetiq_dart_shared.dart
  7. 6
      lib/src/cubetiq_dart_shared_base.dart
  8. 14
      pubspec.yaml
  9. 16
      test/cubetiq_dart_shared_test.dart

10
.gitignore vendored

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

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

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

@ -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/**

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

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

@ -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;
}

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

@ -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…
Cancel
Save