Replies: 1 comment 2 replies
-
If I’m understanding you correctly, the Yii equivalent for publishing assets is “Asset Bundles” – see https://www.yiiframework.com/doc/guide/2.0/en/structure-assets. As for config files, most plugins don’t require them and they are generally used for advanced configuration only, so I’m not sure it makes sense to automate their creation. |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Laravel offers package developers the option to publish config and assets.
https://laravel.com/docs/8.x/packages#resources
I couldn't find an equivalent in Craft.
For the config file, this would save users the trouble of creating the file themselves from the docs, and will also serve as documentation for the plugin options.
For templates, images and CSS files it would allow a more standardized process where users can hoist plugin assets to the project folder and modify them.
Ideally users would be able to selectively decide which assets they want published (https://laravel.com/docs/8.x/packages#publishing-file-groups).
I apologize in advance if this functionality already exists. I couldn't find it.
Beta Was this translation helpful? Give feedback.
All reactions