Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
21 commits
Select commit Hold shift + click to select a range
b13c578
chore: initial plugin version
chrishbite Jun 13, 2024
d706b2b
ci: correct the order of ci steps
chrishbite Jun 13, 2024
1bafd74
ci: increase phpstan memory limit
chrishbite Jun 13, 2024
22689b6
ci: fix config format
chrishbite Jun 13, 2024
bfd993d
chore: remove unneeded files for built branches
chrishbite Jun 13, 2024
93401e3
Update .github/CODEOWNERS
chrishbite Jun 17, 2024
ec05bd7
Update CODEOWNERS
chrishbite Jun 17, 2024
0106c23
chore: updates composer.lock file
chrishbite Jun 17, 2024
301f28b
Update src/blocks/image-comparison-item/components/AlternativeText.js
chrishbite Jun 17, 2024
d7351c9
fix: remove unnecessary enqueued script
chrishbite Jun 17, 2024
ae673fb
fix: aligns all constants with the same prefix
chrishbite Jun 17, 2024
210d6f1
Update index.php
chrishbite Jun 17, 2024
65196e7
fix: updates css selectors to bigbite standards
chrishbite Jun 18, 2024
1deadb8
fix: loads only cursor css rules on the frontend
chrishbite Jun 18, 2024
e553512
fix: refactors generated colour css variable code
chrishbite Jun 19, 2024
da43028
chore: corrects comment in block render
chrishbite Jun 19, 2024
b0e0891
fix: swaps magic constant __FILE__ to __DIR__
chrishbite Jun 24, 2024
365a2d4
fix: pass plugin path into loader constructor
chrishbite Jun 24, 2024
ee7f845
feat: adds keyboard navigation controls
chrishbite Jun 24, 2024
c6e274b
fix: updates Edit and Save import names
chrishbite Jun 24, 2024
72586dd
chore: adds explanatory comment to colours array
chrishbite Jun 25, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
29 changes: 29 additions & 0 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
version: 2.1

orbs:
project: bigbite/[email protected]

jobs:
build:
executor:
name: project/default
php: '8.2'
steps:
- checkout
- project/setup
- project/composer-install
- project/phpcs
- project/npm-install
- project/npm-build
- project/phpstan:
memory_limit: '512M'
- project/create-build

workflows:
workflow:
jobs:
- build:
context: bigbite
filters:
branches:
ignore: /^.*-built$/
24 changes: 24 additions & 0 deletions .deployignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# npm

node_modules
package-lock.json
package.json

# composer

composer.lock
composer.json

# build tools

src
.phpcs.xml.dist
webpack.config.js

# other

.gitignore
vendor
.github
.node-version
phpstan.neon
1 change: 1 addition & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* @chrishbite @jaymcp @bigbite/lead-engineers
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
node_modules/
vendor/
dist/

.DS_Store
inc/asset-settings.php
1 change: 1 addition & 0 deletions .node-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
v22.3.0
4 changes: 4 additions & 0 deletions .phpcs.xml.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0"?>
<ruleset name="Big Bite Image Comparison Rules">
<rule ref="./vendor/bigbite/phpcs-config/BigBite" />
</ruleset>
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1 +1,3 @@
# image-comparison
# Image Comparison

Display two images in a comparison state.
20 changes: 20 additions & 0 deletions composer.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"name": "bigbite/image-comparison",
"description": "Display two images in a comparison state.",
"type": "wordpress-plugin",
"config": {
"preferred-install": "dist",
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require-dev": {
"bigbite/phpcs-config": "^2.0",
"phpstan/phpstan": "^1.10",
"szepeviktor/phpstan-wordpress": "^1.3"
},
"scripts": {
"phpcs": "./vendor/bin/phpcs .",
"phpstan": "@php ./vendor/bin/phpstan --memory-limit=512M"
}
}
Loading