{"id":19351818,"url":"https://github.com/thunder/thunder-project","last_synced_at":"2025-04-23T07:31:07.400Z","repository":{"id":34896475,"uuid":"186646738","full_name":"thunder/thunder-project","owner":"thunder","description":null,"archived":false,"fork":false,"pushed_at":"2025-01-10T13:58:06.000Z","size":134,"stargazers_count":9,"open_issues_count":4,"forks_count":1,"subscribers_count":4,"default_branch":"4.x","last_synced_at":"2025-04-02T09:51:14.775Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/thunder.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-05-14T15:07:14.000Z","updated_at":"2025-01-10T13:47:32.000Z","dependencies_parsed_at":"2024-01-09T17:28:01.698Z","dependency_job_id":"89ee23a5-32f2-452f-b674-076539e02ec0","html_url":"https://github.com/thunder/thunder-project","commit_stats":{"total_commits":72,"total_committers":12,"mean_commits":6.0,"dds":0.625,"last_synced_commit":"2660c11be95ca9bfc044bdd65ccd3f1303089297"},"previous_names":[],"tags_count":16,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Fthunder-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Fthunder-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Fthunder-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/thunder%2Fthunder-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/thunder","download_url":"https://codeload.github.com/thunder/thunder-project/tar.gz/refs/heads/4.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250391137,"owners_count":21422846,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T04:37:20.937Z","updated_at":"2025-04-23T07:31:07.113Z","avatar_url":"https://github.com/thunder.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Composer based Thunder installation\n\nThis project template should provide a kickstart for managing your site dependencies with [Composer](https://getcomposer.org/).\n\n## Usage\n\nSee our [install documentation](https://thunder.github.io/developer-guide/setup.html#install-thunder) on how to use Thunder project.\nWe also have documentation on [extending](https://thunder.github.io/developer-guide/setup.html#extend) and [updating](https://thunder.github.io/developer-guide/setup.html#update) Thunder sites. \n\n## What does the template do?\n\nWhen installing the given `composer.json` some tasks are taken care of:\n\n* Drupal will be installed in the `docroot`-directory.\n* Autoloader is implemented to use the generated composer autoloader in `vendor/autoload.php`,\n  instead of the one provided by Drupal (`docroot/vendor/autoload.php`).\n* Modules (packages of type `drupal-module`) will be placed in `docroot/modules/contrib/`\n* Theme (packages of type `drupal-theme`) will be placed in `docroot/themes/contrib/`\n* Profiles (packages of type `drupal-profile`) will be placed in `docroot/profiles/contrib/`\n* Downloads Drupal scaffold files such as `index.php`, or `.htaccess`\n* Creates `sites/default/files`-directory.\n* Latest version of drush is installed locally for use at `bin/drush`.\n* Latest version of DrupalConsole is installed locally for use at `bin/drupal`.\n\n### File update\n\nThis project will attempt to keep all of your Thunder and drupal core files up-to-date; the \nproject [drupal-composer/drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) \nis used to ensure that your scaffold files are updated every time drupal/core is \nupdated. If you customize any of the \"scaffolding\" files (commonly .htaccess), \nyou may need to merge conflicts if any of your modfied files are updated in a \nnew release of Drupal core.\n\nFollow the steps below to update your thunder files.\n\n1. Run `composer update`\n1. Run `git diff` to determine if any of the scaffolding files have changed. \n   Review the files for any changes and restore any customizations to \n  `.htaccess` or `robots.txt`.\n1. Commit everything all together in a single commit, so `docroot` will remain in\n   sync with the `core` when checking out branches or running `git bisect`.\n1. In the event that there are non-trivial conflicts in step 2, you may wish \n   to perform these steps on a branch, and use `git merge` to combine the \n   updated core files with your customized files. This facilitates the use \n   of a [three-way merge tool such as kdiff3](http://www.gitshah.com/2010/12/how-to-setup-kdiff-as-diff-tool-for-git.html). This setup is not necessary if your changes are simple; \n   keeping all of your modifications at the beginning or end of the file is a \n   good strategy to keep merges easy.\n\n## FAQ\n\n### Should I commit the contrib modules I download\n\nComposer recommends **no**. They provide [argumentation against but also \nworkrounds if a project decides to do it anyway](https://getcomposer.org/doc/faqs/should-i-commit-the-dependencies-in-my-vendor-directory.md).\n\n### How can I apply patches to downloaded modules?\n\nIf you need to apply patches (depending on the project being modified, a pull \nrequest is often a better solution), you can do so with the \n[composer-patches](https://github.com/cweagans/composer-patches) plugin.\n\nTo add a patch to drupal module foobar insert the patches section in the extra \nsection of composer.json:\n```json\n\"extra\": {\n    \"patches\": {\n        \"drupal/foobar\": {\n            \"Patch description\": \"URL or local path to patch\"\n        }\n    }\n}\n```\n### Should I commit the scaffolding files?\n\nThe [drupal-scaffold](https://github.com/drupal-composer/drupal-scaffold) plugin can download the scaffold files (like\nindex.php, update.php, …) to the web/ directory of your project. If you have not customized those files you could choose\nto not check them into your version control system (e.g. git). If that is the case for your project it might be\nconvenient to automatically run the drupal-scaffold plugin after every install or update of your project. You can\nachieve that by registering `@drupal-scaffold` as post-install and post-update command in your composer.json:\n\n```json\n\"scripts\": {\n    \"drupal-scaffold\": \"DrupalComposer\\\\DrupalScaffold\\\\Plugin::scaffold\",\n    \"post-install-cmd\": [\n        \"@drupal-scaffold\",\n        \"...\"\n    ],\n    \"post-update-cmd\": [\n        \"@drupal-scaffold\",\n        \"...\"\n    ]\n},\n```\n### How can I prevent downloading modules from Thunder, that I do not need?\n\nTo prevent downloading a module, that Thunder provides but that you do not need, add a replace block to your composer.json:\n\n```json\n\"replace\": {\n    \"drupal/features\": \"*\"\n}\n```\n\nThis example prevents any version of the feature module to be downloaded.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunder%2Fthunder-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fthunder%2Fthunder-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fthunder%2Fthunder-project/lists"}