Preparing for release
There are two main considerations for releasing a module. The first concerns maintainability. You may understand how your plugin functions but will anyone else? Will you understand it if you need to come back to it in six months' time? Maintainability and readability go hand in hand. For more information on the coding style that is expected of you, check out https://docs.moodle.org/dev/Coding_style.
Minimising JavaScript
Another factor to consider in the Wavefront plugin is that we are including JavaScript. Both the AMD script and the third-party three.js
libraries we are deploying with our module will need to be minified. Check the Moodle documentation at https://docs.moodle.org/dev/Javascript_Modules for details on how Grunt can be used to minify JavaScript.
Taking things further
Here are some more ideas for further developments to the model viewer plugin:
- Create a gallery of 3D models. The plugin's tables have been structured such that a model refers to an instance of...