A Moodle block plugin that shows activities in a tree structure.
Commands are relative to the directory in which Moodle is installed.
Moodle 2.9
The following package must be added to composer.json
:
"require": {
"lstrojny/functional-php": "1.0.0"
}
Install Composer if it isn't already.
./composer.phar self-update
./composer.phar update
cd blocks
git clone https://github.com/INTO-University-Partnerships/block-activity-tree activity_tree
cd ..
php admin/cli/upgrade.php
php admin/tool/phpunit/cli/util.php --buildcomponentconfigs
vendor/bin/phpunit -c blocks/activity_tree
cd blocks/activity_tree
npm install
node_modules/karma/bin/karma start
There are four Gulp tasks:
gulp clean
deletes the build directorystatic/js/build
gulp build
compiles the minified JavaScript app to the build directorystatic/js/build
gulp watch
compiles the unminified JavaScript app to the build directorystatic/js/build
(and recompiles when necessary)gulp lint
lints the JavaScript app with ESLint