Skip to content
This repository has been archived by the owner on Jan 26, 2021. It is now read-only.

Commit

Permalink
Enable executable for pub global usage (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
taisph authored and jakobr-google committed Jun 12, 2017
1 parent e08cc47 commit 9d14bcc
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,12 @@ When both the `dart` executable and `out/protoc-gen-dart` are in the

$ protoc --dart_out=. test.proto

### Optionally using `pub global`

$ pub global activate -sgit https://github.com/dart-lang/dart-protoc-plugin

And then add `.pub-cache/bin` in your home dir to your `PATH` if you haven't already.

### Options to control the generated Dart code

The protocol buffer compiler accepts options for each plugin. For the
Expand Down
2 changes: 2 additions & 0 deletions pubspec.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,5 @@ dependencies:
dev_dependencies:
browser: any
test: ^0.12.0
executables:
protoc-gen-dart: protoc_plugin

0 comments on commit 9d14bcc

Please sign in to comment.