See the readme.txt for installation and usage instructions.
To use the provided development environment, you'll first need to install and launch Docker. Once it's running, the next steps are:
git clone git@github.com:imaginarymachines/core-style-plugin.git
cd core-style-plugin
npm preinstall
npm composer install
npm install
npm run build
npm run env start
See package.json
for other available scripts you might want to use during development, like linting and testing.
Local development uses @wordpress/wp-env
- Start server
npm run env start
- [http://localhost:8042]
- Stop server
npm run env stop
- Run phpunit tests:
npm run test:php
- Format PHP code:
npm run format:php
- Lint, but not fix PHP code
npm run lint:php
- Format JS code:
npm run format:js
- Format CSS code:
npm run format:css
- Lint, but not fix JavaScript
npm run lint:js
- Lint, but not fix CSS
npm run lint:css
Deployments to WP.org plugin repository are handled automatically by the GitHub action .github/workflows/deploy.yml. All merges to the main
branch are commited to the trunk
directory while all Git tags are pushed as versioned releases under the tags
directory.
Forked from WordPress/two-factor and released under GPLv2 or later.