Closed goigarg closed 2 years ago
+1
It looks like more people are trying to get the same results, but it seems there needs to be a lot of changes for this. See https://github.com/TypeRocket/typerocket/issues/209
Hey @str @goigarg
You can use TypeRocket within a plugin as seen in the video here.
https://www.youtube.com/watch?v=q0fVxcszFng
If you are looking to include TypeRocket itself (all core files and assets) within a plugin it is not recommended because you can run into PHP function and class collisions. I recommend having TypeRocket installed as a plugin and then creating a separate plugin that uses the TypeRocket plugin.
@kevindees this is exactly what I was looking for.
Once you create a plugin via galaxy would you still need the typerocket installed as a mu-plugin
? or would I be able to use the new custom plugin as a stand alone?
I liked the way we can easily install typerocket as a mu-plugin via composer create-project --prefer-dist typerocket/typerocket typerocket
. Is there a way to create a new typerocket based plugin via composer?
And a last question, if I do need to install typerocket as a mu-plugin
, is there a way to compser require
it, like it is done for roots/bedrock?
Ohh and another question: when you define your namespace for the plugin, is it possible to have multiple levels? Like MyVendorName\Flights
?
Ohhh but the make:plugin
is only available in the pro-version, right?
@str
make:plugin
is a pro-only feature.@kevindees kevindees
I was able to create a new plugin via make:plugin, but it was not that easy.
mu-plugins/typerocket
galaxy
and galaxy-config.php
to the root folder$typerocket
and $overrides
to the same mu-plugins/typerocket
folder, as there was no override
yet, nor would there beTYPEROCKET_ROOT_WP
path to match the one used by roots/bedrock./galaxy make:plugin "Vendor\\MyPlugin" vendor-myplugin
to create the new plugin (notice the double ) and it created a new plugin in the plugins folder, that was greatNow I have 2 new issues:
./galaxy
command again, it crashes. If I now change the $overrides
to point to the vendor-myplugin
path, it works. I created a new issue for this: #254mu-plugins/typerocket
I created a new issue for this: #253 Hey @str
make:plugin
you will need a custom galaxy cli to ensure the previous cli tool works as expected: https://www.youtube.com/watch?v=q0fVxcszFngOK, I think we can close this issue now. Thank you.
can i use typerocket for custom plugin development ?