Skip to content
This repository has been archived by the owner on May 28, 2018. It is now read-only.

decidim-archive/decidim-generators

Repository files navigation

Note: *THIS REPO IS OUTDATED. Please use https://github.com/decidim/decidim/tree/master/decidim-generators instead.


Decidim::Generators

asciicast

TODO: Add gem's description

Installation

Add this line to your application's Gemfile:

gem 'decidim-generators'

And then execute:

bundle

Or install it yourself as:

gem install decidim-generators

Usage

This repo helps you generating the scheleton of a decidim plugin. It will generate a folder with a plugin's code skeleton that you then need to properly require in your final decidim application in order to use it. To do that, you need to include the plugin in your application's Gemfile.

For example, if you generated your plugin at ~/decidim-generators/decidim-module-experimental_plugin, you'll need to edit your Gemfile like this in order for the plugin to be used:

gem "decidim-experimental_plugin", path: "~/decidim-generators/decidim-module-experimental_plugin"

Once you do that, and boot your application, you'll see the new component being offered in the "New component" selector on the "Components" section of any participatory space in the admin dashboard.

Generate a new component

decidim-generators engine my_component

Generate a new component in a specific folder

You may do this when you want to point to an existing folder or give it a custom name.

decidim-generators engine my_component --destination_folder ../decidim-module-my_component

Generate a new component as a external plugin

You may do this when your plugin is meant to live outside of decidim's core repo. The generated application has some particularities as opposed to a plugin living in the core repo. For example:

  • It has its own Gemfile.
  • The dummy application path is different.
decidim-generators engine my_component --external

Contributing

Bug reports and pull requests are welcome on GitHub. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

Engine generators for decidim engines

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published