-
-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
Makefile changes for Windows and easier development #6103
Conversation
@silverwind Any suggestions or things you don't like/would change? |
Codecov Report
@@ Coverage Diff @@
## master #6103 +/- ##
=========================================
Coverage ? 38.86%
=========================================
Files ? 352
Lines ? 50045
Branches ? 0
=========================================
Hits ? 19450
Misses ? 27780
Partials ? 2815 Continue to review full report at Codecov.
|
If you remove |
Ah, okay. I had first tried that, but npx didn't seem to play nice with me. Any tips? To clarify, |
Never tried it on Windows, but I assume it should just work. Tried updating node and/or npm? |
Using the current LTS of Node. Did a full reinstall for testing. On a separate note, since the local node modules is first in the path wouldn't it use that? |
Would probably work, not sure if |
Uses npx now for generate-stylesheets Uses `go env GOPATH` to calculate adding GOPATH/bin to PATH
@silverwind Alright, it's using npx now. Turns out my npm path was messed up for some reason and that messed with npx @zeripath I also changed to using @techknowlogick Pinging you as well since you had brought it up in the Discord. 👍 |
…directly invoking go Signed-off-by: jolheiser <john.olheiser@gmail.com>
Oh before we merge this @jolheiser could you check the hacking documentation to make sure it doesn't conflict with this? I think it's fine and if anything we suggest doing stuff that this makes unnecessary but just to be sure... |
The hacking documentation recommends adding Go to your path, which is unnecessary with this change, however as you said that's not necessarily a bad thing. This would just double it up. As for the npx changes, currently the hacking documentation says to run Should I add a comment about installing node/npm before working with the stylesheets? |
Yes, I'd recommend we require Node.js >= 8.0 with npm included (to my knowledge, all distributions of Node.js include npm). |
Done |
Would you mind also adding the version here? |
Done |
@zeripath I think this is ready now. |
This just adds your
go/bin
to PATH and changesgenerate-stylesheets
to usenpx
which is bundled with npm version 5.2+If npx isn't found, it asks the user to update their npm to version 5.2+
This makes it easier for Windows devs, since Windows didn't like
node_modules/.bin/lessc
etc complaining about the path separator.As well, it covers if a user hasn't already added their
go/bin
to their PATH, which would then make things likelint
andmisspell-check
not work.