Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Piwik Plugin files generator to easily create your first plugin! #4121

Closed
mattab opened this Issue · 17 comments

2 participants

Matthieu Aubry Thomas Steur
Matthieu Aubry
Owner

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)
Matthieu Aubry
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Thomas Steur
Owner

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

Matthieu Aubry
Owner

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)

Matthieu Aubry mattab added this to the 2.0 - Piwik 2.0 milestone
Thomas Steur tsteur was assigned by mattab
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added simple command line tool including a not yet working…
… tests and generatePlugin command
6922014
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 make sure we are in cli mode ce23c48
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 fix create plugin does not work in case the pluginname was…
… entered wrong at least once
08bab7f
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added possibility to specify group as an argument like ./c…
…onsole tests Core
aae467d
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added possibility to create controller, all files within t…
…he template folder will be copied now
ad2ff1d
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added simple parameter and example link e65ef12
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added possibility to create API and Controller along with …
…the plugin
e217596
Philip Taffner sabl0r referenced this issue from a commit in sabl0r/piwik
Thomas Steur tsteur refs #4121 added example hook including javascript file when generati…
…ng a plugin
0f27dc4
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.