@ruebot
Additional Notes:
Not sure if these libraries will go into https://github.com/Islandora-CLAW/drupal-project/blob/8.x-1.x/composer.json or to some other vagrant config file!
@Natkeeran are you working on a PR? If so, I'm happy to assign this to you.
@ruebot
Not sure where to put this in. Does the creation of libraries go into https://github.com/Islandora-CLAW/claw_vagrant/blob/master/scripts/drupal.sh or here: https://github.com/Islandora-CLAW/drupal-project/blob/8.x-1.x/composer.json
Shell script to get these files into web/libraries.
if [ ! -d "$DRUPAL_HOME/web/libraries" ]; then
mkdir "$DRUPAL_HOME/web/libraries"
fi
sudo chown -hR vagrant:www-data $DRUPAL_HOME/web/libraries
sudo chmod -R 755 $DRUPAL_HOME/web/libraries
cd $DRUPAL_HOME/web/libraries || exit
# Get d3.js
if [ ! -d "d3" ]; then
mkdir "d3"
fi
cd "d3"
wget https://github.com/d3/d3/releases/download/v4.4.4/d3.zip
unzip d3.zip
rm *.zip
# Get highlight.pack.js
cd ".."
wget https://github.com/isagalaev/highlight.js/archive/9.9.0.zip
unzip 9.9.0.zip
mv "highlight.js-9.9.0" "highlightjs"
cd "highlightjs"
cp -R src/* ./
mv "highlight.js" "highlight.pack.js"
cd ".."
rm *.zip
Would have to test this bit further. Currently, the folders are owned by root.
@Natkeeran drupal.sh makes sense to me. Happy to test and do code review when you put in a PR.
https://github.com/Islandora-CLAW/claw_vagrant/pull/5
@MarcusBarnes has tested this.
@ruebot /Others Please review/test.
Thank you
@Natkeeran awesome! I might have some time tomorrow to put it through it's paces testing. If not, I can get around to it Monday morning. Or, if another @Islandora-CLAW/committers has time, go for it!
Most helpful comment
https://github.com/Islandora-CLAW/claw_vagrant/pull/5
@MarcusBarnes has tested this.
@ruebot /Others Please review/test.
Thank you