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

[FR]: How to automatically generate SRCS and BUILD_DEPS content? Is there a more detailed solution #1914

Open
liushuai05 opened this issue Sep 8, 2024 · 4 comments
Labels
enhancement New feature or request

Comments

@liushuai05
Copy link

What is the current behavior?

No response

Describe the feature

I want to migrate some projects on my computer to bazel, but I found that SRCS and BUILD_DEPS in BUILD correspond to dependencies in the package.json file. If I want to generate such content, since my project is relatively large and more than one project manually processing is indeed a big project, I may not understand it after reading your documentation. Yes, I did not find the command to automatically generate dependencies from package.json to the BUILD file. I hope you can get help. Thank you very much

@liushuai05 liushuai05 added the enhancement New feature or request label Sep 8, 2024
@Aghassi
Copy link
Collaborator

Aghassi commented Sep 21, 2024

You will need to explore aspect-cli and gazelle to do build file generation, which is what I think you are asking

@liushuai05
Copy link
Author

liushuai05 commented Sep 23, 2024

You will need to explore aspect-cli and gazelle to do build file generation, which is what I think you are asking

As far as I know, gazelle seems to have only the golang version, but I can't find it in the js field. Can you help me point out where I am going? Thank you for your reply.
Thanks for your help. I found rules_nodejs_gazelle based on your clues, but I don't know if it's what I want. I'll take time to learn this toolkit first.
https://github.com/benchsci/rules_nodejs_gazelle

@Aghassi
Copy link
Collaborator

Aghassi commented Sep 23, 2024

That is not what I was referring to, that's an alternative solution though. I was referring to https://github.com/aspect-build/aspect-cli/tree/main/gazelle/js

If you plan on using the Aspect solutions, probably best to reach out to the team and get help onboarding. Otherwise, you will be left to piece it together a bit.

@liushuai05
Copy link
Author

That is not what I was referring to, that's an alternative solution though. I was referring to https://github.com/aspect-build/aspect-cli/tree/main/gazelle/js

If you plan on using the Aspect solutions, probably best to reach out to the team and get help onboarding. Otherwise, you will be left to piece it together a bit.

Thanks a lot. I looked at the source code of https://github.com/aspect-build/aspect-CLI/tree/main/gazelle/js, which may be impossible for me (both in terms of time cost and implementation difficulty), because I am a beginner, and I really can't. I plan to use sed of shell to replace the dependency with Build for the time being.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants