2017 © Pedro Peláez
 

library symlinked-extensions

Replaces composer installed plugins, themes and mu-plugins with symlinks to defined folders.

image

goose-studio/symlinked-extensions

Replaces composer installed plugins, themes and mu-plugins with symlinks to defined folders.

  • Friday, July 6, 2018
  • by andreasnrb
  • Repository
  • 0 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Symlinked Directories Build Status

Simple script that replaces a directory with a symlink. If the targeted directory does not exist symlink is still created. The symlink paths directory name is matched against the directories in the chosen target path., (*1)

Add below config to composer.json to run the script., (*2)

    "post-update-cmd": ["php vendor/bin/linkit"]

Example linkit.json

{
  "mu-plugins": {
    "target": "/web/app/mu-plugins/",
    "src": [
        "/home/projects/wordpress/my-plugin"    
    ]
  },
  "plugins": {
    "target": "/web/app/plugins/",
    "src": [
        "/home/projects/wordpress/my-plugin",
        "/home/projects/wordpress/my-plugin2"
    ]
  },
  "themes": {
    "target": "/web/app/themes/",
    "src": [
        "/home/projects/wordpress/my-theme"    
    ]
  }
}

Arguments

  • --test runs the script but without removing directories or symlinking
  • --no-dev excludes the script from running if "--no-dev" param is used in composer install/update.
  • --linkit=full_path_to_json_file use specified file as config.
  • --hide Do not print commands
  • --keep Do not remove existing folders, postfixes with number of folders.

The Versions

06/07 2018

dev-master

9999999-dev

Replaces composer installed plugins, themes and mu-plugins with symlinks to defined folders.

  Sources   Download

MIT

The Development Requires

06/07 2018

0.9.0

0.9.0.0

Replaces composer installed plugins, themes and mu-plugins with symlinks to defined folders.

  Sources   Download

MIT

The Development Requires