question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Support for creating plugins

See original GitHub issue

After a brief Gitter discussion I thought it might be worth starting a discussion here. The idea is to support something like au new --plugin or au new-plugin which would output something like https://github.com/aurelia/skeleton-plugin.

Has this already been discussed? Is there interest in adding a feature like this? I could probably start looking at it if there is.

Issue Analytics

  • State:closed
  • Created 6 years ago
  • Reactions:9
  • Comments:33 (22 by maintainers)

github_iconTop GitHub Comments

6reactions
manuel-guilbaultcommented, Sep 28, 2017

@xdvarpunen @JeroenVinke hopefully I’ll be able to get it done in the upcoming weeks

3reactions
CuddleBunnycommented, Feb 6, 2019

Thanks @fkleuver and @huochunpeng. I guess this bit on structure needs broken out into a few different areas: generated project structure, plugin structure, and CLI project structure.

On Project Structure I can see having separate folders being a bit confusing for the bundler and perhaps even the end user. This seems to boil down to using one of two approaches, at least for starters:

├── aurelia-cli-project
│   ├── dist
│   ├── examples
│   ├── src

au run - build and run Aurelia app(s) in examples that depend on the plugin in src.
au build - build the plugin in src

vs.

├── aurelia-cli-project
│   ├── dist
│   ├── src
│   │   ├── resources

au run/au build - same as application project
new command like au package plugin? - build plugin from src/resources

Option 1 has clear separation but decouples the build and run commands which may be counterintuitive. Option 2 doesn’t require any changes to existing commands but may require a new command to help users package their plugins for distribution.

On Plugin Structure I think this should stay relatively simple and unopinionated like the application template. Something along these lines:

https://gist.github.com/CuddleBunny/a4a51c6f02a27f0219eda3ba4310e307

On CLI Project Structure I’ve been digging through this and it seems very flexible. Everything has its place so I don’t think we need to talk much through this.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Get Help With Plugins and Themes – WordPress.com Support
Creating and/or editing child themes. Extensive troubleshooting. More advanced support may be available from the plugin or theme's creator.
Read more >
Resources for WordPress.org plugin developers
We have support forums for all of the plugins, but we often get questions about ... X-comment from +make.wordpress.org/community: Comment on Suggest Topics ......
Read more >
5 Places To Get The Best Support For Your WordPress Plugins
5 Places To Get The Best Support For Your WordPress Plugins · Plugins: A Definition · Check the WordPress Plugin Repository. · Contact...
Read more >
WordPress Essentials: How To Create A WordPress Plugin
Theme Or Plugin? # · Creating Our First PlugIn # · Structuring PlugIns # · Naming Your PlugIn And Its Functions # ·...
Read more >
10 Best WordPress Helpdesk Plugins to Manage Support
With over 10k active installs at the time of writing, and a horde of features that will make your head spin, this plugin...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found