Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
mattab opened this issue Sep 6, 2013 · 17 comments
Closed

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

mattab opened this issue Sep 6, 2013 · 17 comments
Assignees
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Milestone

Comments

@mattab
Copy link
Member

mattab commented Sep 6, 2013

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
Copy link
Member Author

mattab commented Oct 2, 2013

Thoughts on how it could work:

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
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 4, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@tsteur
Copy link
Member

tsteur commented Oct 5, 2013

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

@mattab
Copy link
Member Author

mattab commented Oct 17, 2013

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 Jul 8, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…et working tests and generatePlugin command
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
…s within the template folder will be copied now
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
sabl0r pushed a commit to sabl0r/piwik that referenced this issue Sep 23, 2014
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Enhancement For new feature suggestions that enhance Matomo's capabilities or add a new report, new API etc. Major Indicates the severity or impact or benefit of an issue is much higher than normal but not critical.
Projects
None yet
Development

No branches or pull requests

2 participants