Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

[Proposal] Add basic commit QA tooling#173

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Open
Mindaugas-Jacionis wants to merge2 commits intotshaddix:master
base:master
Choose a base branch
Loading
fromMindaugas-Jacionis:add-basic-qa-tooling

Conversation

@Mindaugas-Jacionis
Copy link

This adds:

  • husky and its hooks to ensure quality of the commits that are pushed. It is not intended to replace CI that runs tests, it is more for contributor to be sure that his/her commit is passing all the tests and follow the linting guidelines for the repo.
  • Reworked scripts to parallelize the ones that possible to and remove redundant ones

mickdekkers reacted with thumbs up emoji
"lint-src":"./node_modules/.bin/eslint src/**/*.js",
"lint-test":"./node_modules/.bin/eslint test/**/*.js",
"lint":"npmrun lint-src && npm runlint-test",
"lint":"run-plint-*",
Copy link
Owner

Choose a reason for hiding this comment

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

Can you help me understand a bit more of what is going on here?

Choose a reason for hiding this comment

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

This is usingnpm-run-all to execute task in parallel. Before they were running sequentially (&&)

It's cross platform and supports globs, like in this case, where it will execute in parallel all scripts that start withlint-.

"test":"mocha --require babel-core/register",
"prepare":"npm run prepublish",
"precommit":"lint-staged",
"prepush":"yarn qa"
Copy link
Owner

Choose a reason for hiding this comment

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

I'm not familiar enough with yarn - is this a yarn only script?

Choose a reason for hiding this comment

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

This sure looks like a typo. I would say this is supposed to benpm run qa

Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@tshaddixtshaddixtshaddix left review comments

+1 more reviewer

@pedroabreupedroabreupedroabreu left review comments

Reviewers whose approvals may not affect merge requirements

At least 1 approving review is required to merge this pull request.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

3 participants

@Mindaugas-Jacionis@pedroabreu@tshaddix

[8]ページ先頭

©2009-2025 Movatter.jp