Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support Bazel build #34

Merged
merged 2 commits into from
Mar 26, 2018
Merged

Support Bazel build #34

merged 2 commits into from
Mar 26, 2018

Conversation

adamyi
Copy link
Contributor

@adamyi adamyi commented Feb 8, 2018

Support building with Bazel.

To build it, run

bazel build //bin/...

The built artifact will be at bazel-bin/bin/protoc-gen-ts.

This would facilitate supporting Protobuf in Bazel-built ts projects. This CL is made on top of the original WIP but seemingly abandoned PR #24.

/cc @pcj @MarcusLongmuir

@jonnyreeves
Copy link
Contributor

Thanks for your submission, we also make use of Bazel at improbable 😀

Please can you modify the Travis build configuration to ensure that the hazel build is also executed?

Thanks

@adamyi adamyi force-pushed the bazel branch 2 times, most recently from b3fc26a to e6fccf8 Compare March 2, 2018 07:29
Copy link
Contributor

@jonnyreeves jonnyreeves left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small change to gitignore requested. It also would appear that the Bazel build failed on Travis

Thanks!

.gitignore Outdated
@@ -1,10 +1,12 @@
.vscode
node_modules
node-debug.log
package-lock.json
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This change is unrelated, please revert

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done

@adamyi adamyi force-pushed the bazel branch 2 times, most recently from 7c1f057 to eaecf15 Compare March 2, 2018 07:44
@adamyi
Copy link
Contributor Author

adamyi commented Mar 2, 2018

Got Travis CI working now.

"babel": "^6.5.2",
"chai": "^3.5.0",
"mocha": "^3.2.0",
"source-map-support": "^0.4.14",
"tslint": "^4.5.1",
"tslint": "^5.9.1",
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The old version would depend on an old version of tsutils, which is incompatible with the new Bazel typescript rules.

@jonny-improbable
Copy link
Contributor

LGTM, sorry for the delay in merging. Thanks for your contributions @adamyi and @pcj

@jonny-improbable jonny-improbable merged commit a70c3d3 into improbable-eng:master Mar 26, 2018
@jonny-improbable jonny-improbable added this to the 0.5.0 milestone Mar 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants