Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
insinfo committed Aug 12, 2019
0 parents commit c1595e0
Show file tree
Hide file tree
Showing 9 changed files with 101 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# Files and directories created by pub
.dart_tool/
.packages
# Remove the following pattern if you wish to check in your lock file
pubspec.lock

# Conventional directory for build outputs
build/

# Directory created by dartdoc
doc/api/
3 changes: 3 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version, created by Stagehand
22 changes: 22 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
A library for Dart developers.

Created from templates made available by Stagehand under a BSD-style
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).

## Usage

A simple usage example:

```dart
import 'package:essential_components/essential_components.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
14 changes: 14 additions & 0 deletions analysis_options.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# 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 changes: 6 additions & 0 deletions example/essential_components_example.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
import 'package:essential_components/essential_components.dart';

main() {
var awesome = Awesome();
print('awesome: ${awesome.isAwesome}');
}
8 changes: 8 additions & 0 deletions lib/essential_components.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/// Support for doing something awesome.
///
/// More dartdocs go here.
library essential_components;

export 'src/essential_components_base.dart';

// TODO: Export any libraries intended for clients of this package.
6 changes: 6 additions & 0 deletions lib/src/essential_components_base.dart
Original file line number Diff line number Diff line change
@@ -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;
}
15 changes: 15 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: essential_components
description: A starting point for Dart libraries or applications.
# version: 1.0.0
# homepage: https://www.example.com
# author: insinfo <[email protected]>

environment:
sdk: '>=2.4.0 <3.0.0'

#dependencies:
# path: ^1.6.0

dev_dependencies:
pedantic: ^1.7.0
test: ^1.6.0
16 changes: 16 additions & 0 deletions test/essential_components_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import 'package:essential_components/essential_components.dart';
import 'package:test/test.dart';

void main() {
group('A group of tests', () {
Awesome awesome;

setUp(() {
awesome = Awesome();
});

test('First Test', () {
expect(awesome.isAwesome, isTrue);
});
});
}

0 comments on commit c1595e0

Please sign in to comment.