Skip to content
This repository has been archived by the owner on Apr 8, 2024. It is now read-only.

Latest commit

 

History

History
28 lines (23 loc) · 664 Bytes

README.md

File metadata and controls

28 lines (23 loc) · 664 Bytes

Simple Symlink

Composer script that symlinks files and directories.

Example usage

$ composer require pronovix/simple-symlink
      "extra": {
        "simple-symlinks": {
            ".": "build/web/modules/drupal_module"
        }
    },
     "scripts": {
        "post-install-cmd": [
            "Pronovix\\SimpleSymlink\\ScriptHandler::createSymlinks"
        ],
        "post-update-cmd": [
            "Pronovix\\SimpleSymlink\\ScriptHandler::createSymlinks"
        ]
    }

This ensures that the Composer root project is symlinked to the build/web/modules/drupal_module directory when a package is installed or updated.