--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/6DEA9298-342D-4375-989A-C087038D83C8%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
Hi Matt,We don't have pre commit in the generator, but we have it in the generated project. It is used by prettier to format code when you commit them. I guess you are seeing this since you might have generated a project inside the travis samples. And since there is parent git folder the precommit hook is being added there. I guess if you run the cleanup command for the travis build it would be fine, else we can also add a flag and use that to skip this step when generating sample apps
On Wed, 7 Mar 2018, 4:33 am Matt Raible, <ma...@raibledesigns.com> wrote:
Hello everyone,
What is the point of this?
husky > npm run -s precommit (node v9.5.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/6DEA9298-342D-4375-989A-C087038D83C8%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/CAFXry562wL2YiutXh%3DBm38_DPVrbotriHgB3KNUgdVrEL7XvNg%40mail.gmail.com.
BTW I have mixed feelings about our pre-commit hook.- We could totally embrace this, and do more than just run prettier- BUT people might not like that we change their code, and annoy them when they want to commit-> I'm not sure what the right approach is
2018-03-07 7:39 GMT+01:00 Deepu K Sasidharan <d4u...@gmail.com>:
Hi Matt,We don't have pre commit in the generator, but we have it in the generated project. It is used by prettier to format code when you commit them. I guess you are seeing this since you might have generated a project inside the travis samples. And since there is parent git folder the precommit hook is being added there. I guess if you run the cleanup command for the travis build it would be fine, else we can also add a flag and use that to skip this step when generating sample apps
On Wed, 7 Mar 2018, 4:33 am Matt Raible, <ma...@raibledesigns.com> wrote:
Hello everyone,
What is the point of this?
husky > npm run -s precommit (node v9.5.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/6DEA9298-342D-4375-989A-C087038D83C8%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/CAFXry562wL2YiutXh%3DBm38_DPVrbotriHgB3KNUgdVrEL7XvNg%40mail.gmail.com.
but prettier is also launched by generator.Isn't it enough?
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/763a1072-095d-4286-9438-63d182a056f4%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/CAL_TkmkBWXSOHWsvboG8R-H9iwuja3TtrCgrOcCgBFyFjFtUSQ%40mail.gmail.com.
Personally, I would disable it on my projects because I don't want it to modify my business classes which are totally unrelated with JHipster and classes that are generated by other code generators like wsdl2java.This why I'd like to restrict prettier to run on code generated by JHipster, I have started looking at Yeoman transform streams.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/94dd3ab1-5984-41fa-aae2-bfa547bba319%40googlegroups.com.
I see it when I try to commit code in generator-jhipster. Are you saying this is something I’ve done locally and it shouldn’t be happening?
On Mar 6, 2018, at 11:39 PM, Deepu K Sasidharan <d4u...@gmail.com> wrote:
Hi Matt,We don't have pre commit in the generator, but we have it in the generated project. It is used by prettier to format code when you commit them. I guess you are seeing this since you might have generated a project inside the travis samples. And since there is parent git folder the precommit hook is being added there. I guess if you run the cleanup command for the travis build it would be fine, else we can also add a flag and use that to skip this step when generating sample apps
On Wed, 7 Mar 2018, 4:33 am Matt Raible, <ma...@raibledesigns.com> wrote:
Hello everyone,
What is the point of this?
husky > npm run -s precommit (node v9.5.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/1E5FE14B-F253-4EF9-B50B-6B2FD7C35F4F%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
Yes, next step will add lint, and then tests, and then commiting will take 2 hours, and then nobody will ever commit anything :-)
2018-03-08 0:30 GMT+01:00 Matt Raible <ma...@raibledesigns.com>:
I did, that’s probably it. Thanks.
Personally, I get annoyed by precommits and find they add friction to the commit process.
On Mar 7, 2018, at 1:07 PM, Deepu K Sasidharan <d4u...@gmail.com> wrote:
Yes, did you create any sample project under the travis/samples folder? can you try to run ` ./travis/build-samples.sh clean` under the generator folder
Thanks & Regards,Deepu
On Wed, Mar 7, 2018 at 3:03 PM, Matt Raible <ma...@raibledesigns.com> wrote:
I see it when I try to commit code in generator-jhipster. Are you saying this is something I’ve done locally and it shouldn’t be happening?
On Mar 6, 2018, at 11:39 PM, Deepu K Sasidharan <d4u...@gmail.com> wrote:
Hi Matt,We don't have pre commit in the generator, but we have it in the generated project. It is used by prettier to format code when you commit them. I guess you are seeing this since you might have generated a project inside the travis samples. And since there is parent git folder the precommit hook is being added there. I guess if you run the cleanup command for the travis build it would be fine, else we can also add a flag and use that to skip this step when generating sample apps
On Wed, 7 Mar 2018, 4:33 am Matt Raible, <ma...@raibledesigns.com> wrote:
Hello everyone,
What is the point of this?
husky > npm run -s precommit (node v9.5.0)
sh: lint-staged: command not found
husky > pre-commit hook failed (add --no-verify to bypass)
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/6DEA9298-342D-4375-989A-C087038D83C8%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev...@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/1E5FE14B-F253-4EF9-B50B-6B2FD7C35F4F%40raibledesigns.com.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/166e8b86-5873-4c5a-97fd-5f8912397fc2%40googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/CALUG8Vuhw_TSciN7tYQUbWm5vuwGX%2B6sYpj5eQb3wd2uq2_24Q%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/f98e2250-6c7e-475f-abd8-ed1ba42fab80%40googlegroups.com.
--
You received this message because you are subscribed to the Google Groups "JHipster dev team" group.
To unsubscribe from this group and stop receiving emails from it, send an email to jhipster-dev+unsubscribe@googlegroups.com.
To post to this group, send email to jhipst...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/jhipster-dev/f98e2250-6c7e-475f-abd8-ed1ba42fab80%40googlegroups.com.
I can understand your concerns about precommit hooks. I've also had bad experience with buggy pre-commit hooks at a previous client. However I believe the one lint-staged/prettier/eslint --fix combination is not too intrusive and provide huge value.
You states that it works on windows only for a month but I know it as a fact that this is not true.
You also states that it uses NPM so it might conflict with yarn but in my experience it was not the case at all as it uses npm only to start the script and does not need to change the node_modules dependencies.
For my team `lint-staged` has worked very well and was much better than what we did before which was failing the build on lint errors.
I would say let's give it a shot to activate it by default with the 5.0 release but let's add specific instruction in the generated readme to help troubleshoot if people encounter problems (for example, we need to document that it will be active only after npm/yarn install).