forked from dart-lang/pub
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use source_gen for JSON serialization (dart-lang#31)
...for a few classes
- Loading branch information
Showing
11 changed files
with
107 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
name: pana | ||
description: Evaluate the health and quality of a Dart package | ||
version: 0.2.3 | ||
version: 0.2.4-dev | ||
homepage: https://github.com/dart-lang/pana | ||
author: Dart Team <[email protected]> | ||
|
||
|
@@ -16,7 +16,9 @@ dependencies: | |
pool: ^1.3.0 | ||
pub_semver: ^1.3.2 | ||
quiver: '>=0.24.0 <0.26.0' | ||
source_gen: ^0.5.8 | ||
yaml: ^2.1.12 | ||
|
||
dev_dependencies: | ||
build_runner: ^0.3.4 | ||
test: ^0.12.0 |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
import 'package:build_runner/build_runner.dart'; | ||
|
||
import 'phases.dart'; | ||
|
||
main() async { | ||
await build(phases, deleteFilesByDefault: true); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
import 'package:build_runner/build_runner.dart'; | ||
|
||
import 'package:source_gen/generators/json_serializable_generator.dart' as json; | ||
import 'package:source_gen/source_gen.dart'; | ||
|
||
final PhaseGroup phases = new PhaseGroup.singleAction( | ||
new GeneratorBuilder(const [const json.JsonSerializableGenerator()]), | ||
new InputSet('pana', const [ | ||
'lib/src/analyzer_output.dart', | ||
'lib/src/platform.dart', | ||
'lib/src/pub_summary.dart' | ||
])); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
// Copyright (c) 2017, the Dart project authors. Please see the AUTHORS file | ||
// for details. All rights reserved. Use of this source code is governed by a | ||
// BSD-style license that can be found in the LICENSE file. | ||
import 'package:build_runner/build_runner.dart'; | ||
|
||
import 'phases.dart'; | ||
|
||
main() { | ||
watch(phases, deleteFilesByDefault: true); | ||
} |