Skip to content

Add pre-commit hook to trigger linter#964

Merged
michielbdejong merged 2 commits into
nodeSolidServer:masterfrom
rubensworks:dev/precommit
Apr 9, 2019
Merged

Add pre-commit hook to trigger linter#964
michielbdejong merged 2 commits into
nodeSolidServer:masterfrom
rubensworks:dev/precommit

Conversation

@rubensworks

Copy link
Copy Markdown
Contributor

Every time a commit is about to be done, npm run standard will be invoked.
This makes standard-compliance a bit more convenient :-)

Even though this would be possible, the unit tests aren't executed during pre-commit because they take a bit too long to execute.

@RubenVerborgh RubenVerborgh left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks to me; just want to signal that https://www.npmjs.com/package/husky is the new kid on the block.

@kjetilk

kjetilk commented Nov 23, 2018

Copy link
Copy Markdown
Member

Yeah, I like the idea, but I more like the idea of a pre-push hook to run npm test, with a question at the end asking whether you'd like to push anyway. Lets talk about it post-release.

@kjetilk kjetilk changed the base branch from release/v5.0.0 to master April 3, 2019 11:44
@kjetilk kjetilk requested a review from jaxoncreed April 3, 2019 11:44
@kjetilk

kjetilk commented Apr 3, 2019

Copy link
Copy Markdown
Member

Now, we can reconsider this. Can you have a look, @jaxoncreed ?

@michielbdejong michielbdejong merged commit bcc868e into nodeSolidServer:master Apr 9, 2019
@rubensworks rubensworks deleted the dev/precommit branch April 9, 2019 07:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants