-
Notifications
You must be signed in to change notification settings - Fork 29
Conversation
@cdaringe how did you commit without the tests passing? Isn't the pre-commit hook supposed to catch that? |
@paulcpederson, because i didn't realize i needed to update the |
word |
Why change the travis config to Full disclosure: I am somewhat obsessed with GNU Make, it's one of my favorite tools. |
@cdaringe I think I agree with @Lochlan on that. I'd leave
There is quite a bit of stuff in the |
Also, I had a question, does this maintain linting for indentation/punctuation errors? |
i want to run the lint task automatically on pre-commit s.t. all contributors don't forget to lint their code manually. i could surely use the make command, but
it's sort of bikeshedding in the grand scheme of things. anyway, hopefully we can come to resolution |
I appreciate that argument, that it's not node-like. If we go ahead with moving towards npm scripts we should clean up the stuff we don't need the Also you could remove the githooks stuff here https://github.com/node-swig/swig/blob/master/Makefile#L16 right? |
Yes, Make is essentially designed for C and C++, but ultimately it is a declarative language for describing the relationships between files. And it comes out of the box on pretty much every unix/linux machine!
Makefiles can be arcane, but generally recipes contain a lot of straightforward shell commands. That's one of the things I love about Make, is its accessibility on the low end.
I certainly agree with you here in the sense that using JS build tools is the most common practice, though I don't think that conforming to common practices is always necessary or beneficial. Despite my gushy love of Make, I'm not actually opposed to using a JS build tool. I agree with @paulcpederson re: "I appreciate that argument, that it's not node-like."
Because where we are today is that we already have the makefile. As @paulcpederson said:
I'm very leery of moving to a state where we have some parts of our build inside the makefile and some outside. And I'm definitely not wanting to leave in dead recipes in the makefile. Perhaps there can be a separate issue and PR for discussing a new build tool? At this exact moment in time, and for the actual scope of this work (moving to a new linter), I would prefer to just update the I definitely think the makefile as-is has problems and we should consider some alternative/improvement to what exists currently. |
I also want to state that this is merely my preference, and that I consider moving the lint target out of the makefile a pretty minor thing. I would not want this trend to continue, however, unless/until moving to a new build tool. |
Yeah this gets my +1. Let's open a new issue to discuss the build tool and get this merged. |
nice work @cdaringe 👍 |
restored to make. should have had that discussion before starting a change. best to do it all at once if at all! i originally didn't consider it scope creep as we already sorta-kinda use both, but that's arguably grey! hopefully travis get's its act together and gives us green soon and we can call this one done! |
@cdaringe Thank you for making these most recent changes, I really appreciate it. And I'm greatly looking forward to improving our build, it definitely needs some attention! Since it looks like we've reached consensus on this PR I'm going to go ahead and merge this in. |
problem statement
solution
git-validate
, which installs a generic gitpre-commit
hookpre-commit
tasks inpackage.json
, particularly the"lint"
taskpre-commit
script.eslintrc.js
discussion
i'd really like a "zero configuration" eslint setting, in that regard we never debate or discuss opinions on rules. but arrrg, no-unused-vars was really killin me! if we're all cool with this, just as it stands, great, we can use it and not make a fuss. or, if someone wants to try another standard, no-sweat!