Creating a standalone plugin with Generator #33
-
More of a question than an Idea, but is there a way to use Generator without needing to install & scaffold and install a Craft CMS site? I'm starting a new standalone plugin that will be published to the Craft Plugin Store. I can't figure out how to run |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 5 replies
-
Currently, no. Generator is intended to be used inside a Craft application, as a good deal of its functionality is aware of the installation itself—just like a plugin! If you take a look at some of the generators, you’ll notice that it dynamically prompts for, discovers, validates, and includes a number of component names and classes. This tight coupling means Generator's output can be extremely accurate and consistent… and provide immediate feedback when something is misconfigured. Plugins and modules ought to be designed and developed inside a Craft application… and even if they could be scaffolded independently, there is very little progress that can be made without propping up a development environment. The Plugin Factory project from @nystudio107 was based on Yeoman so that it could be run without a back-end. |
Beta Was this translation helpful? Give feedback.
Currently, no. Generator is intended to be used inside a Craft application, as a good deal of its functionality is aware of the installation itself—just like a plugin! If you take a look at some of the generators, you’ll notice that it dynamically prompts for, discovers, validates, and includes a number of component names and classes. This tight coupling means Generator's output can be extremely accurate and consistent… and provide immediate feedback when something is misconfigured.
Plugins and modules ought to be designed and developed inside a Craft application… and even if they could be scaffolded independently, there is very little progress that can be made without propping up a devel…