Skip to content

Commit

Permalink
copy_with_extension package
Browse files Browse the repository at this point in the history
  • Loading branch information
numen31337 committed Dec 5, 2019
0 parents commit d539ff8
Show file tree
Hide file tree
Showing 8 changed files with 83 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
# See https://www.dartlang.org/guides/libraries/private-files

# Files and directories created by pub
.dart_tool/
.packages
.pub/
build/
# If you're building an application, you may want to check-in your pubspec.lock
pubspec.lock

# Directory created by dartdoc
# If you don't generate documentation locally you can remove this line.
doc/api/
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Alexander Kirsch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
3 changes: 3 additions & 0 deletions copy_with_extension/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
## 1.0.0 Initial release

* Lets you annotate an object using `@CopyWith()` to generate a `copyWith` extension.
21 changes: 21 additions & 0 deletions copy_with_extension/LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2019 Alexander Kirsch

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions copy_with_extension/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Defines the annotations used by `copy_with_extension_gen` to generate `copyWith` extensions.
3 changes: 3 additions & 0 deletions copy_with_extension/lib/copy_with_extension.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
class CopyWith {
const CopyWith();
}
12 changes: 12 additions & 0 deletions copy_with_extension/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
name: copy_with_extension
version: 1.0.0
description: Annotation for generating `copyWith` extensions code using `copy_with_extension_gen`
homepage: https://github.com/numen31337/copy_with_extension/copy_with_extension
repository: https://github.com/numen31337/copy_with_extension
issue_tracker: https://github.com/numen31337/copy_with_extension/issues

environment:
sdk: ">=2.7.0 <3.0.0"

dev_dependencies:
test: "<2.0.0"
9 changes: 9 additions & 0 deletions copy_with_extension/test/copy_with_extension_test.dart
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
import 'package:test/test.dart';
import 'package:copy_with_extension/copy_with_extension.dart';

void main() {
test('annotation exists', () {
final annotation = const CopyWith();
expect(annotation != null, true);
});
}

0 comments on commit d539ff8

Please sign in to comment.