-
Notifications
You must be signed in to change notification settings - Fork 30.1k
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
build: refactor vcbuild.bat #12310
Comments
/cc @nodejs/platform-windows @nodejs/build |
I'm with @joaocgreis's future vote :) |
Seems like there's consensus for Powershell... |
The cons of Python doesn't look very relevant to me: in node-gyp it would be nice to remove it as a dependency (for users compiling modules), but here we're not getting rid of it so fast. PowerShell is not a bad option either, if more people prefer it I'm also ok with it. The main thing is: can you really make it more concise, keeping the same syntax, and test it well? There's a lot of logic built into it that we can't discard, and to end up with something equally complex but in another language doesn't make much sense to me. Something simpler and easier to change would be welcome though. If you can, while developing, make one commit that translates vcbuild to python/powershell exactly, and any changes in separate commits on top of it. This would make reviewing much easier and we can squash when landing. Thanks for your effort on this! |
Powershell is at least a structured language, and has better dev tools from the ISE to Powershell for VSCode
I'll take a crack at it |
My initial intuition was python, then @gibfahn made me think of JScript over cscript. Didn't imagine the popular vote would be Powershell, but that's cool as well. |
P.S. vote for https://youtrack.jetbrains.com/issue/IDEABKL-6738 |
A strange idea: #12425 (comment) |
I'm definitely pro using powershell here... |
@refack Same question as the other PR: Still in progress? Should this remain open? Removing |
I think the discussion is done, we know what needs to be done, it just needs someone to put the time in and raise a PR. Still worth doing though, so worth leaving open. |
Powershell +1. If no one takes this I would like to give it a try. |
There's been no activity here in a long time and it's not clear if it's moving forward. Refactoring the windows build, however, is still a good thing to do. Closing, but I've added this to the Futures project board so that it doesn't get lost. |
master
I want to refactor/rewrite
vcbuild.bat
. The options are:cscript
Pros: Looks like javascript. Built into Windows
Cons: Might get deprecated. ES3-- syntax.
Pros: Prefered by Microsoft. Fully structured scripting language. OSS and portable
Cons: New language
Pros: on par with other tools
Cons: increases dependency on python as a requirement for building node
Please voice your opinion. We can do a facebook style poll:
🎉 for JScript
👍 for Powershell
😄for python
😕for just tweaking the batch file
Ref: cscript future?
The text was updated successfully, but these errors were encountered: