-
Notifications
You must be signed in to change notification settings - Fork 1
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
First impressions #17
Comments
Hi @Toxicable, thank you for the notes and feedback, appreciate it.
Is
Yes, 100% working on that - hitting some internal complications. For the moment the releases can be installed from the tar on the releases page on GitHub. There is #4 for tracking this, hope to have it resolved soon.
This should already be the case, although I've not tried running it with
Yes definitely. It looks like you are missing the These are the ones you'll likely need:
... on a closer look... Please let us know how you get on! |
Im not certain if it's the "more standard", but it is defiantely supported by bazel, I'd suggest an array of file names just incase `["BUILD", "BUILD.bazel"]
Will folllow that ticket, thanks! I just tried this out on the |
Good to hear you had some success when installing with yarn. I'll see if I can track down what went wrong.
This functionality exists in our internal version, I've been looking at migrating it out here. There is some discussion in #9 for the generation of tests. |
So I jsut tried it again on our codebase at work and ran into a few issues. I made this little script to use bzlgen on our whole repository
with a .bzlgenrc
Our first issue was likely caused from our use of https://www.npmjs.com/package/barrelsby
I think the reason for this is that every dir with .ts files under
For example
|
I pulled down the repository and added a unit test, however I wasn't able to fix it. The issue is when you import from a file in another relative package, bzlgen will use the file name as the target, however if you used bzlgen to make that target, it'll be named after the dir, not the file. Here's my test:
which produces
But i'd expect to get:
I've also sent though another PR which will fix deep imports for any package. |
Ah yes, this is likely an artifact of how our packages are made up and to an extent that it's been primarily used for Angular where we'd expect one component and module per folder, and the naming convention to be pretty tight. I'll spin this off to another issue to track it. |
Yeah I don't think this issue has really a done condition, so ill close it now and make some smaller issues |
Hey guys, im pretty excited to use this project, it looks like it could suite out needs pretty well.
I just went through the process of setting it up and these are my notes I took as I was doing it:
--build_file_name
should search for BUILD.bazel by defaultOnce I got it setup I tried running
npx bazel run @blzgen//src:bin -- ts libs/SOMELIB --base_dir=$(pwd) --build_file_name=BUILD.bazel
Which produced a
commands.txt
file:but then it throws:
I'm not familiar with buildozer or it's commands but looks like the error is coming from there?
The text was updated successfully, but these errors were encountered: