cfpb / generator-cf

Yeoman generator for Capital Framework
http://cfpb.github.io/capital-framework/getting-started/
Creative Commons Zero v1.0 Universal
9 stars 13 forks source link

We should have two generator question paths #81

Open Scotchester opened 9 years ago

Scotchester commented 9 years ago

If we started the generator off with the question Is this going to be a Consumer Financial Protection Bureau project? (y/n), we will enable ourselves to

a. Have smarter default values for both CFPB and non-CFPB project metadata, and b. Include things like our licensed font @font-face rules if appropriate, or not.

Having the ability to do (b) would clear up some of the confusion we encountered in #79.

contolini commented 9 years ago

We now check to see if cfpb.gov is in the user's email address and modify the templates appropriately.

Scotchester commented 9 years ago

I still want to make the default metadata smarter depending on the path.

contolini commented 9 years ago

What do you have in mind? Auto-complete everything right off the bat if you're a CFPB employee?

Scotchester commented 9 years ago

Yeah. A number of things (author stuff, license, maybe others I'm forgetting) don't need to be asked at all if you're a CFPB employee.

jimmynotjim commented 8 years ago

We could also install the CFPB specific theming based on email.

Scotchester commented 8 years ago

Actually, Chris already partially implemented it that way. I think I'd prefer it be more explicit, though. There's a possibility where someone with a cfpb.gov email address might not want to generate with our theme.

contolini commented 8 years ago

To clarify the changes I made:

  1. Check if cfpb.gov is in the email address.
  2. If it is, uncomment licensed fonts.