Repository navigation
Developer Notes
Rob Knight edited this page Jan 10, 2023
·
10 revisions
A collection of links, code snippets, and documentation of things we've learned along the way.
- In theme directory, run
npm run build && composer install - Release
npm run release- Updates the CHANGELOG
- Bumps version in NPM package
- TODO: how to bump version in style.css?
- Run
npm run zip
- Added
builddirectory to the repo and deploying from Github directly to the CampusPress Bitbucket repo. - We need to add pre-deploy testing and code formatting
- An Introduction to WordPress Block Themes
- How to Use The @wordpress/scripts Build Tool with Custom WordPress Blocks
- Install PHP_CodeSniffer
- Install the WordPress Coding Standards in a permanent location in your filesystem. PHPCS will need to reference the location.
- Add the WPCS path from above ⬆️ to PHPCS's
installed_pathsconfig setting. - Install PHPCS extension for VC Code
- Add settings to VS Code (settings.json):
"phpcs.enable": true,
"phpcs.executablePath": "./vendor/bin/phpcs",
"phpcs.standard": "WordPress",
"phpcs.showWarnings": true,
"phpcs.composerJsonPath": "composer.json",