Add composer.json

This commit is contained in:
Kyle Huynh 2021-12-09 10:21:31 -05:00
parent a3cca6bc37
commit 5f4f5e2d91
2 changed files with 45 additions and 1 deletions

View file

@ -1,6 +1,6 @@
# This .info.yml files provides the basic information about our module to Drupal # This .info.yml files provides the basic information about our module to Drupal
# More: https://www.drupal.org/node/2000204 # More: https://www.drupal.org/node/2000204
name: 'Islandora Advanced Search' name: 'Advanced Search'
description: "Creates an Advanced Search block and other enhancements to search." description: "Creates an Advanced Search block and other enhancements to search."
type: module type: module
package: Islandora package: Islandora

44
composer.json Normal file
View file

@ -0,0 +1,44 @@
{
"name": "islandora/advanced_search",
"type": "drupal-module",
"description": "This module creates several blocks to support searching. It also enables the use of Ajax with search blocks, facets, and search results.",
"keywords": [
"Islandora",
"Advanced Search"
],
"license": "GPL-2.0-only",
"homepage": "https://github.com/digitalutsc/advanced_search",
"support": {
"issues": "https://github.com/digitalutsc/advanced_search/issues",
"source": "https://github.com/digitalutsc/advanced_search/tree/islandora_lite"
},
"minimum-stability": "dev",
"repositories": {
"drupal": {
"type": "composer",
"url": "https://packages.drupal.org/8"
}
},
"require": {
"drupal/facets": "*",
"drupal/search_api_solr": "*"
},
"require-dev": {
"phpunit/phpunit": "^8",
"squizlabs/php_codesniffer": "^3",
"drupal/coder": "*",
"sebastian/phpcpd": "*"
},
"scripts": {
"post-install-cmd": [
"./vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer"
],
"post-update-cmd": [
"./vendor/bin/phpcs --config-set installed_paths ~/.composer/vendor/drupal/coder/coder_sniffer"
],
"check": [
"./vendor/bin/phpcs --standard=Drupal --ignore=*.md,vendor --extensions=php,module,inc,install,test,profile,theme,css,info .",
"./vendor/bin/phpcpd --names='*.module,*.inc,*.test,*.php' --exclude=vendor ."
]
}
}