Coder Social home page Coder Social logo

interconnection-wordpress-theme's People

Contributors

01fade avatar ajvillegas avatar ckoerner avatar dependabot[bot] avatar goldenapples avatar gudmdharalds avatar kadamwhite avatar miguelaxcar avatar pamprn09 avatar ubergeekzone avatar varnent avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

interconnection-wordpress-theme's Issues

Implement GitHub Action build workflows

This theme currently contains prebuilt assets: to use it on a deployed WordPress site, if any CSS has been changed then the npm run compile command must also be run, and the updated compiled CSS assets must be manually committed to the repository.

We generally recommend against committing compiled assets to a source code repository because if two different features end up writing changes to the same bundled file, that can cause an unnecessary merge conflict that slows down development. A theme doesn't work without its static assets, though, so the build process needs to happen somewhere.

In the Shiro theme, we use GitHub Actions to build the theme's assets.

Web applications can then install Shiro using a dev-release VCS composer reference, decoupling

This issue tracks implementing the same process for this Interconnection theme.

Proposed tactics

  • Copy .github folder from Shiro theme
  • Check the node-version of the release scripts and make sure it matches this project's .nvmrc
  • Check the built_asset_paths of the release actions and make sure they include the right generated directories and files
  • Check the build_script of the release actions and make sure they include the right npm command
  • Remove the generated files from source control on main (git rm ...), test, and iterate until pushes to main build correctly (see status here in the Actions tab)

Probably easiest to work directly in main until things are set up properly, rather than PR'ing every single change. This repository is not yet used in a production environment so changes here will not break anything, and there are not yet any branch protection rules set up to prevent pushes directly to main.

If it's easier to include the PHP and JS linting when migrating the other GH actions over, let's bring them along, but we do expect they will fail at first since I believe this repo uses slightly different coding standards.

Acceptance Criteria

  • When main is updated, a GitHub Action builds that branch to release
  • When develop is updated, a GitHub Action builds that branch to release-develop
  • The contents of the release or release-develop branches can be downloaded as a zip and used as-is on a WordPress site with no further build necessary

Implement eslint and phpcs code style checks

The shiro theme has ESLint and PHPCS set up to enforce reasonable code style consistency and catch syntax errors, security risks, and inefficient queries. The same coding standards should be applied to this repository for consistency.

  • PRs are checked against ESLint standards
  • PRs are checked against PHPCS standards
  • PRs are checked against Stylelint standards

Test issue

Nothing to see here, testing an integration

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.