wikimedia / interconnection-wordpress-theme Goto Github PK
View Code? Open in Web Editor NEWWordPress theme created for https://diff.wikimedia.org/
License: GNU General Public License v2.0
WordPress theme created for https://diff.wikimedia.org/
License: GNU General Public License v2.0
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.
main
branch contains only source code files, and does not include compiled assets
main
, an Action automatically builds assets and pushes them to release
develop
branch likewise contains only source code files, and does not include compiled assets
develop
for testing, a separate action builds that source code into the release-develop
branchWeb applications can then install Shiro using a dev-release
VCS composer reference, decoupling
This issue tracks implementing the same process for this Interconnection theme.
.github
folder from Shiro themenode-version
of the release scripts and make sure it matches this project's .nvmrc
built_asset_paths
of the release actions and make sure they include the right generated directories and filesbuild_script
of the release actions and make sure they include the right npm commandmain
(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.
main
is updated, a GitHub Action builds that branch to release
develop
is updated, a GitHub Action builds that branch to release-develop
release
or release-develop
branches can be downloaded as a zip and used as-is on a WordPress site with no further build necessaryThe 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.
Nothing to see here, testing an integration
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.