Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master' into package-groups
Browse files Browse the repository at this point in the history
  • Loading branch information
klavs committed May 10, 2020
2 parents 53945d1 + 9cc54a8 commit 712ffbc
Show file tree
Hide file tree
Showing 33 changed files with 20 additions and 767 deletions.
11 changes: 2 additions & 9 deletions .github/workflows/dart.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ jobs:
- gql_websocket_link
- gql_link
- gql_transform_link
- multipack
- cats
- gql_example_http_auth_link
runs-on: ubuntu-latest
Expand All @@ -32,13 +31,10 @@ jobs:
- name: Activate multipack
run: |
echo "::add-path::$HOME/.pub-cache/bin"
pub global activate --source path ./multipack
pub global activate multipack
- name: Override local dependencies
run: |
multipack pubspec hard_override
cd ./multipack
pub get
cd ..
- name: Get dependencies
run: |
multipack --only $PACKAGE pub get
Expand Down Expand Up @@ -76,13 +72,10 @@ jobs:
- name: Activate multipack
run: |
echo "::add-path::$HOME/.pub-cache/bin"
pub global activate --source path ./multipack
pub global activate multipack
- name: Override local dependencies
run: |
multipack pubspec hard_override
cd ./multipack
pub get
cd ..
- name: Get dependencies
run: |
multipack --only $PACKAGE pub get
Expand Down
2 changes: 1 addition & 1 deletion .github/workflows/publish_alpha.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
- name: Activate multipack
run: |
echo "::add-path::$HOME/.pub-cache/bin"
pub global activate --source path ./multipack
pub global activate multipack
- name: Bump to alpha version
run: |
multipack --only $PACKAGES pubspec bump-alpha
Expand Down
46 changes: 6 additions & 40 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down Expand Up @@ -76,7 +76,6 @@ Ideas for future work:
| Pub | Package | Library | Description |
|-----|---------|---------|-------------|
| [![version][package:gql_pedantic:version]][package:gql_pedantic] | [`package:gql_pedantic`][package:gql_pedantic:source] | | Lint rules used by all `gql-dart/gql` packages |
| [![version][package:multipack:version]][package:multipack] | [`package:multipack`][package:multipack:source] | | Development tool to ease working in this monorepo setup |

#### Examples

Expand Down Expand Up @@ -112,10 +111,7 @@ Ideas for future work:
[package:gql_dedupe_link:version]: https://img.shields.io/pub/v/gql_dedupe_link.svg?style=flat-square
[package:gql_pedantic:source]: ./gql_pedantic/README.md
[package:gql_pedantic]: https://pub.dartlang.org/packages/gql_pedantic
[package:gql_pedantic:version]: https://img.shields.io/pub/v/gql_pedantic.svg?style=flat-square
[package:multipack:source]: ./multipack/README.md
[package:multipack]: https://pub.dartlang.org/packages/multipack
[package:multipack:version]: https://img.shields.io/pub/v/multipack.svg?style=flat-square
[package:gql_pedantic:version]: https://img.shields.io/pub/v/gql_pedantic.svg?style=flat-square
[package:gql_example_cli:source]: ./gql_example_cli/README.md
[package:gql_example_cli]: https://pub.dartlang.org/packages/gql_example_cli
[package:gql_example_cli:version]: https://img.shields.io/pub/v/gql_example_cli.svg?style=flat-square
Expand Down Expand Up @@ -157,37 +153,17 @@ and to build a community around this vendor-neutral implementation.
Community contributions are welcome.

### `multipack`
This repo comes with an unpublished tool called `multipack`. To activate it run the following command.
This repo uses [`multipack`](https://github.com/gql-dart/multipack). To activate it run the following command.
```bash
pub global activate --source path ./multipack
pub global activate multipack
```

`multipack` provides a simple way of running commands in multiple packages at once. It builds a directed graph of packages
to run commands in topological order.
```text
Global options:
-o, --only Whitelist packages, skipping those not included for this command.
-s, --skip Blacklist packages for this command.
Available commands:
analyze Run analyzer.
exec Execute any command.
fmt Run formatter.
pub Run pub.
pubspec Update pubspec.yaml
```

`pubspec` has 3 subcommands:
```
Available subcommands:
clean cleans dependency overrides
hard_override overrides dependencies for local packages
override overrides dependencies for local packages
```

Link all local packages by running
```bash
multipack --skip multipack pubspec override
multipack pubspec override
```

Get all packages by running
Expand All @@ -197,21 +173,11 @@ multipack pub get

Clean up the pubspec file before publishing
```bash
multipack --skip multipack pubspec clean
multipack pubspec clean
```

See more usage examples in [.github/workflows/dart.yml](.github/workflows/dart.yml).

#### Why `--skip multipack`?
While this package is not published, you have to do the following every time `./multipack/pubspec.yaml` is altered.
```bash
cd ./multipack
pub get
cd ..
```

To avoid that, you can just skip multipack package.

## Features and bugs

Please file feature requests and bugs at the [GitHub][tracker].
Expand Down
2 changes: 1 addition & 1 deletion codegen/gql_build/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion codegen/gql_code_builder/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion gql/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion gql_pedantic/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_dedupe_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_error_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_exec/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_http_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_transform_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
2 changes: 1 addition & 1 deletion links/gql_websocket_link/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
[github-watch-badge]: https://img.shields.io/github/watchers/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-watch-link]: https://github.com/gql-dart/gql/watchers
[github-star-badge]: https://img.shields.io/github/stars/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-star-link]: https://github.com/zino-app/graphql-flutter/stargazers
[github-star-link]: https://github.com/gql-dart/gql/stargazers
[github-forks-badge]: https://img.shields.io/github/forks/gql-dart/gql.svg?style=for-the-badge&logo=github&logoColor=ffffff
[github-forks-link]: https://github.com/gql-dart/gql/network/members

Expand Down
11 changes: 0 additions & 11 deletions multipack/.gitignore

This file was deleted.

Empty file removed multipack/CHANGELOG.md
Empty file.
23 changes: 0 additions & 23 deletions multipack/README.md

This file was deleted.

1 change: 0 additions & 1 deletion multipack/analysis_options.yaml

This file was deleted.

50 changes: 0 additions & 50 deletions multipack/bin/multipack.dart

This file was deleted.

5 changes: 0 additions & 5 deletions multipack/lib/commands.dart

This file was deleted.

19 changes: 0 additions & 19 deletions multipack/lib/commands/analyze.dart

This file was deleted.

Loading

0 comments on commit 712ffbc

Please sign in to comment.