Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Idea]: Pluggable Generators #82

Open
cmather opened this issue Feb 14, 2015 · 3 comments
Open

[Idea]: Pluggable Generators #82

cmather opened this issue Feb 14, 2015 · 3 comments
Labels

Comments

@cmather
Copy link
Contributor

cmather commented Feb 14, 2015

I think the next big thing would be allowing plugin generators. I ran out of time for this cycle. But it would be cool if you could add a package, which added generators to the iron tool. It would involve things like:

Augmenting the idea of a 'generator' to a folder or a package that has a specific directory structure.
Adding generator template folders to the lookup search path for templates
Adding generator commands to the main command tool
This way people could design their own generators specific to their projects, or write plugins to help people generate different types of code.

cc @scott-mcpherson, @lirbank

@cmather cmather added the idea label Feb 14, 2015
@lirbank
Copy link
Contributor

lirbank commented Feb 15, 2015

+1

Another thing I'd like to add is a way to have a personal default list of packages. Eg. I always remove insecure and autopublish and add the package-that check-if you-have-added-check()-to-all-methods and force-ssl and the browser content policy package and probable one or two more that I can't think of now.

This could be in the iron config file but that is per project and what I would like is more like a personal boilerplate for all my new projects.

Another thing I always do right away on new projects is to deny client side writes to the user.profile in the users collection. Something that not everyone wants but would be great to have in a personal boilerplate config as well. I could write this as a package and then with the package boilerplate include it in all my new projects.

Also have a custom way for configuring external login services that I am not sure can be in a package. So could be worth looking at if we should allow boilerplate code too.

I also have

@lirbank
Copy link
Contributor

lirbank commented Feb 15, 2015

The personal boilerplate should also include a default iron config (eg coffee, CSS).

One idea I had was to use gist for the boilerplate config. Nice because people can share and get inspiration from one another's config. Bad because it will require Internet access.

@scottmcpherson
Copy link
Contributor

These are all great ideas. Like @lirbank , even with the most simple demo apps, the first thing I always do is remove insecure and autopublish.

It might be nice to add a couple of properties to the create command, for the sake of this example we'll call them addPackages and removePackages. By default we could set addPackages: ['iron:router'] and just leave removePackages to an empty array.

And then maybe have the create command so that it could be overrode by a custom create command (created by the user).

Also, it would be nice to add a command onto iron that generates a pluggable boilerplate generator/command package.

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

No branches or pull requests

3 participants