2017 © Pedro Peláez
 

wordpress-theme planet4-child-theme-netherlands

Example child theme for the Planet 4 Wordpress project

image

greenpeace/planet4-child-theme-netherlands

Example child theme for the Planet 4 Wordpress project

  • Friday, July 27, 2018
  • by kkokkoro
  • Repository
  • 7 Watchers
  • 1 Stars
  • 126 Installations
  • CSS
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 282 % Grown

The README.md

Greenpeace Planet 4 Child Theme for GP Netherlands

Child theme for the Planet 4 Wordpress project. The related master theme’s code lives at:, (*1)

https://github.com/greenpeace/planet4-master-theme., (*2)

Please check the master theme code for more information., (*3)


GPNL specific development instructions

Commit guidelines

Included is a githook (commit-msg) which is run to ensure standardized commit messages. Conventional commits is used as the convention., (*4)

In short:

[optional 'maintenance' type][type]([optional scope])[breaking change]: [description]

[optional body]
Section Explanation
'Maintenance' type Revert Merge
Type build docs feat fix perf refactor style test chore
Scope Optional explanation of the scope of the change ie ux ui admin etc
Breaking change When a breaking change is introduced use ! after the commit type
Description 10-52 char explanation what the commit does
Body Optionally more axplanation on the what and why

The following commits correlate to SemVer version changes., (*5)

Commit SemVer change
commit with ! Major version change, ie 2.x.x
commit type feat Minor version change, ie x.2.x
commit with type fix Patch version change, ie x.x.2

Build process

Development

To watch the files run yarn start., (*6)

Build for production

To build files for production run yarn build., (*7)

Browserslist

All source code gets transpiled according to our actual usage data. To make sure we don't support too old browsers, the usage data should be refreshed every once in a while (once-twice a year).
Generating the usage data can be done using browserslist-ga-export, (*8)

Linting

Linters for both CSS and JS are available both for linting and fixing.
yarn lint yarn lint:fix for both CSS and JS
yarn lint:[css/js] for either CSS or JS
yarn lint:[css/js]:fix for either CSS or JS, (*9)

Release preparation

Release steps are largely automated, this includes: changing branching to loosely follow gitflow, generating assets generating changelogs and tagging the new release. Only (purposely) manual step left is pushing the branches and tags to remote. Changelogs are autogenerated by standard-version if the commit guidelines are followed.
yarn release for running releases yarn dryrelease for checking what the impact of a release is
CircleCI is used as the CI automation. Steps for releasing new versions are in the Planet4 Documentation, (*10)

The Versions

27/07 2018

dev-develop

dev-develop

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis

25/07 2018

dev-feature/build-tools

dev-feature/build-tools

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis

18/07 2018

dev-feature/automation

dev-feature/automation

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis

13/07 2018

dev-master

9999999-dev

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis

11/07 2018

dev-feature/link-color-fixes

dev-feature/link-color-fixes

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis

12/04 2018

0.1

0.1.0.0

Example child theme for the Planet 4 Wordpress project

  Sources   Download

GPL-3.0+

The Requires

  • wpackagist-plugin/timber-library 1.7.*

 

by Konstantinos Kokkorogiannis