@mattab opened this Issue on September 6th 2013 Member

During meetup in Paris it was mentionned the plugin generator tool would be implemented using the CLI Piwik toolkit.

  • creates the file templates for plugin+controller+API+travis_CI+templates+css+js+ plugins.json
  • initializes Git repository (git init+commit)
@mattab commented on October 2nd 2013 Member

Thoughts on how it could work:

```php piwik # prints help

php piwik test # run all test groups
php piwik test integration
php piwik test core
php piwik test TreemapVisualization

php piwik generate plugin MyPlugin
php piwik generate plugin MyPlugin "my description"
php piwik generate api MyPlugin
php piwik generate controller MyPlugin
php piwik generate tests MyPlugin

php piwik archive
php piwik archive --url=http://localhost/piwik


* forwarding parameters
* strtolower parameters
@tsteur commented on October 4th 2013 Member

In 69220141bc712e6ed57349d1951eeadcae841823: refs #4121 added simple command line tool including a not yet working tests and generatePlugin command

@tsteur commented on October 4th 2013 Member

In ce23c48f217013ae38fcfbdcf32067539a24a026: refs #4121 make sure we are in cli mode

@tsteur commented on October 4th 2013 Member

In 2c53bdb06a990341b18368193f87eeba00a95f0c: refs #4121 command to generate plugin and theme, command to run tests

@tsteur commented on October 4th 2013 Member

In 08bab7f4e1e3d501dfe28ebe519c854f79165455: refs #4121 fix create plugin does not work in case the pluginname was entered wrong at least once

@tsteur commented on October 4th 2013 Member

In c3bf94fde52659dbe06169a9a78b81991e0ca7d9: refs #4121 adjust message depending on whether it is theme or plugin

@tsteur commented on October 4th 2013 Member

In aae467d23a5a1e7631f2cb1ff99e1a214a071b1a: refs #4121 added possibility to specify group as an argument like ./console tests Core

@tsteur commented on October 4th 2013 Member

In 0ceb0946b3564f4d0f64f4a0cddbb423cb4caf66: refs #4121 make sure to execute a command only if in cli mode

@tsteur commented on October 5th 2013 Member

In 5bfa0706837ec3e6ea6eca81b04e39b4f9427a22: refs #4121 added possibility to generate API for a specific plugin

@tsteur commented on October 5th 2013 Member

In ad2ff1d137053618e8ead2aa94f8e38c699c3c67: refs #4121 added possibility to create controller, all files within the template folder will be copied now

@tsteur commented on October 5th 2013 Member

In e65ef12e08896f7dabc868749ca5dd103990258b: refs #4121 added simple parameter and example link

@tsteur commented on October 5th 2013 Member

In e2175966ffd264bccd76e539c9544d75f273e4cd: refs #4121 added possibility to create API and Controller along with the plugin

@tsteur commented on October 5th 2013 Member

In a12ae95b4b2c06aec31e7bdbc005e931c5f2be07: refs #4121 code cleanup and copy plugin/theme folder if needed

@tsteur commented on October 5th 2013 Member

In 0f27dc4505d691e5402eb1a0027081fd1a87506b: refs #4121 added example hook including javascript file when generating a plugin

@tsteur commented on October 5th 2013 Member

In 5d5551d12c395fba0b5c49a17370e5038cc53ad6: refs #4121 copy readme/howto when generating a plugin/theme

@tsteur commented on October 5th 2013 Member

In 429af6db8dbc41f0e3b4db6ce535ced84a3e7d09: refs #4121 renamed tests command to tests:run. Some other minor tweaks

@mattab commented on October 17th 2013 Member

Awesome work Thomas!

@diosmosis maybe you can incorporate the Plugin file generator super-tricks in the docs plan (and update the files used as templates)

This Issue was closed on October 21st 2013
Powered by GitHub Issue Mirror