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

@mattab
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)
@mattab
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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@tsteur
Owner

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

@mattab
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)

@mattab mattab added this to the 2.0 - Piwik 2.0 milestone
@tsteur tsteur was assigned by mattab
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 added simple command line tool including a not yet working…
… tests and generatePlugin command
6922014
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 make sure we are in cli mode ce23c48
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 fix create plugin does not work in case the pluginname was…
… entered wrong at least once
08bab7f
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 added possibility to specify group as an argument like ./c…
…onsole tests Core
aae467d
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 added possibility to create controller, all files within t…
…he template folder will be copied now
ad2ff1d
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 added simple parameter and example link e65ef12
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur tsteur refs #4121 added possibility to create API and Controller along with …
…the plugin
e217596
@sabl0r sabl0r referenced this issue from a commit in sabl0r/piwik
@tsteur 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.