michael-milette / moodle-local_mailtest

Moodle MailTest allows administrators to test Moodle's email system. A trace of the SMTP dialogue will be displayed if the email message cannot be sent for any reason. For premium support, contact us at https://www.tngconsulting.ca/contact
https://moodle.org/plugins/local_mailtest
GNU General Public License v3.0
19 stars 12 forks source link

ADD composer.json #11

Closed michaelmeneses closed 6 years ago

michaelmeneses commented 7 years ago

Hi @michael-milette, Adding composer.json you can manage plugin dependencies using PHP COMPOSER.

michael-milette commented 7 years ago

Hi @michaelmeneses , thank you very kindly for your contribution. Your effort is much appreciated. I have been giving your proposal a lot of thought. I have a couple of questions for you and am open to hearing more. Could you please give me an example of how this might be useful? Also, which plugin dependency are you referring to?

michaelmeneses commented 7 years ago

Hi @michael-milette,

You can add michael-milette/moodle-local_mailtest as require in MOODLE/composer.json. Running the "composer update" command and COMPOSER (https://getcomposer.org/) will install the plugin in MOODLE/local/.

See my project at https://github.com/michaelmeneses/moodle-composer (only Linux for now). Here we use ROOT/MOODLE/. So you do not have to change anything in Moodle, not even MOODLE/composer.json.

I maintain a repository of plugins using SATIS (https://satis.middag.com.br/). I'm working to improve it.

I use this solution on my servers, clients and the BRAZIL NATIONAL SCHOOL OF PUBLIC ADMINISTRATION (http://www.enap.gov.br/) even with Jenkins.

Thank you.

michaelmeneses commented 6 years ago

Hi @michael-milette. You can resolve this PR?

michael-milette commented 6 years ago

Hi @michaelmeneses, I am still considering your PR. This is non-standard. Can you give some examples of other plugins that include a composer.json?