Skip to content

Commit

Permalink
Collapse Bazel Instructions in README (#106)
Browse files Browse the repository at this point in the history
* Update README.md

* Update README.md
  • Loading branch information
jonnyreeves authored Sep 8, 2018
1 parent 5959599 commit 1d7e310
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,10 @@ npm install ts-protoc-gen@next
```

### bazel
<details><summary>Instructions for using ts-protoc-gen within a <a href="https://bazel.build/>bazel">bazel</a> build environment</summary><p>

Include the following in your `WORKSPACE`:

```python
git_repository(
name = "io_bazel_rules_go",
Expand Down Expand Up @@ -77,7 +80,8 @@ load("@build_bazel_rules_typescript//:defs.bzl", "ts_setup_workspace")
ts_setup_workspace()
```

Now in your `BUILD.bazel`:
Now in your `BUILD.bazel`:

```python
load("@ts_protoc_gen//:defs.bzl", "typescript_proto_library")

Expand All @@ -97,7 +101,9 @@ typescript_proto_library(
name = "generate",
proto = ":proto",
)
```
```

</p></details>

## Contributing
Contributions are welcome! Please refer to [CONTRIBUTING.md](https://github.com/improbable-eng/ts-protoc-gen/blob/master/CONTRIBUTING.md) for more information.
Expand Down Expand Up @@ -181,4 +187,4 @@ By default the google-protobuf library will use the JavaScript number type to st
message Example {
uint64 bigInt = 1 [jstype = JS_STRING];
}
```
```

0 comments on commit 1d7e310

Please sign in to comment.