Created
October 29, 2022 21:54
-
-
Save d34dman/a4b480a3471afc86a7951aadc7a42dd1 to your computer and use it in GitHub Desktop.
Sample composer.json for adding fontawesome_iconpicker and its dependencies to your Drupal Project
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"name": "drupal/recommended-project", | |
"description": "Project template for Drupal 9 projects with a relocated document root", | |
"type": "project", | |
"license": "GPL-2.0-or-later", | |
"homepage": "https://www.drupal.org/project/drupal", | |
"support": { | |
"docs": "https://www.drupal.org/docs/user_guide/en/index.html", | |
"chat": "https://www.drupal.org/node/314178" | |
}, | |
"repositories": [ | |
{ | |
"type": "composer", | |
"url": "https://packages.drupal.org/8" | |
}, | |
{ | |
"type": "package", | |
"package": { | |
"name": "appolodev/vanilla-icon-picker", | |
"version": "v1.1.3", | |
"type": "drupal-library", | |
"dist": { | |
"url": "https://github.com/AppoloDev/vanilla-icon-picker/archive/refs/tags/v1.1.3.zip", | |
"type": "zip" | |
} | |
} | |
} | |
], | |
"require": { | |
"composer/installers": "^1.9", | |
"cweagans/composer-patches": "^1.7", | |
"drupal/core-composer-scaffold": "^9.4", | |
"drupal/core-project-message": "^9.4", | |
"drupal/core-recommended": "^9.4", | |
"drupal/fontawesome_iconpicker": "^3" | |
}, | |
"conflict": { | |
"drupal/drupal": "*" | |
}, | |
"minimum-stability": "dev", | |
"prefer-stable": true, | |
"config": { | |
"allow-plugins": { | |
"composer/installers": true, | |
"drupal/core-composer-scaffold": true, | |
"drupal/core-project-message": true, | |
"dealerdirect/phpcodesniffer-composer-installer": true, | |
"cweagans/composer-patches": true, | |
"phpro/grumphp-shim": true, | |
"phpstan/extension-installer": true | |
}, | |
"sort-packages": true, | |
"platform": { | |
"php": "8.0" | |
} | |
}, | |
"extra": { | |
"drupal-scaffold": { | |
"locations": { | |
"web-root": "web/" | |
} | |
}, | |
"installer-paths": { | |
"web/core": [ | |
"type:drupal-core" | |
], | |
"web/libraries/{$name}": [ | |
"type:drupal-library" | |
], | |
"web/modules/contrib/{$name}": [ | |
"type:drupal-module" | |
], | |
"web/profiles/contrib/{$name}": [ | |
"type:drupal-profile" | |
], | |
"web/themes/contrib/{$name}": [ | |
"type:drupal-theme" | |
], | |
"drush/Commands/contrib/{$name}": [ | |
"type:drupal-drush" | |
], | |
"web/modules/custom/{$name}": [ | |
"type:drupal-custom-module" | |
], | |
"web/profiles/custom/{$name}": [ | |
"type:drupal-custom-profile" | |
], | |
"web/themes/custom/{$name}": [ | |
"type:drupal-custom-theme" | |
] | |
}, | |
"drupal-core-project-message": { | |
"include-keys": [ | |
"homepage", | |
"support" | |
], | |
"post-create-project-cmd-message": [ | |
"<bg=blue;fg=white> </>", | |
"<bg=blue;fg=white> Congratulations, you’ve installed the Drupal codebase </>", | |
"<bg=blue;fg=white> from the drupal/recommended-project template! </>", | |
"<bg=blue;fg=white> </>", | |
"", | |
"<bg=yellow;fg=black>Next steps</>:", | |
" * Install the site: https://www.drupal.org/docs/8/install", | |
" * Read the user guide: https://www.drupal.org/docs/user_guide/en/index.html", | |
" * Get support: https://www.drupal.org/support", | |
" * Get involved with the Drupal community:", | |
" https://www.drupal.org/getting-involved", | |
" * Remove the plugin that prints this message:", | |
" composer remove drupal/core-project-message" | |
] | |
} | |
}, | |
"require-dev": { | |
"dealerdirect/phpcodesniffer-composer-installer": "^0.7.2", | |
"drupal/coder": "^8.3", | |
"mglaman/phpstan-drupal": "^1.1", | |
"php-parallel-lint/php-parallel-lint": "^1.3", | |
"phpro/grumphp-shim": "^1.13", | |
"phpstan/extension-installer": "^1.1", | |
"phpstan/phpstan": "^1.8", | |
"phpstan/phpstan-deprecation-rules": "^1.0", | |
"roave/security-advisories": "dev-master", | |
"squizlabs/php_codesniffer": "^3.7" | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment