selfdefined / web-app

Dictionary database with future API and bot integrations
https://www.selfdefined.app/
573 stars 170 forks source link

⚒️ Set up testing/linting infrastructure/workflow #74

Open tatianamac opened 4 years ago

tatianamac commented 4 years ago

Ensure considers accessibility per #48.

Tools to be integrated

Dev infrastructure

These tooling will enable us to ensure consistent code quality across branches and remove the need for manual style corrections in PRs.

If we find a way to apply the formatting configured through the tools above for contributors who are not able to set up an advanced dev workflow on their machines (no shame in that) this will be A++.

There are probably things I miss right now. Will keep the list updated. And if anyone reading this has input, please post it!

This list shall act as a tracking issue.

If you want to work on integrating of one or more of these tools, please open a PR and I will link it in the list. Thanks.

EDIT: by @ovlb; added tracking list

ovlb commented 4 years ago

Sure. This list is considering future developments of the site, so some things might seem overkill right now. They will save us from grinding teeth and loss of hair later, though.

@tatianamac I’ve added to OP to include a tracking list of tools.

greatislander commented 4 years ago

@tatianamac @ovlb I've been working with husky/lint-staged/etc a lot lately to handle linting on commit, as well as setting up corresponding GitHub CI. Would be happy to start on this.

ovlb commented 4 years ago

@greatislander Please go ahead :) Shall I add a basic ESLint config, so that your workflow has something to test against or would you do this too?

greatislander commented 4 years ago

That would be great, @olvb!

ovlb commented 4 years ago

@greatislander I’ve opened #78 for linting and testing. Once this is merged you can go ahead with the CI :)

codeAbul commented 4 years ago

@ovlb Once CI system is set up, I can work on setting up axe!

ovlb commented 4 years ago

@ovlb Once CI system is set up, I can work on setting up axe!

Great!

ovlb commented 4 years ago

@greatislander #78 is merged. :)

greatislander commented 4 years ago

@ovlb @tatianamac I am happy to scaffold a Stylelint configuration as well. Do you have any preferences? I typically use the recommended rules with stylelint-order and properties-alphabetical-order set to true but let me know your thoughts!

tatianamac commented 4 years ago

Thanks for your patience—just flew back from Australia. I am good with those. @ovlb, what're your preferences?

ovlb commented 4 years ago

@codeAbul Do you still want to set up axe? CI is ready now.

tatianamac commented 4 years ago

Also, I imagine we should add some notes to our documentation? I can add it as a separate issue if we agree (once we're done).

greatislander commented 4 years ago

@tatianamac That makes sense! Happy to add documentation for the configuration I added.

ovlb commented 4 years ago

Much appreciated. Maybe by expanding this document? https://github.com/tatianamac/selfdefined/blob/master/11ty/documentation/development.md

tatianamac commented 4 years ago

As @codeAbul needs to step away from the aXe portion, @greatislander or @ovlb are either one of you able to take on setting that up? Otherwise I'm happy to recruit other folks if you're not able.

greatislander commented 4 years ago

@tatianamac I can take a crack at it.

tatianamac commented 4 years ago

@greatislander Did we lose track of this issue? 😬 (I know you're working hard on the Open Authoring one, so no pressure from me—just trying to get through the issues 😅)

greatislander commented 4 years ago

Oh yeah I totally lost track of it. Oops. I am going to be setting up axe for a work project so once I've figured it out there I will replicate here :grin:

tatianamac commented 4 years ago

@greatislander Did you figure out the axe set up? I'd love to add it here if you did! 🤓🙏🏽

greatislander commented 4 years ago

I spent a bit of time on it last week but ran into some issues with GitHub Actions which I haven't figured out yet (got it working locally but couldn't get it to run in CI). Still chipping away at it, and will probably spend some more time this week. Fingers crossed!