Codeinwp / Codeinwp/otter-blocks

Some processes that can be improved in Otter dev work

Open
#1,650 1 comment 3 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
198
Forks
36
Avg merge
3d 4h
Merged PRs (30d)
30

Description

Some processes in the Otter dev work that can be improved (for my rock for this Quarter).

1. Php standard

PHPCS does not work with PHP 7.4 or later. Many times we push the code and then fix the PHPCS errors after we see them in the PR checks.

2. Bem helper

We could start adding CSS classes with BEM in mind. It will make the CSS files look better and maybe make the overall CSS size smaller.

A nice touch here would be to implement a BEM helper that will generate class names, something like react-bem-helper
or even use that package, but implementing it should be fairly easy.

3. PHP tests

Some additional PHP tests might be helpful.

4. Otter child plugins usage

Right now, when developing the Otter repo, we can build and use only the entire Otter plugin. So, if we need for example just the Block CSS plugin, we need to take it separately and move it to another instance, which takes unnecessary time. Maybe we can improve this.

Feedback is appreciated @Codeinwp/otter-team.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue proposes four separate areas: PHPCS compatibility, BEM class-name support, additional PHP tests, and a workflow for using Otter child plugins independently. Start by choosing one area and reviewing the current development and test setup; done should be defined as a specific, tested improvement rather than addressing all four proposals.

Written by the indexing model from the issue text.

Assessment

Tech stack
css, javascript, php
Domain
developer-experience, frontend, testing, tooling
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
20/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.