Skip to content

Commit

Permalink
fake authentication service
Browse files Browse the repository at this point in the history
  • Loading branch information
Kleak committed May 8, 2019
1 parent 56c9099 commit dfbd848
Show file tree
Hide file tree
Showing 8 changed files with 63 additions and 0 deletions.
11 changes: 11 additions & 0 deletions services/authentication_service/.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 services/authentication_service/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0

- Initial version, created by Stagehand
4 changes: 4 additions & 0 deletions services/authentication_service/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
A sample command-line application.

Created from templates made available by Stagehand under a BSD-style
[license](https://github.com/dart-lang/stagehand/blob/master/LICENSE).
14 changes: 14 additions & 0 deletions services/authentication_service/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/**
5 changes: 5 additions & 0 deletions services/authentication_service/bin/main.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import 'package:authentication_service/authentication_service.dart' as authentication_service;

main(List<String> arguments) {
print('Hello world: ${authentication_service.calculate()}!');
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
int calculate() {
return 6 * 7;
}
15 changes: 15 additions & 0 deletions services/authentication_service/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
name: authentication_service
description: A sample command-line application.
# version: 1.0.0
# homepage: https://www.example.com
# author: kevin <[email protected]>

environment:
sdk: '>=2.1.0 <3.0.0'

#dependencies:
# path: ^1.4.1

dev_dependencies:
pedantic: ^1.0.0
test: ^1.0.0
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
import 'package:authentication_service/authentication_service.dart';
import 'package:test/test.dart';

void main() {
test('calculate', () {
expect(calculate(), 42);
});
}

0 comments on commit dfbd848

Please sign in to comment.