3cb443ff67
* Updated package-lock.json * fixed method sig * PHP versions matrix * removed extra space * renamed step * Update E2E and coding standards to use PHP 8.0 * Un-linted unit-tests.yml. Github flows use 4 spaces indent, while our .editorconfig file enforces 2 spaces. * Refactor unit-tests.yml * Linted unit-tests.yml to proper 2 space indents * Removed composer caching * Test without hacky permissions step * Concurrency disable. Jobs renaming. * Add step to install wp-env for PHP unit tests. * Another try at fixing perms for wp-env * Another try at fixing perms for wp-env * Restore missing steps * Move notices to corresponding context * Change `errorMessageContext` to `context` * Fix MD lint errors Co-authored-by: Paulo Arromba <17236129+wavvves@users.noreply.github.com> |
||
---|---|---|
.. | ||
components | ||
context | ||
hocs | ||
hooks | ||
utils | ||
README.MD |
README.MD
Base Components/Context/Hooks
Base components are designed to be used on the frontend of a store. Due to this, we need to avoid using heavy WordPress externals as dependencies (wp-components, wp-block-editor, etc). To get around this, import from a local package instead.
e.g. Instead of importing from @wordpress/components
, use:
import { Component } from 'wordpress-components';
Check the built *.assets.php
files to ensure extra dependencies aren't being added to the build.