Skip to content
This repository was archived by the owner on Apr 24, 2019. It is now read-only.
This repository was archived by the owner on Apr 24, 2019. It is now read-only.

A plugin system via sub-generators #20

Open
@drublic

Description

@drublic

This is the bug to continue the discussion from use-init/init#67.

I wrote up an outline on how we can achieve the goal:


I think a decent way would be to clone the plugin to install in a directory, move all the things around and delete the rest of the repo. This would mean that we only need a convention for

  1. repo URLs
  2. file names
  3. directories

Most of this is given:

1. Repos for files can be matched as "use-init/init-" at GitHub. We could later extend this to make it customizable and stuff.

__ 2.__ I've outlined this above: We need to copy the {taskname}.js file into the folder grunt/plugins, we need to run npm install --save-dev {pluginname} and lastly add necessary config options to main project's config.js which are stored in a plugin specific config.js file.

3. We need a temporary folder to place the repos in. I'd suggest to name it .init-cache. Everything else is stated in 2..


cc: @distilledhype @sergiovilar

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions