Skip to content

Instantly share code, notes, and snippets.

@craychee
Last active September 15, 2015 14:25
Show Gist options
  • Save craychee/950136f52edefab3f839 to your computer and use it in GitHub Desktop.
Save craychee/950136f52edefab3f839 to your computer and use it in GitHub Desktop.
Rootcanal workaround script for using libraries (example composer.json and bash script).
#! /bin/bash
set -e
path=$(dirname "$0")
base=$(cd $path/.. && pwd)
# Move ckeditor to the Drupal project.
if [[ -d $base/vendor/ckeditor/ckeditor ]] && [[ ! -d $base/www/sites/all/libraries/ckeditor ]]; then
cp -r $base/vendor/ckeditor/ckeditor $base/www/sites/all/libraries/
fi
[...]
"config": {
"bin-dir": "bin",
"process-timeout": 1200
},
"scripts": {
"post-install-cmd": [
"bin/rootcanal",
"bin/libraries"
],
"post-update-cmd": [
"bin/rootcanal",
"bin/libraries"
]
},
[...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment