diff --git a/.docksal/addons/phpcs/phpcs b/.docksal/addons/phpcs/phpcs deleted file mode 100755 index 8aa03721dbb2f2d4fca0054199361a83c11e55fc..0000000000000000000000000000000000000000 --- a/.docksal/addons/phpcs/phpcs +++ /dev/null @@ -1,66 +0,0 @@ -#!/usr/bin/env bash - -## Run PHP Code Sniffer Commands -## -## This command will allow for running Code Sniffer commands -## to help make sure is to coding standards. -## -## Running PHPCS -## fin phpcs cs "[directory name]" -## -## Running PHPCBF -## fin phpcs cbf "[directory name]" -## -## Usage: -## cs Run PHPCS -## cbf Run PHPCBF - -STANDARDS="" - -if [[ -n "${PHPCS_STANDARDS}" ]]; then - STANDARDS="${PHPCS_STANDARDS}" -fi - -if [[ -n "${PHPCS_EXTENSIONS}" ]]; then - EXTENSIONS="${PHPCS_EXTENSIONS}" -fi - -if [[ -f "${PROJECT_ROOT}/${DOCROOT}/sites/default/settings.php" ]] || [[ -f "${PROJECT_ROOT}/${DOCROOT}/sites/default/default.settings.php" ]]; then - STANDARDS="${STANDARDS:-"Drupal,DrupalPractice"}" - EXTENSIONS="${EXTENSIONS:-"php,module,inc,install,test,profile,theme,css,info,txt,md"}"; -elif [[ -f "${PROJECT_ROOT}/${DOCROOT}/wp-config.php" ]]; then - STANDARDS="${STANDARDS:-"WordPress"}" - EXTENSIONS="${EXTENSIONS:-"php"}" -fi - -COMMAND="" - -case "$1" in - cs) - shift - COMMAND="/var/vendor/phpcs" - ;; - cbf) - shift - COMMAND="phpcbf" - ;; - *) - fin help phpcs - exit - ;; -esac - -# If standard flag is used remove our default. -STANDARD_OPT="--standard=\"${STANDARDS}\"" -if [[ "$@" =~ "--standard=" ]]; then - STANDARD_OPT="" -fi - -# If extension flag is used remove our default. -EXTENSION_OPT="--extensions=\"${EXTENSIONS}\"" -if [[ "$@" =~ "--extensions=" ]]; then - EXTENSION_OPT="" -fi -print "$COMMAND $STANDARD_OPT $EXTENSION_OPT $@" -# run the command in the container. -fin exec "$COMMAND $STANDARD_OPT $EXTENSION_OPT $@" diff --git a/.docksal/commands/init b/.docksal/commands/init deleted file mode 100755 index 1bac4d3749e82890850b3f78a21fd7a4fec6f9df..0000000000000000000000000000000000000000 --- a/.docksal/commands/init +++ /dev/null @@ -1,3 +0,0 @@ -fin up -fin exec composer install -fin exec /var/www/vendor/bin/run drupal:site-install diff --git a/.docksal/commands/run_tests b/.docksal/commands/run_tests deleted file mode 100755 index a1539c2a8ba49e6cc0224f90c0d28bdbb7bb10f3..0000000000000000000000000000000000000000 --- a/.docksal/commands/run_tests +++ /dev/null @@ -1,10 +0,0 @@ -#!/usr/bin/env bash - -## Run phpunit tests -## -## Tests: -## - fin run_tests --filter 'UiPatternsSettingsRenderTest' - -set -e - -fin exec /var/www/vendor/bin/phpunit $* diff --git a/.docksal/docksal.env b/.docksal/docksal.env deleted file mode 100644 index e8be01adbec89bc63feb7ed59830b40a28a81388..0000000000000000000000000000000000000000 --- a/.docksal/docksal.env +++ /dev/null @@ -1,6 +0,0 @@ -DOCKSAL_STACK=default -DOCROOT=build -XDEBUG_ENABLED=0 -WEB_IMAGE='docksal/web:2.1-apache2.4' -DB_IMAGE='docksal/db:1.3-mysql-5.7' -CLI_IMAGE='docksal/cli:php8.1' diff --git a/.docksal/docksal.yml b/.docksal/docksal.yml deleted file mode 100644 index 2c4378d01d4814cc78821c8d49b327ade3a1d824..0000000000000000000000000000000000000000 --- a/.docksal/docksal.yml +++ /dev/null @@ -1,28 +0,0 @@ -version: "2.1" -services: - # Web - web: - extends: - file: ${HOME}/.docksal/stacks/services.yml - service: apache - depends_on: - - cli - - # DB - db: - extends: - file: ${HOME}/.docksal/stacks/services.yml - service: mysql - # CLI - cli: - extends: - file: ${HOME}/.docksal/stacks/services.yml - service: cli - labels: - - io.docksal.virtual-host=storybook.${VIRTUAL_HOST} - - io.docksal.virtual-port=3000 - environment: - - "XDEBUG_CONFIG=client_host=${DOCKSAL_HOST_IP} client_port=9000" - - "XDEBUG_MODE=debug" - - DOCKSAL=1 - - PHP_IDE_CONFIG=serverName=${VIRTUAL_HOST} diff --git a/.docksal/etc/php/php-cli.ini b/.docksal/etc/php/php-cli.ini deleted file mode 100644 index a764a8a2643837ca8078b8a298cb469318997d64..0000000000000000000000000000000000000000 --- a/.docksal/etc/php/php-cli.ini +++ /dev/null @@ -1,4 +0,0 @@ -; PHP CLI settings -[php] -; Maximum amount of memory a script may consume -memory_limit = -1 \ No newline at end of file diff --git a/.docksal/etc/php/php.ini b/.docksal/etc/php/php.ini deleted file mode 100644 index c96b7075874a401cf60568444e504645db008d62..0000000000000000000000000000000000000000 --- a/.docksal/etc/php/php.ini +++ /dev/null @@ -1,4 +0,0 @@ -; PHP CLI settings -[php] -; Maximum amount of memory a script may consume -memory_limit = -1 diff --git a/.github_changelog_generator b/.github_changelog_generator deleted file mode 100644 index 6d4371808517eec89a5c5b815f184a5baa9e6f74..0000000000000000000000000000000000000000 --- a/.github_changelog_generator +++ /dev/null @@ -1,5 +0,0 @@ -merge_prefix=**Merged Pull Requests** -tag1='API change' -include-labels='API change,Bug,New feature' -enhancement_prefix=**New features** -enhancement-labels='New feature' diff --git a/.gitignore b/.gitignore index 225938e9ad5b7013e79b77b473318779a921471e..a09c56df5c7fd744f3166e151ae91dd41e57fec9 100755 --- a/.gitignore +++ b/.gitignore @@ -1,12 +1 @@ /.idea -/vendor -/composer.lock -/docs/_build -/build/ -/phpunit.xml -/docker-compose.override.yml -/runner.yml -/.docksal/docksal-local.env -/.editorconfig -/.gitattributes -/.phpunit.result.cache diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index fe179c33a2a96f75f453f27f380ff6b38a87af62..0000000000000000000000000000000000000000 --- a/.travis.yml +++ /dev/null @@ -1,37 +0,0 @@ -sudo: required -language: php - -php: - - 7.3 - - 7.4 - -services: - - docker - -env: - global: - - DOCKER_COMPOSE_VERSION=1.25.5 - matrix: - - DRUPAL_VERSION=~8.8.7 GRUMPHP_CONFIG=grumphp.drupal8.yml - - DRUPAL_VERSION=~8.9.0 GRUMPHP_CONFIG=grumphp.drupal8.yml - - DRUPAL_VERSION=~9.0.0 GRUMPHP_CONFIG=grumphp.yml - - DRUPAL_VERSION=9.1.x-dev GRUMPHP_CONFIG=grumphp.yml - -matrix: - allow_failures: - - env: DRUPAL_VERSION=9.1.x-dev - -before_install: - - docker-compose up -d - -install: - - docker-compose exec -u root php composer require drupal/core-recommended:$DRUPAL_VERSION --dev - - docker-compose exec -u root php chown -R www-data:www-data build - -script: - - docker-compose exec -u www-data php ./vendor/bin/grumphp run -c $GRUMPHP_CONFIG - - docker-compose exec -u www-data php ./vendor/bin/phpunit - -notifications: - email: false - diff --git a/CHANGELOG.md b/CHANGELOG.md deleted file mode 100644 index 420e6f23d0e3718c1c5268dee41ebe58f931a563..0000000000000000000000000000000000000000 --- a/CHANGELOG.md +++ /dev/null @@ -1 +0,0 @@ -# Change Log diff --git a/composer.json b/composer.json deleted file mode 100644 index 5dceecbf66546a7f8ef09b425a6380ef715c8bb1..0000000000000000000000000000000000000000 --- a/composer.json +++ /dev/null @@ -1,89 +0,0 @@ -{ - "name": "drupal/ui_patterns_settings", - "type": "drupal-module", - "description": "UI Patterns Settings.", - "keywords": [ - "drupal", - "web", - "ui" - ], - "license": "GPL-2.0+", - "minimum-stability": "dev", - "prefer-stable": true, - "authors": [ - { - "name": "Christian Wiedemann", - "email": "christian.wiedemann@key-tec.de" - } - ], - "require-dev": { - "composer/installers": "^1.2", - "drupal/coder": "*", - "drupal/core-composer-scaffold": "^8.8 || ^9 || ^10", - "drupal/core-dev": "^8.8 || ^9 || ^10", - "drupal/core-recommended": "~10 || ^9", - "drupal/ds": "^3.15", - "drupal/token": "~1.0", - "drupal/ui_patterns": "~1.3", - "drupal/ui_patterns_field_formatters": "^2.0", - "drupal/ui_patterns_layout_builder": "~1", - "drush/drush": "~11", - "openeuropa/task-runner": "~2.0.0-alpha1", - "phpro/grumphp": "~1.5" - }, - "repositories": [ - { - "type": "composer", - "url": "https://packages.drupal.org/8" - } - ], - "autoload": { - "psr-4": { - "Drupal\\ui_patterns_settings_settings\\": "./src" - } - }, - "autoload-dev": { - "psr-4": { - "Drupal\\Tests\\ui_patterns_settings_settings\\": "./tests/src" - } - }, - "scripts": { - "post-install-cmd": "./vendor/bin/run drupal:site-setup", - "post-update-cmd": "./vendor/bin/run drupal:site-setup" - }, - "extra": { - "enable-patching": true, - "composer-exit-on-patch-failure": true, - "drupal-scaffold": { - "locations": { - "web-root": "build/" - } - }, - "installer-paths": { - "build/core": [ - "type:drupal-core" - ], - "build/modules/contrib/{$name}": [ - "type:drupal-module" - ], - "build/profiles/contrib/{$name}": [ - "type:drupal-profile" - ], - "build/themes/contrib/{$name}": [ - "type:drupal-theme" - ] - } - }, - "config": { - "sort-packages": true, - "allow-plugins": { - "composer/installers": true, - "cweagans/composer-patches": true, - "drupal/core-composer-scaffold": true, - "phpro/grumphp": true, - "phpstan/extension-installer": true, - "dealerdirect/phpcodesniffer-composer-installer": true, - "oomphinc/composer-installers-extender": true - } - } -} diff --git a/docker-compose.yml b/docker-compose.yml deleted file mode 100644 index c9c010c560b4e0c3dfdbc58902b5fe971acfe076..0000000000000000000000000000000000000000 --- a/docker-compose.yml +++ /dev/null @@ -1,67 +0,0 @@ -version: "2" - -services: - - mariadb: - image: wodby/mariadb:10.3-3.8.4 - stop_grace_period: 30s - environment: - MYSQL_ROOT_PASSWORD: password - MYSQL_DATABASE: drupal - MYSQL_USER: drupal - MYSQL_PASSWORD: drupal - - php: - image: wodby/drupal-php:${TRAVIS_PHP_VERSION}-4.15.9 - environment: - DB_HOST: mariadb - DB_USER: drupal - DB_PASSWORD: drupal - DB_NAME: drupal - DB_DRIVER: mysql - PHP_XDEBUG: 1 - PHP_XDEBUG_DEFAULT_ENABLE: 1 - PHP_XDEBUG_REMOTE_CONNECT_BACK: 1 - PHP_XDEBUG_REMOTE_HOST: "10.254.254.254" - PHP_XDEBUG_IDEKEY: "PHPSTORM" - PHP_IDE_CONFIG: "serverName=ui_patterns" - volumes: - - ./:/var/www/html - - nginx: - image: wodby/nginx:1.15-5.0.0 - depends_on: - - php - environment: - NGINX_STATIC_OPEN_FILE_CACHE: "off" - NGINX_ERROR_LOG_LEVEL: debug - NGINX_BACKEND_HOST: php - NGINX_SERVER_ROOT: /var/www/html/build - NGINX_VHOST_PRESET: drupal8 - volumes: - - ./:/var/www/html - ports: - - "8080:80" - - # If you would like to see what is going on you can run the following on your host: - # docker run --rm -p 4444:4444 -p 5900:5900 --network="host" selenium/standalone-chrome-debug:latest - # Newer version of this image might run into this issue: - # @link https://github.com/elgalu/docker-selenium/issues/20 - selenium: - image: selenium/standalone-chrome-debug:3.11 - expose: - - '4444' - environment: - - DISPLAY=:99 - - SE_OPTS=-debug - - SCREEN_WIDTH=1280 - - SCREEN_HEIGHT=800 - - VNC_NO_PASSWORD=1 - ports: - - '4444:4444' - - "5900:5900" - volumes: - - /dev/shm:/dev/shm - -volumes: - codebase: diff --git a/grumphp b/grumphp deleted file mode 100644 index 7d9c0de2a87a0a1e066e518d2fbf10780de7581e..0000000000000000000000000000000000000000 --- a/grumphp +++ /dev/null @@ -1,16 +0,0 @@ -parameters: - ascii: - failed: ~ - succeeded: ~ - tasks: - phpcs: - standard: vendor/drupal/coder/coder_sniffer/Drupal/ - ignore_patterns: - - build/ - - vendor/ - triggered_by: - - php - - module - - install - - inc - - theme diff --git a/grumphp.drupal8.yml b/grumphp.drupal8.yml deleted file mode 100644 index 79311e2201080fa38dc20e442475b4245a2cd82b..0000000000000000000000000000000000000000 --- a/grumphp.drupal8.yml +++ /dev/null @@ -1,16 +0,0 @@ -grumphp: - ascii: - failed: ~ - succeeded: ~ - tasks: - phpcs: - standard: vendor/drupal/coder/coder_sniffer/Drupal/ - ignore_patterns: - - build/ - - vendor/ - triggered_by: - - php - - module - - install - - inc - - theme diff --git a/phpcs.xml.dist b/phpcs.xml.dist deleted file mode 100644 index b5163323d7a58b58ca84ce6a59bf3ec244665f2b..0000000000000000000000000000000000000000 --- a/phpcs.xml.dist +++ /dev/null @@ -1,31 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> - -<!-- Adapted from Acquia Coding Standards default ruleset. --> -<!-- @see https://github.com/acquia/coding-standards-php/blob/develop/example/phpcs.xml.dist --> - -<!-- https://github.com/squizlabs/PHP_CodeSniffer/wiki/Annotated-Ruleset --> -<ruleset name="Example"> - - <description>An example PHP CodeSniffer configuration.</description> - - <!-- Set extensions to scan (taken from Coder 8.3.6). --> - <!-- @see https://git.drupalcode.org/project/coder/blob/8.3.6/coder_sniffer/Drupal/ruleset.xml#L8 --> - <arg name="extensions" value="php,module,inc,install,test,profile,theme,css,info,txt,md,yml"/> - - <arg name="colors"/> - <arg name="cache" value=".phpcs-cache"/> - <arg name="parallel" value="10"/> - - <file>docroot/modules/custom</file> - <file>docroot/themes/custom</file> - <file>tests</file> - - <exclude-pattern>*/behat</exclude-pattern> - <exclude-pattern>*/node_modules</exclude-pattern> - <exclude-pattern>*/vendor</exclude-pattern> - - <exclude-pattern>vendor/*</exclude-pattern> - - <rule ref="AcquiaDrupalStrict"/> - -</ruleset> diff --git a/runner.docksal.yml b/runner.docksal.yml deleted file mode 100644 index 7222a68bfa9738fe2d44c9ecde100c8f76a2af27..0000000000000000000000000000000000000000 --- a/runner.docksal.yml +++ /dev/null @@ -1,46 +0,0 @@ -drupal: - root: "build" - base_url: "http://ui-patterns-settings.docksal" - database: - host: "db" - port: "3306" - name: "default" - user: "root" - password: "root" - post_install: - - "./vendor/bin/drush en -y ui_patterns ui_patterns_library ui_patterns_ds ui_patterns_field_group ui_patterns_layouts ui_patterns_views ui_patterns_settings ui_patterns_settings_render_test" - - "./vendor/bin/drush en -y coffee config_devel" - - "./vendor/bin/drush en -y page_manager paragraphs panels" - - "./vendor/bin/drush cr" - settings: - settings: - container_yamls: - - "/var/www/${drupal.root}/sites/development.services.yml" - extension_discovery_scan_tests: true - cache: - bins: - dynamic_page_cache: "cache.backend.null" - page_cache: "cache.backend.null" - render: "cache.backend.null" - file_scan_ignore_directories: - - "vendor" - - "${drupal.root}" - -selenium: - host: "http://selenium:4444" - browser: "chrome" - -commands: - drupal:site-setup: - - { task: "symlink", from: "../../../../src", to: "${drupal.root}/modules/custom/ui_patterns_settings/src" } - - { task: "symlink", from: "../../../../tests", to: "${drupal.root}/modules/custom/ui_patterns_settings/tests" } - - { task: "symlink", from: "../../../../ui_patterns_settings.info.yml", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.info.yml" } - - { task: "symlink", from: "../../../../ui_patterns_settings.module", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.module" } - - { task: "symlink", from: "../../../../ui_patterns_settings.services.yml", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.services.yml" } - # Generate settings.testing.php, it will be used when running functional tests. - - { task: "process-php", type: "write", config: "drupal.settings", source: "${drupal.root}/sites/default/default.settings.php", destination: "${drupal.root}/sites/default/settings.testing.php", override: true } - - { task: "run", command: "drupal:drush-setup" } - - { task: "run", command: "drupal:settings-setup" } - - { task: "run", command: "setup:phpunit" } - setup:phpunit: - - { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" } diff --git a/runner.yml.dist b/runner.yml.dist deleted file mode 100644 index 6be0adfb4e212f99b9fcbea8c70fe234766e8bc4..0000000000000000000000000000000000000000 --- a/runner.yml.dist +++ /dev/null @@ -1,48 +0,0 @@ -drupal: - root: "build" - base_url: "http://ui-patterns-settings.docksal" - database: - host: "db" - port: "3306" - name: "default" - user: "root" - password: "root" - post_install: - - "./vendor/bin/drush en -y ui_patterns layout_builder ui_patterns_layout_builder ui_patterns_library ui_patterns_layouts ui_patterns_views ui_patterns_settings ui_patterns_settings_render_test" - - "./vendor/bin/drush cr" - settings: - settings: - container_yamls: - - "/var/www/${drupal.root}/sites/development.services.yml" - extension_discovery_scan_tests: true - cache: - bins: - dynamic_page_cache: "cache.backend.null" - page_cache: "cache.backend.null" - render: "cache.backend.null" - file_scan_ignore_directories: - - "vendor" - - "${drupal.root}" - -selenium: - host: "http://selenium:4444" - browser: "chrome" - -commands: - drupal:site-setup: - - { task: "symlink", from: "../../../../config", to: "${drupal.root}/modules/custom/ui_patterns_settings/config" } - - { task: "symlink", from: "../../../../src", to: "${drupal.root}/modules/custom/ui_patterns_settings/src" } - - { task: "symlink", from: "../../../../js", to: "${drupal.root}/modules/custom/ui_patterns_settings/js" } - - { task: "symlink", from: "../../../../css", to: "${drupal.root}/modules/custom/ui_patterns_settings/css" } - - { task: "symlink", from: "../../../../tests", to: "${drupal.root}/modules/custom/ui_patterns_settings/tests" } - - { task: "symlink", from: "../../../../ui_patterns_settings.libraries.yml", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.libraries.yml" } - - { task: "symlink", from: "../../../../ui_patterns_settings.info.yml", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.info.yml" } - - { task: "symlink", from: "../../../../ui_patterns_settings.module", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.module" } - - { task: "symlink", from: "../../../../ui_patterns_settings.services.yml", to: "${drupal.root}/modules/custom/ui_patterns_settings/ui_patterns_settings.services.yml" } - # Generate settings.testing.php, it will be used when running functional tests. - - { task: "process-php", type: "write", config: "drupal.settings", source: "${drupal.root}/sites/default/default.settings.php", destination: "${drupal.root}/sites/default/settings.testing.php", override: true } - - { task: "run", command: "drupal:drush-setup" } - - { task: "run", command: "drupal:settings-setup" } - - { task: "run", command: "setup:phpunit" } - setup:phpunit: - - { task: "process", source: "phpunit.xml.dist", destination: "phpunit.xml" }