Skip to content
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

Feature/preadd lint #62

Open
wants to merge 6 commits into
base: master
Choose a base branch
from

Conversation

nodexchange
Copy link

Bounty

Describe the solution

Preview

ETH Wallet

Twitter Handle

@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 24, 2021

Hey @nodexchange,

Thanks for the help here :)

A few questions :

  1. By adding the build in .gitignore how did you ensure the system automatically build when people use it under the npm package?
  2. In which command does the system automatically run the eslint:fix?

@nodexchange
Copy link
Author

nodexchange commented May 24, 2021

Hey,

Sorry for the late one.

  1. I would suggest moving build and publish action to github actions (I can help with it). Keeping the build folder in our source code will cause quite a few conflicts. Link for ref: https://docs.github.com/en/actions/guides/publishing-nodejs-packages.
  2. It is the .husky/pre-commit file, it triggers npm run pre-commit task which works with the lint-staged task (much faster than our previous implementation'. I've also added .husky/pre-push to run npm test meaning, nothing will be pushed without passing tests, even if it is to forks.

Happy to adjust @Ruiub3i (for tag) :-)

commit lint?

pre-commit hook

package.json - precommit removed

hello-a

hello

premissions

troubleshoot.md
@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 25, 2021

Great, yes please do 1) so that we keep the build outside of the repo itself and just autobuilds in github actions

Also please resolve the conflicts, once done let me know :)

@nodexchange
Copy link
Author

merged in master, resolved conflicts and updated the eslint to include a few extra folders that can be ignored for now. All yours @Ruiub3i :-)

@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 26, 2021

@nodexchange does this substitute the previous pre-commit solution of [lint:fix, build, jsdoc:build]?

@nodexchange
Copy link
Author

@nodexchange does this substitute the previous pre-commit solution of [lint:fix, build, jsdoc:build]?

hey, yeah, it does. Instead of pre-commit, now we have a full flexibility on all different git hooks, like commit, prepush, post-push etc.

@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 27, 2021

Great @nodexchange can you pls resolve the conflicts so that I can merge?

Thanks!

@nodexchange
Copy link
Author

Great @nodexchange can you pls resolve the conflicts so that I can merge?

Thanks!

all done! Should be resolved and ready to merge!

@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 27, 2021

Thanks @nodexchange, now only left is the build/ files, since now we ignore all build files - so just need to remove any build/ ** - the rest looks ok :)

Great job!

@Ruiub3i
Copy link
Contributor

Ruiub3i commented May 28, 2021

@nodexchange let me know once that is done so that I can merge, all the rest looks great!

@nodexchange
Copy link
Author

@nodexchange let me know once that is done so that I can merge, all the rest looks great!

sorry, missed it. On it right now.

@nodexchange
Copy link
Author

@Ruiub3i , all good to merge. I was tripped by node upgrade to 14!!! Well done team!!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants