greenpeace / planet4-gpch-plugin-blocks
Provides Planet4 content blocks specific to Greenpeace Switzerland
Installs: 1 851
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 7
Forks: 1
Open Issues: 9
Type:wordpress-plugin
- dev-master
- v1.31
- v1.30
- v1.29
- v1.28
- v1.27
- v1.26
- v1.25
- v1.24
- v1.23
- v1.22
- v1.21
- v1.20
- v1.19
- v1.18
- v1.17
- v1.16
- v1.15
- v1.14
- v1.13
- v1.12
- v1.11
- v1.10
- v1.9
- v1.8
- v1.7
- v1.6
- v1.5
- v1.4
- v1.3
- v1.2
- v1.1
- v1.0.26
- v1.0.0
- v0.1.44
- v0.1.43
- v0.1.42
- v0.1.41
- v0.1.40
- v0.1.39
- v0.1.38
- v0.1.37
- v0.1.36
- v0.1.35
- v0.1.34
- v0.1.33
- v0.1.32
- v0.1.31
- v0.1.30
- v0.1.28
- v0.1.27
- v0.1.25
- v0.1.24
- v0.1.23
- v0.1.22
- v0.1.21
- v0.1.20
- v0.1.19
- v0.1.18
- v0.1.17
- v0.1.16
- v0.1.15
- v0.1.14
- v0.1.13
- v0.1.12
- v0.1.11
- v0.1.10
- v0.1.9
- v0.1.8
- v0.1.7
- v0.1.6
- v0.1.5
- v0.1.4
- v0.1.3
- v0.1.2
- v0.1.1
- v0.1.0
- v0.0.2
- v0.0.1
- dev-dependabot/npm_and_yarn/webpack-dev-middleware-5.3.4
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.6
- dev-dependabot/npm_and_yarn/express-4.19.2
- dev-develop
- dev-release/v1.32
- dev-release/v1.31
- dev-feature/670-counter-block-bugfix
- dev-dependabot/npm_and_yarn/axios-and-wordpress/scripts-1.6.7
- dev-dependabot/npm_and_yarn/semver-5.7.2
- dev-dependabot/npm_and_yarn/babel/traverse-7.24.0
- dev-dependabot/npm_and_yarn/webpack-5.90.3
- dev-dependabot/npm_and_yarn/postcss-8.4.35
- dev-dependabot/npm_and_yarn/tough-cookie-4.1.3
- dev-dependabot/npm_and_yarn/follow-redirects-1.15.5
- dev-release/v1.30
- dev-feature/667-tag-rename
- dev-release/v1.29
- dev-feature/666-fix-sentry-issues
- dev-feature/655-fix-sentry
- dev-release/v1.28
- dev-release/v1.27
- dev-feature/650-multiplier-field
- dev-release/v1.26
- dev-feature/633-events-without-time
- dev-feature/624-remove-jquery
- dev-release/v1.25
- dev-feature/626-replace-deprecated-hooks
- dev-feature/623-update-dependencies
- dev-feature/483-remove-old-accordion
- dev-feature/622-donation-progress-tamaro
- dev-feature/618-color-scheme-change
This package is auto-updated.
Last update: 2024-04-08 14:40:25 UTC
README
Content Blocks, specific to the GPCH installation of Planet4.
Install
Install dependencies:
npm install --save-dev
composer install --ignore-platform-reqs
Coding Standards
Any new code added is required to implement Wordpress coding standards
Javascript: Use JSHint
Set JSHint to use .jshintrc provided in this repository.
Example for PHPStorm:
- Settings -> Languages & Frameworks -> Javascript -> Code Quality Tools -> JSHint
- ☑ Enable
- ☑ Use config files
- Location: ☑ Default
Build
Make sure your files are formatted correctly:
npm run format
Make sure your files pass ESLint with the provided config:
npm run lint:js
Build files for production:
npm run build
Build styles:
sass assets/css/source/style.scss assets/css/style.css --style=compressed
Autoloader
To generate autoload files, run
composer dump-autoload
Translations
Generate and use .pot/.po/.mo files as usual. Make sure to include translations in Twig templates.
Transform po files into additional JSON for use with Javascript. See the guide in dev docs
Example:
wp i18n make-json planet4-gpch-plugin-blocks-de_CH.po --no-purge
Then rename the files to use the handle instead of the auto generated md5 string in the filename.