generator-express icon indicating copy to clipboard operation
generator-express copied to clipboard

Optional settings

Open petecoop opened this issue 9 years ago • 2 comments

As #78 but for more "preference" settings:

  • Option to remove livereload see #101

petecoop avatar Mar 11 '15 13:03 petecoop

@petecoop I'm nearly done with #101, I'm just currently stuck at the ejs template...

What is the best way to remove livereload there? Because I'm not able to use the options. Extra set of templates or should I just disable this option for ejs?

Thanks, Atrox

Atrox avatar Sep 12 '15 14:09 Atrox

Hey @Atrox thanks for doing this I've lagged behind a bit with the planned features!

With regards to ejs, see https://github.com/petecoop/generator-express/blob/master/app/index.js#L216

iirc I've had to use bulkDirectory to stop it from trying to run the templating within ejs, it's a bit annoying really. I think the best would probably be to do some string replacement on header.ejs once it's been copied, either that or have an alternative header.ejs for when livereload is off and rename/delete one depending on the option

petecoop avatar Sep 12 '15 22:09 petecoop