Last active
September 15, 2015 14:25
-
-
Save craychee/950136f52edefab3f839 to your computer and use it in GitHub Desktop.
Rootcanal workaround script for using libraries (example composer.json and bash script).
This file contains 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
#! /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 |
This file contains 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
[...] | |
"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