Skip to content

INTO-University-Partnerships/block-activity-tree

Repository files navigation

Block activity tree

A Moodle block plugin that shows activities in a tree structure.

Commands are relative to the directory in which Moodle is installed.

Dependencies

Moodle 2.9

The following package must be added to composer.json:

"require": {
    "lstrojny/functional-php": "1.0.0"
}

Installation

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

Tests

PHPUnit

php admin/tool/phpunit/cli/util.php --buildcomponentconfigs
vendor/bin/phpunit -c blocks/activity_tree

Jasmine

cd blocks/activity_tree
npm install
node_modules/karma/bin/karma start

Gulp

There are four Gulp tasks:

  • gulp clean deletes the build directory static/js/build
  • gulp build compiles the minified JavaScript app to the build directory static/js/build
  • gulp watch compiles the unminified JavaScript app to the build directory static/js/build (and recompiles when necessary)
  • gulp lint lints the JavaScript app with ESLint

About

A Moodle block plugin that shows activities in a tree structure

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published