Skip to content

Commit

Permalink
Merge pull request #40 from pressidium/next
Browse files Browse the repository at this point in the history
1.2.2
  • Loading branch information
over-engineer authored Nov 29, 2023
2 parents 0809cf2 + 5b37a28 commit e75cdfc
Show file tree
Hide file tree
Showing 12 changed files with 756 additions and 434 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,16 @@ jobs:
- name: Checkout
uses: actions/checkout@v3

- name: Install Composer
uses: php-actions/composer@v6
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php_version: '7.4'
dev: 'no'
php-version: '7.4'

- name: Install dependencies and wrap them
run: composer install

- name: Remove development dependencies and optimize autoloader
run: composer update --no-dev --no-scripts --optimize-autoloader

- name: Install Node.js LTS
uses: actions/setup-node@v3
Expand Down
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -227,3 +227,5 @@ dist
# Built files
/public/**/*
!/public/.gitkeep
includes/classes/dependencies/**/*
includes/Dependencies/**/*
38 changes: 33 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@
"type": "wordpress-plugin",
"license": "GPL-2.0-or-later",
"autoload": {
"classmap": [
"includes/classes"
],
"psr-4": {
"Pressidium\\WP\\CookieConsent\\": "includes/"
}
Expand All @@ -24,6 +27,9 @@
"issues": "https://github.com/pressidium/pressidium-cookie-consent/issues",
"source": "https://github.com/pressidium/pressidium-cookie-consent"
},
"require": {
"php": ">=7.4"
},
"require-dev": {
"squizlabs/php_codesniffer": "^3.7",
"wp-coding-standards/wpcs": "^2.3",
Expand All @@ -34,7 +40,11 @@
"szepeviktor/phpstan-wordpress": "^1.1",
"php-stubs/wordpress-stubs": "^6.1",
"phpstan/extension-installer": "^1.2",
"pressidium/pressidium-cs": "^1.0"
"pressidium/pressidium-cs": "^1.0",
"coenjacobs/mozart": "^0.7.1",
"league/container": "^3.4",
"ext-json": "*",
"psr/log": "^1.1"
},
"post-install-cmd": "./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/pressidium/pressidium-cs",
"post-update-cmd": "./vendor/squizlabs/php_codesniffer/bin/phpcs --config-set installed_paths vendor/wp-coding-standards/wpcs,vendor/phpcompatibility/php-compatibility,vendor/phpcompatibility/phpcompatibility-wp,vendor/phpcompatibility/phpcompatibility-paragonie,vendor/pressidium/pressidium-cs",
Expand All @@ -46,9 +56,27 @@
"dealerdirect/phpcodesniffer-composer-installer": true
}
},
"require": {
"league/container": "^3.4",
"ext-json": "*",
"psr/log": "^1.1"
"extra": {
"mozart": {
"dep_namespace": "Pressidium\\WP\\CookieConsent\\Dependencies\\",
"dep_directory": "/includes/Dependencies/",
"classmap_directory": "/includes/classes/dependencies/",
"classmap_prefix": "Pressidium_Cookie_Consent_",
"packages": [
"league/container",
"psr/log"
],
"delete_vendor_directories": false
}
},
"scripts": {
"post-install-cmd": [
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
],
"post-update-cmd": [
"\"vendor/bin/mozart\" compose",
"composer dump-autoload"
]
}
}
Loading

0 comments on commit e75cdfc

Please sign in to comment.