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

A plugin system via sub-generators #20

Open
drublic opened this issue Apr 1, 2014 · 3 comments
Open

A plugin system via sub-generators #20

drublic opened this issue Apr 1, 2014 · 3 comments

Comments

@drublic
Copy link
Member

drublic commented Apr 1, 2014

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

@kahlil
Copy link
Contributor

kahlil commented Apr 6, 2014

Hey @drublic thanks for this. I don't have time to do this right now...

@sergiovilar do you have time for this?

@kahlil
Copy link
Contributor

kahlil commented Apr 6, 2014

This should be taken care of before: #19

@kahlil
Copy link
Contributor

kahlil commented Apr 6, 2014

And this as well: #21

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

2 participants